This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I have below two columns in my data containing the values - Core, Moderate and Breakaway.
In my Visuals, I want the sort order to be Core->Moderate->Breakaway, but orders as Breakaway->Core->Moderate (alphabetically).
What I have done now is created two conditional columns where I am populating the values 1,2,3 based on the values in the respective columns (below logic). I am then using these index columns to achieve the required sort order.
If(Cluster-2017 = Core, then Cluster2017Index = 1) elseif(Cluster-2017 = Moderate, then Cluster2017Index = 2) elseif(Cluster-2017 = Breakaway, then Cluster2017Index = 3) #Similar approach for Cluster-2016
Is it possible to achieve this using a single column or any other better approach possibe?
Thanks,
Milan
Solved! Go to Solution.
Hi @MilanRao06,
Based on my research, currently, the only way to achieve custom sort is creating extra conditional column, then sort records based on this conditional column. The conditional column is created according to one specific column, it will create a one to one mapping relationship between these two columns in row level. So, it is not available to sort multiple columns which contain exactly same values though based on a single conditional column.
Best regards,
Yuliana Gu
Hi @MilanRao06,
Based on my research, currently, the only way to achieve custom sort is creating extra conditional column, then sort records based on this conditional column. The conditional column is created according to one specific column, it will create a one to one mapping relationship between these two columns in row level. So, it is not available to sort multiple columns which contain exactly same values though based on a single conditional column.
Best regards,
Yuliana Gu
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 23 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 44 | |
| 41 | |
| 41 | |
| 21 | |
| 21 |