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
vojtechsima
Memorable Member
Memorable Member

Color Formatting by Field Value doesn't react to Filter Context (Date)

Hi,
I have really strange Color Formatting behaviour.
I have a measure that tells me a value, if the value is above a certain threshold I get "red", otherwise, I get "Green", normal easy stuff.
However, when I put this into a line/area chart and put YearMonth or hierarchy Year Month, it doesn't take this filter context and it evaluates against value without any filter context. Strangely enough, it works in a table visual.

The measure is like this:

ColorCheck_SLA_AP_Timing = 
var SLA_AP_Timing = [SLA_AP_Timing]
var colorAssigment = IF ( SLA_AP_Timing <= 4.12, "#43B02A", "#C8102E")
return colorAssigment

 


My visuals:

 

vojtechsima_2-1654349121529.png



Measure without any filter context return 4.11. So, the whole area chart evaluates based on that. Any help is appreciated, thank you.

1 REPLY 1
jdbuchanan71
Super User
Super User

@vojtechsima 

I think this is the same root problem as a conditional formatting on chart labels I reported to Microsoft.  It's like some portions of the chart (labels for example) don't feed the correct filter context to the engine.
https://community.powerbi.com/t5/Issues/Conditional-formatting-of-chart-axis-labels-problem/idi-p/21...

 

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.