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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Format Thousands and Millions to M and MM

I need help with formatting numbers in Power BI. The default is to represent thousands with K and millions with M. My company uses M to represent thousands and MM for millions. So 104,000 would show 104M and 1,400,000 would be 1.4MM. Is there a way to change these settings or create a measure to format the numbers like this?

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

Hi @Anonymous ,

Please try this:

Result = SWITCH(TRUE(), Tablename[Columnnane] < 1000, concatenate ("$", Tablename[Columnname]), Tablename[Columnname]>=1000, concatenate ("$", concatenate (

(Tablename[Columnnane]/1000, "M")), Tablename[Columnname]>=1000000, Concatenate ("$", concatenate (Tablename[Columnname]/1000000,"MM"))

 

 

@Anonymous -> please hit the thumbs up and mark it as a solution if it helps you. Thanks.

View solution in original post

5 REPLIES 5
Kerry_M
Helper I
Helper I

I also need to do this to my reports and have dozens of measures that need this formatting applied. Is there no way to add a GLOBAL format to Power BI so that I can simply choose the global format from the menu (the way I choose Currency or Percent formatting?)

Anonymous
Not applicable

Great Answer 

Anonymous
Not applicable

I am more looking for settings. I have a lot of different measures that involved these numbers so would be tough to try to do this for every single measure or aggregate function. Also, this would mean the numbers in any visuals would still have the K or M rather than M or MM

truptis
Community Champion
Community Champion

Hi @Anonymous ,

Please try this:

Result = SWITCH(TRUE(), Tablename[Columnnane] < 1000, concatenate ("$", Tablename[Columnname]), Tablename[Columnname]>=1000, concatenate ("$", concatenate (

(Tablename[Columnnane]/1000, "M")), Tablename[Columnname]>=1000000, Concatenate ("$", concatenate (Tablename[Columnname]/1000000,"MM"))

 

 

@Anonymous -> please hit the thumbs up and mark it as a solution if it helps you. Thanks.

Hello, I tried it and it didnt work, would you be able to guide me in more details since I am a beginner on Power BI. this done through measure?

 

Thanks,

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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