The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
7 |