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
mphillenga
Helper I
Helper I

Sorting decimal number in matrix fails

Hello,

 

I have a report displaying a matrix containing several text fields in rows and several measures as values.

One of the columns contains a start week which looks like e.g. '202115' and is formatted as decimal number.

 

I would like to sort the start week. But it always shows up in the wrong order as shown below:

Screenshot 2021-10-27 at 15.27.20.png 

 

I checked all DAX code as shown below:

image005.png

 

And also the sorting on column was set: 

 

image006.png

 

 

Anyone any idea what the issue could be?

 

Thanks,

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mphillenga , this is a sortable number. I doubt you need sort column. Can remove sort column for start week and try again

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @mphillenga ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @mphillenga ;

Please try clicking on this column in the matrix once or twice.

vyalanwumsft_0-1635835059731.png

The final output is shown below:

vyalanwumsft_1-1635835391461.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@mphillenga , this is a sortable number. I doubt you need sort column. Can remove sort column for start week and try again

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

Thanks for the suggestion. It did not solve my problem.

However I manage to find it. If I use a table instead of a matrix the sorting works fine.

 

Thanks,

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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