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
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
Employee
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
Super User
Super User

@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
Employee
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
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.