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
ceciliam2
New Member

Selectcolumns not working properly

Hi guys,

 

This problem has been puzzled me for a couple days and I didn't find similar post here or anywhere. So I decided to post myself. 

I want to re-order a dax table's columns, but selectcolumns doesn't retrun columns in the order I set. WHY is it acting like this? Has anyone run into the same problem before? 

ceciliam2_0-1680710603364.png

 

Thanks!

Cecilia 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ceciliam2 , Take out the script(dax code), Drop the table, create again, and try. if you change the script after the table is created it does not follow the order

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ceciliam2 , Take out the script(dax code), Drop the table, create again, and try. if you change the script after the table is created it does not follow the order

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

thanks amit. it worked. unfortunately i had to rewrite all the measures and relink relationships after i drop the dax table in my live model. I wonder why selectcolumns works like this, or maybe it's a bug that can be fixed? 🙂 

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!

December 2024

A Year in Review - December 2024

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