Forum Discussion
Custom sorting in column chart
- 4 years ago
Anonymous you should sort by another column to set the order Sort one column by another column in Power BI Desktop - Power BI | Microsoft Docs
and put visual level filter to remove the bar with blank/emoty value.
✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Anonymous you should sort by another column to set the order Sort one column by another column in Power BI Desktop - Power BI | Microsoft Docs
and put visual level filter to remove the bar with blank/emoty value.
✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- Anonymous4 years agoNot applicable
Hi parry2k ,
Thanks for your reply! It worked after several trials.
-----------------------------------------------------------------------------------
A note for other Power BI beginners like me:
This thread might help: https://community.powerbi.com/t5/Desktop/How-to-best-categorize-data-based-on-ranges/m-p/485367
I wouldn't recommend using SWITCH function in DAX if you want to achieve the same goal. SWITCH can only distinguish integers by itself. There are some solutions using VAR and SWITCH together as a workaround, but that can cause circular dependencie issues later when you try to sort the categories by assigning IDs to them. Using old-fashioned nested IF statement will save you some time.