Forum Discussion
Custom Sorting in measures (legend)
- 2 years ago
Create a static reference table in your data model. Keep it disconnected.
Feed the visual from the first column, Use the measure to find the selected value and return the associated result.
- 2 years ago
Hi Jit007 ,
lbendlin Thanks for your concern about this case!
I'll detail what lbendlin means with test data.
Here is my sample data:
I use this DAX to create the measure:
Here is the Table(2):
And use this DAX to create another meaure:
Measure 2 = MINX(FILTER('Table (2)', 'Table (2)'[level] = [Measure]), 'Table (2)'[rank])
Sorting on measure 2:
But there is a problem with this approach, which is that both measure and measure 2 must exist in your visual object. If you don't want measure 2 to appear in the Table visual object, you can play a little mind trick:
Then click on the edge of the cell where the measure 2 column header is located and pull it inward until you can't see the column.
This way, even though measure 2 is no longer visible, both measure and measure 2 still exist in the table.
Best Regards,
Dino Tao
If this post helps, then please consider Accept both of the answers as the solution to help the other members find it more quickly.
Thanks for your response..but the problem is how to show this in line & stacked column chart..there we might face challege.. please suggest Anonymous lbendlin
- lbendlin2 years agoSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- Jit0072 years agoHelper II
I need help to sort by in following order- Excellent >Good >Average
Thanks lbendlin Anonymous
Sorting.pbix attached file
- lbendlin2 years agoSuper User
see attached