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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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