Forum Discussion
Rank rows by 'unique' id
- 5 years ago
Hi, decarsul
Based on your description, I modified the table as below.
Table:
You may modified the measure as below. SUM('Table'[WorkorderID]) need to be changed as MAX('Table'[WorkorderID]) because text column can not be used in sum aggregation.
Rank Measure = RANKX( FILTER( ALL('Table'), [CustomerId]=MAX('Table'[CustomerId]) ), CALCULATE(MAX('Table'[WorkorderID])), ,ASC )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This was great and helped me a lot for my scenario. However, when I try to use this in a bar chart to show how much the price is for each of my categories, the values are showing for the overall total not just the ones whose dynamic ranking is 1. Even when I try to use the measure as a filter it shows blank. I know it's been a few years but any help on this would be great.