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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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