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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

2 REPLIES 2
Ahmedx
Super User
Super User

pls try

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

Screenshot_1.png

Thank you so much, that was it!

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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