Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

Summarize and Rankx issues

$
0
0

 

Scenario:

I have a poll data with lots and lots of columns.

 

I want to display a pie chart with top 5 (out of aprox 300) items by count of mentions for one specifc column, the rest has to be grouped in an "Others" bucket:

Pie.PNG

So what I did is to create a new table on Desktop:

 

TableTop5 = SUMMARIZE(Vox,Vox[Item],"Quantity",COUNTA(Vox[Item]))

 

Then added a column to the table TableTop5:

 

Top = IF(RANKX(ALLSELECTED(TableTop5),TableTop5[Quantity],,DESC,Skip)<=5,TableTop5[Item],"Others")

 

I am using slicers to filter key topics of the polls (Year, Region, City, etc.)

 

With the slicers set in "All", the results are perfect.

 

Now, the issues:

 

If I apply any filter (filters to table Vox) the total count in table TableTop5 is wrong, the count on the top 5 elements does not move.

 

Rank is always the same, it does not recalculate with any filter applied, the Rank is calculated and fixed for the 100% of the data. No matter what filter I do Rankx results is always the same. Even if I use a filter to select on the Item column. If I remove (filter out) item ranked in #2, the result is that now I have a top 4 and Others.

 

Thank you in advance for your ideas and input to resolve this issue.

 

With no


Viewing all articles
Browse latest Browse all 217177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>