The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am trying to format the number $1,558,753,918 to read $1.56B
I would use the built in billions formatting but it uses "bn" instead of "B" after a number.
I have tried using the format function but the closest I got was $1B.
Thanks for your thoughts.
Solved! Go to Solution.
I used this and I am getting $1.56B
These answers only work if you already know that you'll only have billions as a number, and if you only need text.
They don't work if you need to show $B, $M or $K depending on your values, and if you need to show that as a detail label on a pie chart.
This helped me a lot so thank you.
I added one piece to it to make it more dynamic if the value isnt in millions or billions. Just an 'else' clause to use the original column.
Changing the value, specifically the number of trainiling zero's, of 'VAR decimal = "0.0' allows you to change the number of decimals displayed.
You may aslo try Custom format strings.
FORMAT ( [value], "$#,,,.00B" )
Thank you @v-chuncz-msft but this still just gets me to $1B. I need it to also show to the nearest millions, i.e. $1.56B.
Thanks but now I get $.01B
Can this be done to format percentages as well? I would like it to read 19.82% instead of 1982%
Thank you @amitchandak this worked, I think the way the variable was coming through was messing it up but if I type in the number it works.