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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Help with DATE function

I could need som help with a date function

 

I have in my data set a start date and an end date.

I would like to have a column set to YES, if today is between start date and end date.

 

In prose:

Active coloum= If "start date" is before "today" AND "end date" is after "today" set value to "yes" otherwise set value to "no"

 

Is this possible?

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Anonymous

Try 

Active column = IF('Table'[startDate]<=TODAY()&&'Table'[endDate]>=TODAY(),"yes","no")

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Anonymous

Try 

Active column = IF('Table'[startDate]<=TODAY()&&'Table'[endDate]>=TODAY(),"yes","no")
Anonymous
Not applicable

Thank you. It works perfectly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.