Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. 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 |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |