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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Number format: Display billions and millions with apostrophe

Dear Power BI Community,

 

is it possible to show numbers in a apostrophe format? 

Two apostrophe '' for billions and one apostrophe ' for millions.

 

For example:

  • 17.100.000.000 would be 17''100'
  • 36.200.000 would be 36'

 

Best regards,

 

Marco

5 REPLIES 5
HarishKM
Impactful Individual
Impactful Individual

@Anonymous Okay use this way.

Go to model in desktop select that measure you wanted to format . in my case it is sales so i selected sales then scroll down till formatting then in format dropdown select custom => paste this string  (  0''#0',###0',##0 ) it will be formated for you then you use it in your calculation .

 

HarishKM_0-1618917129624.png

output will be like this .

 

HarishKM_1-1618917231941.png

This will fulfil your requirement.

Kudos will be appriciated 

 

Anonymous
Not applicable

Thanks for your answer. 
There is still one small issue:

It has to be a formatting based on a condition, since if it's below 1 B, it has to be only one apostrophe (e.g. 36'). And if it's more than 1 B, I need two apostrophe for billions and one apostrophe again for the millions (e.g. 7''36'). In Excel you would format it like this: [>=1000000000]#''##0';[<=-1000000000]-#''##0';##0'.

 

Do you know if that's possible in Power BI?

HarishKM
Impactful Individual
Impactful Individual

@Anonymous  You can do it but again you have to do it with format () dax then it will be like text field then it will not fulfil your requirement .
or let me do some research on it 

HarishKM
Impactful Individual
Impactful Individual

@Anonymous Hey Marco ,
idea -  FORMAT(your measure ," 0''#0',###0',##0 ")
Result will be like 

test = FORMAT(SUM(financials[ Sales])*100," 0''#0',###0',##0 ")  -( I am multioplying 100 as i do not have value in billion .)

Try something like this . output will be like this . It will fulfil your requirement .

HarishKM_0-1618910386185.png

Kindly refer below document as well for your reference . Power bi desktop-custom-format-strings 

Kudos will be appriciated .

Anonymous
Not applicable

Hi HarishKM,

 

thanks for your response. I've tested your solution and it works for tables.

However, it doesn't seem to work for charts since test is not formated as number anymore.

That's why I can't do calculations with it.

 

Do you have a solution for that?

 

Thanks!

 

Marco

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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