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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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