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