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 all,
Hope you are well.
I need to create a calculated column that will return the ranking of the extractin date column, 1 being the newest extraction date.
The first three columns of the below table can be considered as the extracted details, and the ranking column shows the desired calculated column.
Extraction Date | Product | Quantity | Ranking |
23/11/2021 | Prod01 | 65 | 1 |
23/11/2021 | Prod02 | 43 | 1 |
23/11/2021 | Prod03 | 96 | 1 |
05/11/2021 | Prod01 | 65 | 2 |
05/11/2021 | Prod02 | 40 | 2 |
05/11/2021 | Prod03 | 100 | 2 |
15/10/2021 | Prod01 | 70 | 3 |
15/10/2021 | Prod02 | 34 | 3 |
15/10/2021 | Prod03 | 86 | 3 |
Any help would really be appreciated.
Kind regards,
George
Solved! Go to Solution.
Hello @DimaMD ,
I found the solution, please see the below screenshot.
As we can see, it returns the ranking in a consecutive order.
Thank you,
George
Hello @DimaMD ,
Thank you for your reply.
I produced your suggested measure.
Indeed, it returned the ranking , but unfortunately not in a consecutive order.
Do you have any idea how this can be fixed?
Thank you,
George
Hello @DimaMD ,
I found the solution, please see the below screenshot.
As we can see, it returns the ranking in a consecutive order.
Thank you,
George
hi @Anonymous
Good job, I led you to the right solution to your problem
hi @Anonymous
Try it
Стовпець = RANKX('Table',[Extraction Date])
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |