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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jhowe1
Helper III
Helper III

matrix month sort incorrect

Hi all,

 

I have tried multiple things but can't seem to get my matrix to sort correctly. I want to be able to sort month name YY-MMM correctly horizontally and vertically. Something so simple this is driving me NUTS. 

 

Screenshot 2021-02-17 at 17.22.11.png

I tried sorting by KEY_AccountingPeriod (YYYYMM) and changing type to INT but no matter what I try I'm not getting the results I'm expecting... what am I missing? The date table is coming from SQL Azure db. 

 

Screenshot 2021-02-17 at 17.25.15.png

1 ACCEPTED SOLUTION

I have figured it out, it's quite simple I was confusing the functionality between sorting a column and sorting a column by ANOTHER column. I simply had to click on my accounting month name column, then click sort by column KEY_AccountingPeriod and sorts correctly. Clicking sort ascdending/descending on any column was not necessaryI have figured it out, it's quite simple I was confusing the functionality between sorting a column and sorting a column by ANOTHER column. I simply had to click on my accounting month name column, then click sort by column KEY_AccountingPeriod and sorts correctly. Clicking sort ascdending/descending on any column was not necessary

View solution in original post

4 REPLIES 4
themistoklis
Community Champion
Community Champion

@jhowe1 

 

If you add KEY_AccountingPeriod (YYYYMM) field (the one converted to integer) to the table and then select sort ascending using the field what are the results you are getting?

Hi thanks for your reply, just to be specific you mean add KEY_AccountingPeriod to the matrix? select sort ascending using which field KEY_AccountingPeriod or AccountingMonthName?

i sort by accounting period, correct although i notice my key_accountingdate is now incorrect in some areasi sort by accounting period, correct although i notice my key_accountingdate is now incorrect in some areaskey_accounting period is correct in matrixkey_accounting period is correct in matrixaccounting month name still incorrect on it's ownaccounting month name still incorrect on it's own

I have figured it out, it's quite simple I was confusing the functionality between sorting a column and sorting a column by ANOTHER column. I simply had to click on my accounting month name column, then click sort by column KEY_AccountingPeriod and sorts correctly. Clicking sort ascdending/descending on any column was not necessaryI have figured it out, it's quite simple I was confusing the functionality between sorting a column and sorting a column by ANOTHER column. I simply had to click on my accounting month name column, then click sort by column KEY_AccountingPeriod and sorts correctly. Clicking sort ascdending/descending on any column was not necessary

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors