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
vjnvinod
Impactful Individual
Impactful Individual

measure issue

Hi Team,

 

i am using the below measure for selecting $ and %, if you see the below screenshot, my $ value is formatted in %, is there a way to fix this?

Measure 2 = IF (
    SELECTEDVALUE ( Varianceselection[select]) = "Variance$", [Variance$],([%Variance]))
 
selectionnew1.PNG
5 REPLIES 5
TeigeGao
Solution Sage
Solution Sage

Hi @vjnvinod ,

We will need to use the FORMAT() function to format the result, if we want to display the **%, we can use FORMAT ( ***, "0%" ), if we want to display the $**, we can use the FORMAT ( ***, "$#" ). You can refer to this blog: https://www.tutorialspoint.com/dax_functions/dax_format_function.htm to get a format type list.

Please refer to the following DAX query:

Measure =
IF (
    SELECTEDVALUE ( Table1[Column1] ) = "Variance$",
    FORMAT ( MIN ( Table2[Variance$] ), "$#" ),
    FORMAT ( MIN ( Table2[%Variance] ), "0%" )
)

The result will like below:

enQdbUoUQE.gif

Best Regards,

Teige

vjnvinod
Impactful Individual
Impactful Individual

@TeigeGao 

 

tried using the format fucntion before it didn't help, tried the below one as well, i am getting error

 

see the screenshotnew12error.PNG

 

There is no need to use MIN() function in your scenario, it is a sample, you can use FOARMAT() directly, by the way, could you please share the pbix file? 

vjnvinod
Impactful Individual
Impactful Individual

@TeigeGao 

 

doesn't work.

doesn't look like you can use format function directly when you have measures for $ and %, don't get confused this with coloumns.

variance$ and Variance% is a measure in my case & the example above you have shown is coloumns

vjnvinod
Impactful Individual
Impactful Individual

@Zubair_Muhammad 

 

any solution for this formatting issue, due to measure?

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.