Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
In my table I have rows values which has no sort in its data source (direct query), as below:
| ColumnA |
| High |
| Medium |
| Low |
So I figured I must create new column and create some sort value like this :
Sort = SWITCH(Table [ColumnA],
"High",1,
"Medium",2,
"Low",3)
But if I go back to ColumnA and Set Order by this new column, I will get error saying it circular dependant.
How actually to create a custom sort ?
Thanks in advance
Solved! Go to Solution.
I prefer to do my data modelling in Power Query.
Hope this helps.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
I prefer to do my data modelling in Power Query.
Hope this helps.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Thank you this helped me. however, the data on my visualization is not showing the results from the new data arrangement. what am I missing?
Thank you
Probably best to open a new question.
You can reference this thread and tag people to get their attention.
Replying to solved threads will often not get a response.
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
You could also key in the Sort column by modifying the Source step rather than defining a custom column (assuming the table was created in the query editor to begin with, of course).
Hi,
Sure, but I'm using Direct Query (which I didn't tell in this thread). So have limitation of modifying source, especially cannot add table.
Thanks
Hi,
I suggest creating a new table like below, instead of creating one column by one column.
Once the new table is created by using the below formula, then the ColumnA can be sorted by the Sort column.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 42 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |