Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
laurahoff
New Member

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). 

laurahoff_0-1701356089799.pnglaurahoff_1-1701356339957.png

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try

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

Screenshot_1.png

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

pls try

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

Screenshot_1.png

dmf
Frequent Visitor

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

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

Thank you so much, that was it!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.