Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Conditional Format Dates in a column based on Date in a previous column

Hello,    Firstly I am very new to PowerBI. I have been searching for a solution the following and cannot find anything, I am wondering if it is even possible?   Conditional Format Dates in a col...
  • dax's avatar
    7 years ago

    Hi JTurv,

    You could try below suggestions:

    My data sample

    id t1 t2
    1 1/1/2018 1/1/2019
    2 5/1/2019 3/2/2019
    3 6/1/2019 1/5/2019
    4 4/5/2019 8/10/2019
    5 6/15/2019 7/15/2019
    6 5/18/2019 5/18/2019

    Then I create a measure for conditional format

    Measure 2 = if(MIN(comparetime[t2])>=MIN(comparetime[t1]), "#d6b3f2","#f4f7c3")

    Set confidition format on ID like below

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.