Forum Discussion
Getting TOP n Items in a Table/chart
paresh to get only 1 rank (per item) you still need to aggregate the [quantity] for all selected dates
so your measure should look something like this...
Msr_SaleQty = CALCULATE ( SUM ( 'sales'[quantity] ), ALLSELECTED ( 'table'[date] ) )
And then RANK all items based on this Measure
Thanks once again.
However, no change in the results.
- Sean10 years agoCommunity Champion
paresh To achieve what you want you have to remove the [Date] field your from your table
even if you aggregate the data wtih YTD or a Running Total it will still be broken down by month (like in the Matrix below)
the Slicers will indicate to your user what is selected - then you can select any date range(s) you want...
- paresh10 years agoFrequent Visitor
Thanks Sean.
However, my final visualization is going to be a Box and whisker chart, showing my Top 10 Items. Now the chart requires the data in the form of a Pivot table. To get the data in that format, I have the item on 1 axis and Month on the other, with the quantities being sold.
As soon as I include the month, it starts giving me the Top 10 items for each month and thus more than 10 items.
How can I come out of this situation?
- Anonymous10 years agoNot applicable
Hi paresh,
Regarding to the issue that how to display data properly in Box and whisker chart, please directly contact the author. In this link, you can send an email to the author by clicking “Contact Author” as shown in the following screenshot.
Thanks,
Lydia Zhang