Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm trying to get one column to sort by another, and I'm getting the error that there are multiple sort-by values for each of the to-sort column's values:
However when I summarize the two columns to try and spot where the error is, it looks like everything is correct:
Is there something I'm missing, or is summarize not giving me the full picture?
Thanks!
Solved! Go to Solution.
As it happens I fixed things. Looks like it was just a Power BI bug - restarting has removed the error. Thanks for your help anyway!
Create a Custom Table with all the category either manually in Power Query or Summarize Table.
Create a new column beside and provide the number in the order you want to arrange.
Create a relationship between the column in actual table to the custom sort table
Create a column in Actual table with an expression.
Sort order = RELATED(CustomSortTable[Sort])
Select the column you want to sort, and a “Column Tools” menu bar will appear at the top. Now Select the “Sort by column” and select the sort order column.
Proud to be a Super User! | |
Hi Kaviraj,
That is the setup I have, the field [BucketSort] in the image above is pulled in from another table with RELATED. I also tried using SWITCH within the calculated column, which also didn't work.
Would you able to share the pbix file or a sample file?
Proud to be a Super User! | |
As it happens I fixed things. Looks like it was just a Power BI bug - restarting has removed the error. Thanks for your help anyway!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
95 | |
50 | |
43 | |
40 | |
35 |