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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
vpatel55
Kudo Commander
Kudo Commander

Format to two decimal places

I'm trying to use FORMAT to get a measure to report to two decimal places. For example, £1.73M. However, the output is only showing £1.7M. It needs to be manually formatted because it will format part of a larger sentence.

 

Here is the formula being used. Any help would be appreciated.

 

 

FORMAT([value],"£#,##,,.0M"

 

 

Thanks.

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi @vpatel55 ,

 

I think you need two 0s at the end to force the decimal places, instead of the #s earlier. 

 

 

FORMAT([Value],"£#,,.00M")

 

 

AntonioM_0-1662725605958.png

 

View solution in original post

4 REPLIES 4
vpatel55
Kudo Commander
Kudo Commander

Fabulous, thanks @AntonioM !

AntonioM
Solution Sage
Solution Sage

Hi @vpatel55 ,

 

I think you need two 0s at the end to force the decimal places, instead of the #s earlier. 

 

 

FORMAT([Value],"£#,,.00M")

 

 

AntonioM_0-1662725605958.png

 

I wish it were this easy for me. Maybe you know what is wrong in my measure?

simonqish_0-1737367923567.png


No matter what I try, I can't get it to give me a proper value of $3.36. It gives me $3.30 instead. Same for other outputs of this measure: 31.50 insted of 31.53 and 1.40 instead of 1.39.
Seems it is rounding to the first decimal and just giving me zero as the second one.

I'd really appreciate any help on this.

hi @simonqish ,

 

So that should work as it is. I've tried it with a couple of numbers just in a table and it formats to two decimals like you're after.

 

AntonioM_0-1738232786311.png

 

What visual are you using that in? It could be forcing its own formatting somehow.

 

Another option, if you only need the value on its own, you can keep the measure as a number (so without FORMAT) then set it to currency and two decimal places up in the 'Measure Tools'.

 

AntonioM_4-1738233047258.png

 

AntonioM_1-1738232970665.png

 

AntonioM_3-1738233014093.png

 

 

 

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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