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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Oguzhan0556
Helper I
Helper I

How to change the format of the table based on rows?

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

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

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!

View solution in original post

3 REPLIES 3
Oguzhan0556
Helper I
Helper I

Thank you all!

djurecicK2
Super User
Super User

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!

amitchandak
Super User
Super User

@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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.