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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI number Format

I am trying to format a number like below.

 

For e.g; There is a number like 1234567 (This is the result of a Measure)

 

I am trying  to format the above number like 1.234.567

 

Can anybody knows this please suggest me.

 

Thanks.

2 ACCEPTED SOLUTIONS
mahoneypat
Employee
Employee

Here is one way to do it.  Just use the Substitue part and replace num1 with your measure.

 

FormatExample = var num1 = 1234567
return SUBSTITUTE(FORMAT(num1, "#_###_###"), "_", ".")
 
Regards,
Pat




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

You can use Custom Format in Model view as well.

Here I build a measure returns to 1234567,2345678 like yours.

And select Custom in Format and use this format: #"."###"."###.

1.png

Result is as below.

2.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
manikumar34
Solution Sage
Solution Sage

@Anonymous , 

 

You can use FORMAT(Table[Column or Measure],"#.###.###") to achieve this. 

 

Note: Whne you use custom format with FORMAT function the numeric value will be converted to String value. Beacuse of which you cannot place this measure on charts but can be used on cards, Table and Matrix.

 

Regards, 

Manikumar

 

If you find this is helpful, Accept as a solution and Leave a like. 🙂😊

 





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

You can use Custom Format in Model view as well.

Here I build a measure returns to 1234567,2345678 like yours.

And select Custom in Format and use this format: #"."###"."###.

1.png

Result is as below.

2.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

mahoneypat
Employee
Employee

Here is one way to do it.  Just use the Substitue part and replace num1 with your measure.

 

FormatExample = var num1 = 1234567
return SUBSTITUTE(FORMAT(num1, "#_###_###"), "_", ".")
 
Regards,
Pat




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors