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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sakal
Helper I
Helper I

How to re-arrange columns in Power BI Visual

Hello,

By default Power BI arranged them in this format. I'd like to re-arrange them. How do I move column 1 before column 2 in the visual.
Column '90 Days or More' is column one - I'd like to re-arrange it to be in front of column '100 Days or More' which is column 2 in red. Once the re-arrangement is complete, they would list as followed: 

                                                90 Days or More     ||     100 Days or More     ||     130 Days or More

Thanks. Sakal

Sakal_0-1726060757504.png

 

1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

1) Create a Conditional column in Power Query (or new calculated column with Dax) where you define the order you desire: If [Field] = "90 Days or More" then 1 else if [Field] = "100 Days or More" then 2 else if [Field] = "130 Days or More" then 3 and name it like "Days Bucket Sorting"

2) Go to Table view and select the field/category column. Go to the upper Column tools menu and select Sort by column

ray_aramburo_0-1726062442721.png

3) Select the "Days Bucket Sorting" column from the dropdown list 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
AnkitKukreja
Super User
Super User

Hi! @Sakal 

 

Once you select that visual you can see that information under visualisation, I believe it's a matrix, so you can move the fields by dragging. That order will define which column should be number 1,2 or 3.

 

 

AnkitKukreja_1-1726066760808.png

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

It worked with the Conditional column. Thanks for your time @AnkitKukreja

ray_aramburo
Super User
Super User

1) Create a Conditional column in Power Query (or new calculated column with Dax) where you define the order you desire: If [Field] = "90 Days or More" then 1 else if [Field] = "100 Days or More" then 2 else if [Field] = "130 Days or More" then 3 and name it like "Days Bucket Sorting"

2) Go to Table view and select the field/category column. Go to the upper Column tools menu and select Sort by column

ray_aramburo_0-1726062442721.png

3) Select the "Days Bucket Sorting" column from the dropdown list 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





It worked with the Conditional column. Thanks @ray_aramburo 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.