Forum Discussion
dkinchit
7 years agoNew Member
Sorting Legend in a Line Chart
Problem: I cannot sort the legends based on the chosen category's sales proportion, PBI does it based on alphabetical order. Strange given you would have expected this to occur by default like excel....
alena2k
7 years agoResolver IV
I hope that something like this will help you:
Last Reported Rank =
RANKX(Categories,
CALCULATE(SUM('Sales'[Sales]), 'Sales'[Date] > EOMONTH(NOW(), -1),'Sales'[Date]<= EOMONTH(NOW(), 0))
,,DESC)
I assume that yiy have Caregories table where you can setup sorting by this column.
dkinchit
7 years agoNew Member
Thanks alena2k...sorry I just saw this so will try this now. Will update soon.
- momedina7 years agoFrequent Visitor
Any luck with the solution provided? I have been trying to solve (almost ) the exact same problem for last couple of weeks and can't seem to hit it right. I try sorting by column but it gaveme an error