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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
lucas105
Advocate II
Advocate II

Custom formatted metric doesn't show up on visual

Hi, 

 

I'm struggling with an issue - I'm working on a PBI connected to an Analysis Services instance. 


What I was trying to achieve is to display a custom format depending on a value to show it in a custom format i.e. 

myMetricCustomFormat:=IF([myMetric]>1000000, FORMAT([myMetric] "#,0,,.00MM"), FORMAT([myMetric], "#,0,.00M"))

 

However, when I'm trying to show this on visual other than Table/Matrix/Card won't show up (I'm trying to display that on donut chart). 

 

Can someone tell me what's wrong with this? Or is this even achievable? 

 

Thanks,

Luc

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @lucas105 ,

The format function you add to your dax formula will convert original values as text with a specific format.
AFAIK, current power bi does not support analysis text value on value fields, it only supports summarize field values.  New field format feature can change display value format but it seems not support to do conditional formatting.

Power BI Desktop September 2019 Feature Summary/#analytics 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @lucas105 ,

The format function you add to your dax formula will convert original values as text with a specific format.
AFAIK, current power bi does not support analysis text value on value fields, it only supports summarize field values.  New field format feature can change display value format but it seems not support to do conditional formatting.

Power BI Desktop September 2019 Feature Summary/#analytics 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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