Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DAX formula for conditional formatting column chart

I hope someone can help, cause sometimes propagation and filter context is difficult. Regards Ron 
  • Padycosmos's avatar
    Padycosmos
    3 years ago

    Here's the measure that works:

    Colour3 =
    var _differ = MAXX(ALLSELECTED('KPI Dimension'),1-[KPI perc])
    var _target = [Check Against Target]
    RETURN
    SWITCH(
        TRUE(),
        _target >=1, "Green",
        _target < 1 && _target >=_differ, "Purple",
         _target < _differ , "Red"
       
        )