Forum Discussion
Sorting Legend in a Line Chart
If you are looking for the last reported month ranking, you could add calculated column which would use data using filter of last month from today's month.
It should work for your categorical filters as well. It will not work for date filters if you need them.
alena2k - Tks! As you can guess I am still a newbie so would appreciate if you could post a sample formula of sorts of how I would define that new column?
Appreciate your time!
- alena2k7 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.
- dkinchit7 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