Pivot table ranking function always return "1" when using two rows

%3CLINGO-SUB%20id%3D%22lingo-sub-1014511%22%20slang%3D%22en-US%22%3EPivot%20table%20ranking%20function%20always%20return%20%221%22%20when%20using%20two%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1014511%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20There%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20pivot%20table%20using%20data%20pulled%20from%20a%20data%20model%20consisting%20of%20two%20different%20tables.%26nbsp%3B%20It's%20basically%20a%20report%20that%20list%20customer%20names%20and%20their%20sales%20for%20different%20products.%26nbsp%3B%20I%20have%20multiple%20data%20filter%20in%20the%20table%20(customer%20territory%2C%20customer%20type%2C%20etc)%2C%20one%20item%20under%20rows%20(customer%20name)%2C%20and%20various%20fields%20under%20columns%20and%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20added%20another%20column%20that%20ranks%20the%20sales%20data%20used%20in%20the%20pivot%20table%20for%20each%20row%20(customer%20name)%2C%20and%20everything%20works%20as%20expected.%26nbsp%3B%20However%20I%20want%20to%20see%20the%20customer%20name%20and%20the%20customer%20ID%20number%20in%20the%20report%20when%20looking%20at%20their%20sales%20data%20and%20ranking.%26nbsp%3B%20As%20soon%20as%20I%20add%20another%20row%20to%20the%20report%20so%20that%20I%20can%20see%20the%20customer%20name%20and%20number%2C%20all%20the%20rankings%20change%20from%20their%20correct%20values%20to%201.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20moving%20the%20customer%20number%20field%20to%20various%20places%20in%20the%20report%2C%20but%20I%20can't%20figure%20this%20one%20out%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20assist.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1014511%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1014533%22%20slang%3D%22en-US%22%3ERe%3A%20Pivot%20table%20ranking%20function%20always%20return%20%221%22%20when%20using%20two%20rows%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1014533%22%20slang%3D%22en-US%22%3EThe%20problem%20is%20that%20ranking%20works%20within%20the%20combination%20of%20ID%20and%20name%2C%20you%20can%20get%20ranking%20to%20work%20again%20if%20you%20collapse%20the%20entire%20ID%20field%2C%20but%20that%20will%20hide%20the%20names.%20The%20only%20way%20I%20can%20think%20of%20is%20to%20create%20a%20combined%20name%20and%20ID%20string%20column%20and%20use%20that%20in%20the%20pivot%20table.%20You%20could%20do%20that%20easily%20in%20your%20current%20query%20by%20merging%20the%20first%20two%20columns.%3C%2FLINGO-BODY%3E
Visitor

Hi There,

 

I have created a pivot table using data pulled from a data model consisting of two different tables.  It's basically a report that list customer names and their sales for different products.  I have multiple data filter in the table (customer territory, customer type, etc), one item under rows (customer name), and various fields under columns and data.

 

I have added another column that ranks the sales data used in the pivot table for each row (customer name), and everything works as expected.  However I want to see the customer name and the customer ID number in the report when looking at their sales data and ranking.  As soon as I add another row to the report so that I can see the customer name and number, all the rankings change from their correct values to 1.

 

I have tried moving the customer number field to various places in the report, but I can't figure this one out?

 

Please assist.

2 Replies
The problem is that ranking works within the combination of ID and name, you can get ranking to work again if you collapse the entire ID field, but that will hide the names. The only way I can think of is to create a combined name and ID string column and use that in the pivot table. You could do that easily in your current query by merging the first two columns.
I am on the road from office to home, will download your data and check back and see what is wrong