Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Colour filter day

Hi,

 

Based on a previous post of me (Click), I want to give the days in the past a colour. How can I do that? Is that possible in Power BI? 

 

Thanks!

  • Hi,

     

    After my test, i think you should not add other check measure into original measure because the merged measure will apply all conditions that you defined.

    See this, as below shows, the [Date] and [Percentage] both apply two conditions in switch function.

    Measure =
    SWITCH (
        TRUE (),
        MAX ( 'Table'[Date] ) < TODAY (), "#FF0000",
        MAX ( 'Table'[Percentage] ) > 0.8, "#dd7c19"
    )

    So i advise you create two color measures in this case and apply them to two fields.

    Like this:

    Color_1 = IF(MAX('Table'[Date])<TODAY(),"#FF0000")
    
    Color_2 = IF(MAX('Table'[Percentage])>0.8,"#dd7c19")

    See my attached pbix file.

     

    Best Regards,

    Giotto

13 Replies