cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stevianne
Frequent Visitor

enddate before or after today's date?

I have a column with enddates. And I have a column with date today.

 

I want to make a measure if enddate is before or after today's date.

 

I tried below:

IF (enddate) < (today), "yes"))


it doesn't work ad I have to make use of type Text or format. 

 

Any ideas how I can make this work?

 

thanks in advance!

 

 

 

 

 

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @Stevianne ,
Please use below DAX in a calculated measure:

Date Check = IF(MAX(Table[EndDate]) < MAX(Table[Today]),"Yes","No")

Result:

Anand24_0-1679580139067.png
PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

 

View solution in original post

1 REPLY 1
Anand24
Super User
Super User

Hi @Stevianne ,
Please use below DAX in a calculated measure:

Date Check = IF(MAX(Table[EndDate]) < MAX(Table[Today]),"Yes","No")

Result:

Anand24_0-1679580139067.png
PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors