Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello all,
I have built a ranking by delivery quantity. As in the image. But now I want that the ranking is automatically adjusted according to my sorting. So if I sort it by the last 14 days the rank is displayed again with 1,2,3 ....
It should not look like this, but then start again with 1.
Thanks!
Hi @Anonymous
I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.
If you need more help, please let me know.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi:
Do you already have a measure for Delivery Quantity?
Are you ranking Countries or Products, etc? f so it's great if your model has unique dimension tables to connect to your fact table. Also the Date Table should be the source of your date slicer.
Something like
Total Delivered Units = SUM(Table[Total Shipments]) (this will be used in ranking measure.)
Yes, I want to have a ranking which is always based on the current sorting of the table.
So it would also go a simple counting of the table columns from top to bottom. Is this possible?
@Anonymous , What do you mean by sort for the last 14 days?
Rank is created on a column or set of column and measure and remains on that.(with all used in rank filter will not work, with allselected filter will work )
You can make it dynamic using a switch
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
User | Count |
---|---|
42 | |
28 | |
24 | |
20 | |
16 |
User | Count |
---|---|
54 | |
35 | |
18 | |
18 | |
15 |