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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.