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
Anonymous
Not applicable

Matrix Order doesn't match Powerquery column

How do I reorder the matrix column:"value.Month" to match column order in Powerquery column:"Value.Month"?

I have attached screenshots for verification - please help!

Powerquery Order- CorrectPowerquery Order- CorrectMatrix Column Order - WrongMatrix Column Order - Wrong

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous - In Power Query, you can add an Index column, which will add a "row number" according to the sorting in place when the index is added.

Add Index - Power Query.PNG

Then, you can add the index column to your visual and sort by it.

You can also assign a sort by column to another column, but in that case, there needs to be a 1-1 mapping.

I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@Anonymous - In Power Query, you can add an Index column, which will add a "row number" according to the sorting in place when the index is added.

Add Index - Power Query.PNG

Then, you can add the index column to your visual and sort by it.

You can also assign a sort by column to another column, but in that case, there needs to be a 1-1 mapping.

I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson

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.