Forum Discussion
Last 3 quarter
- 1 year ago
Hi unnijoy,
Thank you for your follow up.
Please find attached a screenshot and a sample PBIX file that may help resolve the issue:
We hope the information provided is useful. If you have any further queries, please feel free to contact the Microsoft Fabric community.Thank you.
Try this
Qtr_index =
RANKX (
ALL ( 'Calander'[YearQtr] ),
CALCULATE ( MIN ( 'Calander'[Date] ) ),
,
ASC,
DENSE
)
- Shahid125231 year agoCommunity Champion
If YearQtr is numeric (e.g., 202301, 202302):
Qtr_index =
RANKX (
ALL ( Calander[YearQtr] ),
MAX ( Calander[YearQtr] ),
,
ASC,
Dense
)If YearQtr is text → rank on start date:
Qtr_index =
RANKX (
ALL ( Calander[Qtr Start date] ),
MAX ( Calander[Qtr Start date] ),
,
ASC,
Dense
)- unnijoy1 year agoPost Prodigy
- Shahid125231 year agoCommunity Champion
What’s happening:
CALCULATE(MIN(Calander[Date])) → always returns the quarter start date.
Since multiple quarters may share the same MIN logic depending on your context, you’re ending up with the same rank (2 in your case).