cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gdps
Helper IV
Helper IV

Help with FORMAT

Hello all!

 

I created a calculated column to format other column with some Net Sales values.

 

 

test = FORMAT(Summary[Y5 NS (USD)];"$#,##0,,M")

 

 

Basically, if I have a value of $ 17.086.863 , format returns $17M.

 

But, if I have $ 3.500.000 , format returns $4M.  But I need $3.5M.

 

Any idea how to solve this?

 

Best Regards,

 

4 REPLIES 4
Gdps
Helper IV
Helper IV

I don't know if it's the best solution, but instead of using FORMAT, I created a calculated column with the following expression:

 

Test3 = "$"&ROUNDDOWN(Summary[Y5 NS (USD)]/1000000;1)&"M"
amitchandak
Super User IV
Super User IV

@Gdps , @parry2k has provided the solution. You can also refer to this document: https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

parry2k
Super User III
Super User III

@Gdps try this

 

test = FORMAT(Summary[Y5 NS (USD)];"$#,##0.00,,M")

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Hello @parry2k 

 

Did not work :S

 

$3.500.000 become $3,500,00.00M

 

$17.086.863 become $17,086,863.00M

 

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors