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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vjnvinod
Impactful Individual
Impactful Individual

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

vjnvinod
Impactful Individual
Impactful Individual

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

Anonymous
Not applicable

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.