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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RDF25087
Helper I
Helper I

If TODAY is between 2 dates

Hi all -

 

This seems pretty straight forward - but I can't find a straight forward answer.

 

I have a table of contracts with a start and end date. I simply need a measure that will state that if TODAY() is in between the start and end date it reurns "Live", else "Expired" - please see example table below:

 

Contract IDStart DateEnd DateRESULT
6023501/01/202331/12/2023Live
6023601/01/202315/10/2023Live
6023701/01/202330/06/2023Expired
6023801/01/202231/12/2022Expired

 

Help!

 

Thanks

RDF

1 ACCEPTED SOLUTION
nabandla
Helper I
Helper I

Status Measure = VAR CurrentRowStartDate = MAX('Table'[Start Date]) VAR CurrentRowEndDate = MAX('Table'[End Date]) RETURN IF ( AND(TODAY() >= CurrentRowStartDate, TODAY() <= CurrentRowEndDate), "Live", "Expired" )

View solution in original post

3 REPLIES 3
nabandla
Helper I
Helper I

Status Measure = VAR CurrentRowStartDate = MAX('Table'[Start Date]) VAR CurrentRowEndDate = MAX('Table'[End Date]) RETURN IF ( AND(TODAY() >= CurrentRowStartDate, TODAY() <= CurrentRowEndDate), "Live", "Expired" )

RDF25087
Helper I
Helper I

@snow84- thanks for the response. Apologies, I should have been clearer - I was after a measure.

snow84
Frequent Visitor

Do you want a measure or a calculated column? If you just want a column, this should work:

 

RESULT = IF(TODAY() > [Start Date] && TODAY() < [End Date], "Live", "Expired")

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.