Forum Discussion

laurahoff's avatar
laurahoff
New Member
2 years ago
Solved

How to get a true/false column based on two other date columns

Hello,

 

I am attempting to add a column (titled 'active') that will be true/false data type based on if today's date is between the start and end date columns. For reference here are some data points below so I have been attempting DAX expressions to measure whether today's date is inbetween the two dates (result would equal true), or if today's date in NOT in between the two dates (result would equal false). 

 

 

  • pls try

    Active = IF('Table'[Start dar]<=TODAY() && 'Table'[End Date]>=TODAY(),TRUE,FALSE)

4 Replies

  • pls try

    Active = IF('Table'[Start dar]<=TODAY() && 'Table'[End Date]>=TODAY(),TRUE,FALSE)

    • dmf's avatar
      dmf
      Frequent Visitor

      May I ask, what if the second column is in a different table. How would you write the comparison then?

      • Ahmedx's avatar
        Ahmedx
        Icon for Super User rankSuper User

        you need to merge them or move the second column one to the first table