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
Related
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)
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?
I've been trying to build a pivot table that uses keys from multiple columns.
This would be the source table (Items 1,2,3 columns represent the keys):
[
This would be the resulting Pivot Table (The pivot table consolidates key "A" even though it is placed in other columns) :
]2
Sorry if this is a terribly easy one to solve.
Thanks in advance.
You need to use a consolidation range pivot table. Alt+DP, then choose consolidation ranges as the source and add each pair of columns separately. You'll need the pairs of columns to all have the same headers.
Note also that consolidation range pivots are quite limited in terms of what you can do with them.
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.
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.