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.
I keep hitting this issue trying to sort by another column, where I have many incidents that occur in a single day, my goal is to sort the table first by calendar day, then by the incidents, in the order of most incients counts to least incident counts;
Sample Data;
Date | Incidents | IncidentCount |
11/8/2016 | IncidentA | 5 |
11/8/2016 | IncidentB | 50 |
11/8/2016 | IncidentC | 3 |
11/7/2016 | IncidentD | 100 |
11/7/2016 | IncidentE | 5 |
11/7/2016 | IncidentF | 70 |
This is the output I would like:
Date | Incidents | IncidentCount |
11/8/2016 | IncidentB | 50 |
11/8/2016 | IncidentA | 5 |
11/8/2016 | IncidentC | 3 |
11/7/2016 | IncidentD | 100 |
11/7/2016 | IncidentF | 70 |
11/7/2016 | IncidentE | 5 |
But I keep getting this error when I sort by another column:
"Sort by Another Column Error" "We cannot sort the "foo" column by "bar". You can't have more that one value in "foo" for the same value in "bar". Choose a different column for sorting or update the data in "bar".
You can use the matrix visualization to see the sorting by the calendar day and Incident Count.
Alternatively, You can also create a third calculated column to combine the two columns using CONCATENATE and do the sorting by that column.
Thanks you for your response, but that is what I tried to do, but notice the Date column gets re-sorted, where I need to see most current date at the top, then I need to see IncidentCount sorted, my example I used Excel to do this (first sort one column, then sort a 2nd column), so I am hoping there is a way to also do this in Power BI?
Hi @jsnadams,
Currently, power bi visuals not support multiple columns sort, since others has already post this request, you can vote at below link:
Add a multiple columns sort featue
Regards
Xiaoxin Sheng
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |