Forum Discussion
DAX RANKX by Quarter
jjones90274 , Try measure like
Rankx(allselected(Table[City]) , CALCULATE(SUM('Costar Data'[Vacancy Rate])), , desc,dense)
Rankx(filter(allselected(Table[City], Table[Qtr Year]), [Qtr Year] =max(Table[Qtr Year]) , CALCULATE(SUM('Costar Data'[Vacancy Rate])), , desc,dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
Thanks for the reply @amitchandak! I gave the first measure a try and I am still getting duplicate rankings (see below)
For reference I have included a snapshot of the relationships I have in the model.
The data I am using has both past dates with historical data and future dates with forcasted data. I tie the two data sources together through the calendar and market key tables. In my report I have slicers for Date (Year and Qtr) and Market.