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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Super User
Super User

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 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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