The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |