Forum Discussion
estefaniamc
8 years agoFrequent Visitor
TOPN in graphs/Dynamic
Hi all, I would like to display a bar graph only with top 5 values. I am using the advance filtering to show only the top values, but then when I filter in a different graph to show the top 5 va...
- 8 years ago
Hey,
here you will find a pbix file.
I changed the DAX of the measure that ranks the customer (guess this is what you call Payer) to
GroupRank = RANKX( ALLSELECTED(Table1[Customer]) ,CALCULATE(SUM(Table1[Amount])) )
And I also changed the Interaction Setting of the chart showing the Top 5 Customer to filter
Mark the Chart showing the countries: Menu Format, Toggle: Edit Interactions, Switch the Customer chart from Highligh to Filter, Toggle: Edit Interactions
Hope this is what you are looking for
Regards
Tom
v-caliao-msft
8 years agoMicrosoft Employee
As CahabaData said, you need to have a measure to rank your values, and then add this rank to your visual filter.
Create two measures.
TotalAmount = SUM(Table1[Amount])
GroupRank = RANKX(ALLEXCEPT(Table1,Table1[Group]),Table1[TotalAmount])
Regards,
Charlie Liao