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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
rdumbre
Frequent Visitor

Field List Order (Columns)

How do I get the sort this based on my source data?

 

rdumbre_0-1649668075990.png

@amitchandak @lbendlin @parry2k @Samarth_18 @johnt75 @TheoC @Greg_Deckler @bcdobbs @jdbuchanan71 @mahoneypat 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Although I don't recommend it (and didn't confirm it), but you could accomplish this by dynamically prefixing the column names with a variable number of zero-width spaces based on their position in Table.ColumnNames. However, that would complicate writing measures (e.g., manually typing in column names, but you could pick them from the list correctly).

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
TheoC
Community Champion
Community Champion

@rdumbre the field list is sorted alphabetically.  If you want it changed, you would need to rename the fields in order of your source data.

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

mahoneypat
Microsoft Employee
Microsoft Employee

Although I don't recommend it (and didn't confirm it), but you could accomplish this by dynamically prefixing the column names with a variable number of zero-width spaces based on their position in Table.ColumnNames. However, that would complicate writing measures (e.g., manually typing in column names, but you could pick them from the list correctly).

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amrans
Frequent Visitor

Based on my observation you are asking for custom sorting in Power BI Desktop UI which seems not possible. Custom sorting can be implmented on visuals only when you are developing report. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors