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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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