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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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