Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Condition column today+2

Hi Team,

I have a Date filed, I need to create a new column which gives me today -2.

Project OwnerDate
Project
1A7/21/2021
2B7/15/2021
3C7/17/2021
4D7/18/2021
5E7/21/2021
6F7/20/2021
7G7/22/2021
8H7/19/2021
9I7/21/2021

 

IF today is 07/19/2021, I should mark the dates 07/21/2021.

 

  • Hi Anonymous

     

    You can use conditional formatting.

    Create measure as:

     

    Measure = 
    IF(
        MAX('Table'[Date])=TODAY()-2,
        1,
        0
    )

     

    Here is the output:

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

3 Replies

  • Anonymous 

    Did not understand but if you need to create a column as follows, then this should work

    New Column = =IF ( Table[Date] = today()+2 , Table[Date] , blank() )


  • v-xulin-mstf's avatar
    v-xulin-mstf
    Community Support

    Hi Anonymous

     

    You can use conditional formatting.

    Create measure as:

     

    Measure = 
    IF(
        MAX('Table'[Date])=TODAY()-2,
        1,
        0
    )

     

    Here is the output:

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!