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

Re-arranging row and column values

image.png

 

Hi - I'm looking to re-arrange the row and column values in this matrix. I can't drag and drop like in excel and I'm wondering if there's another way to specify the order (maybe by creating an index in query editor?). 

 

Ideally, the rows will look like (<=7, 8-24, 25-30, 30+, NONE) and the columns (0, 0-20, 21-40, 41-60, etc...)

 

Appreciate the assistance!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

Create a two column table with buckets whcih you have dragged to teh row labels appearing in the first column and their order (simple numbers) in the second column.  Take this 2 column table to the Data Model.  Create a relatioship from the buckets appearing in your base data to the first column of this table.  With the help of the RELATED() function, bring over the numbers column from this new table to the base data table.  Then use the Sort by column feature in the base data table.  Remember to drag the bucket from the base data table (not from the new table).

 

Repeat the steps above for the buckets appearing in the column labels as well.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

 

Create a two column table with buckets whcih you have dragged to teh row labels appearing in the first column and their order (simple numbers) in the second column.  Take this 2 column table to the Data Model.  Create a relatioship from the buckets appearing in your base data to the first column of this table.  With the help of the RELATED() function, bring over the numbers column from this new table to the base data table.  Then use the Sort by column feature in the base data table.  Remember to drag the bucket from the base data table (not from the new table).

 

Repeat the steps above for the buckets appearing in the column labels as well.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.