Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Community,
Can you please help me writing a following DAX Column . I have following calculated column which rank the product by date. I wants the product to be ranked by Year.
Customer ID | DATE | RANK
1 1/Jan/2020 1
1 2/ Feb/ 2020 2
1 13 / Jan/ 2021 1
1 14 / Feb/ 2021 2
Solved! Go to Solution.
@Anonymous you need a year column first and then you can write a rank column
_rank = RANKX(FILTER('Table','Table'[CustID]=EARLIER('Table'[CustID])&&'Table'[_year]=EARLIER('Table'[_year])),'Table'[Date],,ASC)
@Anonymous you need a year column first and then you can write a rank column
_rank = RANKX(FILTER('Table','Table'[CustID]=EARLIER('Table'[CustID])&&'Table'[_year]=EARLIER('Table'[_year])),'Table'[Date],,ASC)