cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vjnvinod
Post Prodigy
Post Prodigy

measure for converting numbers to million

Hi,

 

 

I have noticed that Multirow card, doesnt have an option to covert the values to Millions. take a look at below

how will i convert this to Millions? i want to see the numbers look like 238.1M

 

mutlirowcard issue.JPG

1 ACCEPTED SOLUTION

That's because you passing in a column rather than a measure.

 

Wrap that column in an aggregation function or reference a measure instead and try again.

 

FORMAT(SUM(pipeline[Total Value Of Potential Sale (USD)]), "#,,.0M")

When you were using that column seemingly without the SUM before adding the FORMAT function, Power BI created an implicit measure that did the aggregation, but you can't reference implicit measures.

View solution in original post

6 REPLIES 6
AlexisOlson
Super User
Super User

You can use the FORMAT function.

 

FORMAT([measure], "#,,.0M")

You can read more about user-defined formats here:

https://docs.microsoft.com/en-us/dax/custom-numeric-formats-for-the-format-function

@AlexisOlson

I am not able to use format function for some reason, please see the below error

 

errornew.JPG

You're missing a comma after your measure

@jthomson

 

still doesn't workserrornew1.JPG

 

and i have the field below

 

salefield.JPG

That's because you passing in a column rather than a measure.

 

Wrap that column in an aggregation function or reference a measure instead and try again.

 

FORMAT(SUM(pipeline[Total Value Of Potential Sale (USD)]), "#,,.0M")

When you were using that column seemingly without the SUM before adding the FORMAT function, Power BI created an implicit measure that did the aggregation, but you can't reference implicit measures.

Hello, I tried this and it did convert my values but i can't format the data values in multi-row card. Any work around for this. 

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors