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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mpapreja
New Member

Custom Number Format for the Numerical Fields in Power BI

Dear Experts

 

Thanks for your support in advance. 

 

Can i use following format in Power BI which works in excel

 

[>=10000000]##\,##\,##\,##0;[>=100000] ##\,##\,##0;##,##0

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @mpapreja ,

Here are the steps you can follow:

1. Create calculated column.

Column =
IF([Column1]<10000000,
","&MID([Column1],LEN([Column1])-6,2)&","&MID([Column1],LEN([Column1])-4,2)&","&RIGHT([Column1],3),
LEFT([Column1],LEN([Column1])-6)&","&MID([Column1],LEN([Column1])-4,2)&","&RIGHT([Column1],3))

2. Result:

vyangliumsft_0-1661157454364.png

 

Best Regards,

Liu Yang

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

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @mpapreja ,

Here are the steps you can follow:

1. Create calculated column.

Column =
IF([Column1]<10000000,
","&MID([Column1],LEN([Column1])-6,2)&","&MID([Column1],LEN([Column1])-4,2)&","&RIGHT([Column1],3),
LEFT([Column1],LEN([Column1])-6)&","&MID([Column1],LEN([Column1])-4,2)&","&RIGHT([Column1],3))

2. Result:

vyangliumsft_0-1661157454364.png

 

Best Regards,

Liu Yang

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

lbendlin
Super User
Super User

mostly yes.  

Use custom format strings in Power BI Desktop - Power BI | Microsoft Docs

 

You can also use FORMAT to achieve the Indian number display.

Measure = 
var yournumber = <your number here>
var twoples = ROUNDUP((LOG10(yournumber)-3)/2,0)
var fmt = REPT("##\,", twoples) & "###.00"
return FORMAT(yournumber, fmt)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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