Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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?
Solved! Go to Solution.
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
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
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?
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
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])Do you know if it is possible to create a new column that is a replica of the one of the database? Thanks! @Anonymous
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
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |