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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ben81
Helper I
Helper I

DAX measure not using conditional formatting

Hi,

 

I have a slicer that has 3 metrics, average, total and volume and this filters a table that has a measure which using a SWITCH function will either show average values, total values or volumes. 

 

The AVG and Total are displayed in currency and the volume is in general number which I achieve by adding in the FORMAT function to the measure. 

 

The issue I have is that when I use the FORMAT function in my measure it does not allow me to use conditional formatting which I want so I an add in data bars. If I remove the FORMAt function then the data bars work but then I either have to have everything in currency or in general number! 

 

Any ideas? 

 

Thanks,

Ben

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ben81 , Format means text, and that will not allow you to this measure a number.

 

You can use calculation groups, there you can have different format for measures

 

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Ben81 ,

 

The FORMAT function converts a value to text according to the specified format.

In the measure tools directly select a currency format or a general format.

vstephenmsft_0-1645769319057.png

If you use the FORMAT function, you'll get a text format.

vstephenmsft_1-1645769361144.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Ben81 , Format means text, and that will not allow you to this measure a number.

 

You can use calculation groups, there you can have different format for measures

 

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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