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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Sort Columns using Live Connection

I am working with a database live connection and I am trying to sort the columns from 1-12. However, PowerBI is not recognizing the right data type and it is ordering as 1,11,12, 2, 3, 4 ......9 

 

Is there a way to fix this issue?

 

 SortColumns.PNG

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I understand the issue no. With live connection I don't think there is much modeling available, so everything needs to be handled in the data source. 

 

Make sure the data type is correct in your data source. You may try cleaning the column too, make sure there are no text values or blanks in that column. 

 

Thanks,

Lakshmi

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous,

 

Did you try changing the data type of that column from text to whole number? You can do so from either Modeling tab on data view or transform tab while editing the query.

 

-Lakshmi

Anonymous
Not applicable

Thanks for your quick response @Anonymous. I tried to change the data type, but I am not able to do it. Since it is a live connection from a database that I do not control, I am not able to make any changes. Is there another way to bypass this problem?

Anonymous
Not applicable

I understand the issue no. With live connection I don't think there is much modeling available, so everything needs to be handled in the data source. 

 

Make sure the data type is correct in your data source. You may try cleaning the column too, make sure there are no text values or blanks in that column. 

 

Thanks,

Lakshmi

Anonymous
Not applicable

Thanks for your help. I do not have direct control of the dataset, is it possible to create a measure that replicates the column that I want to work with?  Kind of like "Column A = Column B". I wrote this in measures:

 

helper_Month_column = VALUES('Calendar'[FYMnth]) 
helper_Month_colunm = VALUES('Calendar'[FYMnth])
 But did not work.
Anonymous
Not applicable

Do you know if it is possible to create a new column that is a replica of the one of the database? Thanks! @Anonymous 

Anonymous
Not applicable

I don't think it is possible. All the model changes need to be done backend with live connection.

Refer to similar question about creating columns with live data connection-

https://community.powerbi.com/t5/Desktop/Live-Data-Source-add-columns/td-p/551288

 

With Live connectivity, Power BI is just like a front end visualization tool,  to change the model. If you don't have access to the database directly, try changing to direct query or import connectivity if possible, then you can handle the model changes. 

 

Thanks,

Lakshmi

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors