Forum Discussion

Justas4478's avatar
Justas4478
Icon for Post Prodigy rankPost Prodigy
1 year ago
Solved

Highlight current week using conditional column

Hi, I have chart that shows holiday hours booked by weeks. I want to highlight current week using the coditional formatting option. But the only way I see is by writing measure that checks if...
  • mark_endicott's avatar
    1 year ago

    Justas4478 - Try this:

     

     

     

    VAR _StartOfWeek = TODAY() - WEEKDAY( TODAY(), 2 ) + 1 
    
    RETURN
    IF(MAX('Table'[Date Column])= _StartOfWeek,1,0)

     

     

    It will proivde a 1 if your date column matches the _StartOfWeek variable.

     

     

    If this helps you, please accept as the solution so others with the same issue can find the answer!