Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JeroenHD
Helper I
Helper I

Custom sort order column headers

Hello Team, 

I have a problem sorting the column headers in my visual.
I have two columns from a table which are column headers in my visual. 
The Months, 6 Months, YTD and Full Year i managed. But now the second headers are sorted alphabatically. 
And they are named equally so i don't know how to get around this wwithout getting the sort by other column error message. 

How would i achieve this? 

JeroenHD_2-1663323022932.png

 

The Detail is sorted by Sorter column. No i need to get the Detailsmain sorted too as is. But as you can see above that didn't work too much.

JeroenHD_0-1663322943729.png


Thanks a heap!

 

2 ACCEPTED SOLUTIONS

In that case you need to create different names for the DetailMain headers based on how they need to be sorted and create the sorting order accordingly. ("Budget for Month", "Budget for YTD"...)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Hello Paul, 

Then the colums become to wide. I solved it differently. Not very elegant, but i created unique values by using No-Break Spaces. 

Thanks for thinking along with me.

View solution in original post

6 REPLIES 6
PaulDBrown
Community Champion
Community Champion

As @Greg_Deckler points out, you need to sort the DetailMain column by a sorting column. However, to do so each value in the DetailMain column must have the same sorting value; so Budget must have the same sorting value for example (the Sort column has several different values for Budget). So you need a new sorting column for the DetailMain column





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hello Paul, 
Thanks for clarifying further. But that means that the order of DetailsMain as a sub header will have all the same order. That will not solve it. For example Budget column under Month will be 3rd in order, but should be 2nd under YTD. Or am i missing something?

 

In that case you need to create different names for the DetailMain headers based on how they need to be sorted and create the sorting order accordingly. ("Budget for Month", "Budget for YTD"...)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hello Paul, 

Then the colums become to wide. I solved it differently. Not very elegant, but i created unique values by using No-Break Spaces. 

Thanks for thinking along with me.

Greg_Deckler
Community Champion
Community Champion

@JeroenHD Sorry, what? I think you need a Sort By column but not entirely sure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hello Greg, thanks for your reply. I did use that for the Month, 6 Months, YTD and Full Year. For the headers below that they are named equally so i get the message that there can't be more than one value for the same value... etc. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.