cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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 November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

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!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors