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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
FL618
Regular Visitor

Sorting columns based on other columns not working

Hi

I read many similar issues with sorting but could not find the proper solution for my case.

The situation is quite standard:

I want to sort a column "subheader" based on a column "subheader order" ... and I get an error message.

My approach to solve the issue;
1)  I trimmed and cleaned all Subheader entries .... still getting the error message

2)  I created a table with Subheader and Subheader Order ... no duplicates shown ... still getting the error message

3)  I deleted all but 10 rows of the table ... still gettig the error message 

FL618_0-1741451800245.png

4)  crying out for help in this forum ....

 

Seriously, I have no clue why I cannot sort. Can anyone help me out?

 

Best regards
Franz

1 ACCEPTED SOLUTION
Deku
Community Champion
Community Champion

Try running the following in Dax view or Dax studio to confirm only two distinct rows are returned

 

Evaluate

summarize( datum, datum[subheader], datum[subheader order])

 

Try closing and opening Power BI and give it a go again

 

Try tabular editor 

 

Try TMDL view


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

4 REPLIES 4
FL618
Regular Visitor

Hi Deku

I followed your suggestions ... and it worked.

I must confess I don't know why, but it worked 🙂

Thanks a million.

Regards
Franz

andrewsommer
Memorable Member
Memorable Member

Are you sure there are not any blank rows?

Hi Andrew
Yes, there were only 10 rows and no blanks.

Regards

Franz

Deku
Community Champion
Community Champion

Try running the following in Dax view or Dax studio to confirm only two distinct rows are returned

 

Evaluate

summarize( datum, datum[subheader], datum[subheader order])

 

Try closing and opening Power BI and give it a go again

 

Try tabular editor 

 

Try TMDL view


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.