How to get 1 slicer to change 2 datasets in Excel - excel

I am trying to get one slicer to filter 2 pivot tables from 2 different data sets. For example i have 1 pivot for Table1 and one for Table2 nd i need the one slicer to change both
I have tried adding both to a data model but am unable to create a relationship due to duplicates (these are unavoidable and cannot be removed).
Is there any other way?

Related

How do I index multiple tables in Excel to find the sum?

I'm looking to find an easier way to index multiple pivot tables from Excel 2016 rather than doing 3 index/matches or vlookups and using a sum function.
The pivot tables come from 3 different worksheets without a common unique id, that way I can't use Power Query to merge the columns.
3 pivot tables, I'm looking to pull the sums from pivot table into my own table for a grand total sum per Server.
I have tried to consolidate all 3 tables into one table but I wanted to use a slicer for a filter of different departments (AA,BB,CC,DD,etc). I wasn't able to find a way to consolidate the tables and include a filter. I tried Index(,Match(Index(array)) however couldn't get a sum for all columns.
=IFERROR(SUM(INDEX($B$3:$D$5,MATCH($H5,$A$3:$A$5,0),MATCH(I$4,$B$2:$D$2,0)), IFERROR(INDEX($B$8:$D$8,MATCH($H5,$A$8,0),MATCH(I$4,$B$7:$D$7),0),0),(INDEX($B$12:$D$14,MATCH($H5,$A$12:$A$14,0),MATCH(I$4,$B$11:$D$11,0)))),0)

5 tables in 1 pivot table relationship

I have 5 tables (each table has a Date column)
I want to make a relationship between all the dates of all the tables in the pivot table to do some data analysis.
But unfortunately, the relationship is between 2 columns only
However, i tried to make 1 sheet as the primary sheet, and make relationship with others, but it pops out with error.
Please help.
I would suggest using =SUMIF() and inserting the desired date values manually for the comparison.
It will be difficult to pivot on multiple tables with non-unique keys to summarize on (ie date values aren't unique so how does each piece of data fit together)
You could also build pivot tables for each table first, then combine all of those together

Excel: Pivot Table Filtering Using VBA/Slicer?

Gold star for whoever solves this! :)
I have a pivot table that has data from various attributes attached to unique ID numbers from an OLAP cube report. When I select ID# as a pivot field and all the corresponding attributes ie: Name,age,etc I end up getting about 10k ID's with 10k corresponding attribute values. I have a list of 3k ID#'s which I want to filter my report by. What is the best way to do this?
Simple example: Pivot table displays ID# 1,2,3,4,5 and corresponding attributes such as name,age,etc
I want to filter ID#'s from a column of values I have in another worksheet for example the column in other worksheet would have ID#'s 1,2,3 (Which in theory would omit values 4 and 5 from pivot)
(Keep in mind I am dealing with thousands of rows this example is made simple just for explanation)
I thought a VBA slicer combo might work, but I have no clue how to set up a slicer so when it is created it has only values selected from a column of values.
In my example VBA slicer will have ID#'s 1,2,3 selected upon creation or an easy way to select multiple ID#s from a list or something as I can't feasibly click through 3k values
Possible Solutions I Brainstormed
I was also thinking maybe just a VLOOKUP or something that will pull ID#'s against the column and also bring all corresponding attributes? The thing is I like the cube report being dynamic and updating with the slicer.
I then also thought to create a slicer based off of another pivot table which is composed simply of a header of ID#'s and lists ID# 1,2,3 I created in another worksheet and try and use that simple slicer against the OLAP cube, but the issue is the slicers have different connections and they can't overlap. :(
Any and all help is much appreciated!!! :)

Merge two tables into one pivot table - order of columns is different

I saw how to merge two different tables into one pivot but they all had the same order of columns. I have two different excel sheets from two different DBs and I want to merge both into one pivot - they have the same column names but in different order.
Attached is the screen shot of the first table, the second table and the pivot table I would like to have
Found the answer!
One should just attach both tables one right or left to each other and create a pivot table from one source rather multiple.
However, excel then differentiates between A1 and A1_1 for the second table. To solve this I used calculated fields for a new field of A1 and A1_1.

Excel Slicers for Measures

I have a cube with two measure(count of patients) and (distinct count of visits) , and various dimension(date,program,region,etc), when I browse the cube data from excel, I can choose all the dimensions in the slicer, but my question is is there anyway i can choose the measures in the slicer? From what I see, when I insert a slicer I only get to pick the dimesnions
Any help would be appreciated
I'm not sure of a way around using PowerPivot to do this, short of complicated VBA scripts.
To do it with PowerPivot:
Create a new table with two columns. Column 1 contains the name of your measures and column 2 contains an index for each. e.g.
and add this to the Data Model (but don't create any relationships to any other tables).
Create a new measure with a SWITCH function that has the same relationship between the measures and their values in the Index column, e.g.
[Chosen Measure]:=SWITCH(TRUE, MIN(MeasureTable[Index])=1, [DistinctPatients], MIN(MeasureTable[Index])=2,[DistinctDates])
Add the new measure to the values section of the pivot table and add the
Measure column from your new table to BOTH a slicer AND the column headings in the pivot table and remove the row and column totals.

Resources