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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.