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
Anonymous
Not applicable

How to format up to 2 decimal places in DAX using FORMAT()

Hi All,

I am trying to dynamically change the currency symbol according to the currency selection in the slicer.

 

I am using the FORMAT function to display currency according to the currency selected in slicer

FORMAT(MeasuretoFormat,"$#,##0.##")

results as:

SaloniGupta_0-1635909777032.png

 

How to Format it up to 2 decimal places? so the value $1364. should be displayed as $1364.00

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

FORMAT(MeasuretoFormat,"$#,##0.00")

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Try like

FORMAT(MeasuretoFormat,"$#,##0.00")

Hello,

 

What if I want to format up to one decimal number?

For example. it is now showing like 85.32%

I want to change it to 85.3% using format in dax

 

Thank you in advance!

= FORMAT(MeasuretoFormat,".#%")

Anonymous
Not applicable

Hi @amitchandak 
That worked. Thanks a lot👍

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.