Forum Discussion
Sort graph axis values (DAX generated)
Hello community,
I have created a Boxplot chart showing salary distribution per category. The categories are retrieved from a table that was created by DAX. As you can see in the photo, the categories order is random and I want to sort the categories so I have L3, L5, L6.
How can I do that?
Thanks in advance 🙂
Anonymous , Create a sort column mark that as sort column and sort visual on axis
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-chttps://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
- Anonymous3 years ago
Thank you for your feedback amitchandak
what I did to resolve this problem , is that i Created the ID column in the DAX code that I used to generate my table. By so doing, I have no dependency between category and ID_cat so. COnsequently, when I used sort column by ID_Cat it worked successfully.
Conclusion: try to avoid circular dependency
2 Replies
- amitchandakSuper User
Anonymous , Create a sort column mark that as sort column and sort visual on axis
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-chttps://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
- AnonymousNot applicable
Thank you for your feedback amitchandak
what I did to resolve this problem , is that i Created the ID column in the DAX code that I used to generate my table. By so doing, I have no dependency between category and ID_cat so. COnsequently, when I used sort column by ID_Cat it worked successfully.
Conclusion: try to avoid circular dependency