cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marco2307
Frequent Visitor

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
Responsive Resident
Responsive Resident

@marco2307 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 

 

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
Responsive Resident
Responsive Resident

@marco2307  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
Responsive Resident
Responsive Resident

@marco2307 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 .

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors