Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi!
I have a table with 10 rows and 2 columns. I want to do a study on the "Ay1" column. The format of the “Ay1” column is set to text. However, some lines consist of numbers. How can I set some rows in the "Ay1" column as text and some rows as integers?
What I want to do may seem interesting, but it has a logical explanation 😊
Thank you...
Solved! Go to Solution.
Hi @Oguzhan0556 ,
You can only have 1 data type per column. However, you can use the VALUE or CONVERT function in your measures or calculated columns if you need to switch between types.
Value:
https://learn.microsoft.com/en-us/dax/value-function-dax
Convert:
https://learn.microsoft.com/en-us/dax/convert-function-dax
Please accept as solution if this answers the question- thanks!
Thank you all!
Hi @Oguzhan0556 ,
You can only have 1 data type per column. However, you can use the VALUE or CONVERT function in your measures or calculated columns if you need to switch between types.
Value:
https://learn.microsoft.com/en-us/dax/value-function-dax
Convert:
https://learn.microsoft.com/en-us/dax/convert-function-dax
Please accept as solution if this answers the question- thanks!
@Oguzhan0556 , You can same data type in dax, so you can use format, function to format the integers in a format , but you can not have mixed data type
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 68 | |
| 45 | |
| 43 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 196 | |
| 126 | |
| 106 | |
| 78 | |
| 55 |