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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.