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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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 

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors