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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.