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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Jerush
Helper I
Helper I

Error when formatting number using FORMAT

Hi All

I am trying to format a number in a certain format (space seperator) but getting an error.

Its a simple if statement, and the value that I want to format is a whole number.

Not sure what I am missing or doing wrong. 

Jerush_0-1688038773156.png

 

Thanks everyone.

Regards,

Jerusha

 

3 REPLIES 3
some_bih
Community Champion
Community Champion

Hi @Jerush  on link you can find your example. Maybe "Standard" could fit your need. 

I hope this help

https://learn.microsoft.com/en-us/dax/format-function-dax 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hello @some_bih  
Thank you for the speedy reply. I need the values to read as 1 234 567  So need the a space as a thousandth seperator.

Thank you again.

Jerusha 

Anonymous
Not applicable

Hi @Jerush ,

 

Please make sure that the output of the calculated columns is of the same data type.

Received = IF('Query1'[Mapping]="Premiums",FORMAT('Query1'[Amount],"### ###"),"0")

vcgaomsft_0-1690790379524.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.