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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
hugo_barbara
Helper I
Helper I

One column, multiple data types

Guys, good afternoon.

Would you know a way to format several types of data that are in a single column?

For example, I have a column to insert into a bar chart with the following types: monetary ($), percentage (%) and integers.

I've tried different ways but I haven't been successful, has anyone experienced this situation?

1 ACCEPTED SOLUTION
dharmendars007
Memorable Member
Memorable Member

Hello @hugo_barbara , 

You can create a calculated column in DAX that formats the values as text based on their type try this for table visual.

 

Formatted Values =
SWITCH(
TRUE(),
'YourTable'[Type] = "Monetary", FORMAT('YourTable'[Value], "$#,##0.00"),
'YourTable'[Type] = "Percentage", FORMAT('YourTable'[Value], "0.00%"),
'YourTable'[Type] = "Integer", FORMAT('YourTable'[Value], "#,##0"),
BLANK())

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

2 REPLIES 2
dharmendars007
Memorable Member
Memorable Member

Hello @hugo_barbara , 

You can create a calculated column in DAX that formats the values as text based on their type try this for table visual.

 

Formatted Values =
SWITCH(
TRUE(),
'YourTable'[Type] = "Monetary", FORMAT('YourTable'[Value], "$#,##0.00"),
'YourTable'[Type] = "Percentage", FORMAT('YourTable'[Value], "0.00%"),
'YourTable'[Type] = "Integer", FORMAT('YourTable'[Value], "#,##0"),
BLANK())

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

thanks for the help!
However, when applying the solution provided, I found that the data had a string type, would there be a way to leave it with a numeric type but with the same format as mentioned above?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.