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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
zombieug
Helper I
Helper I

Check if Date is <= another Date in Table

Hello Forum,

 

I have the following table:

2018-09-01_13h53_19.png

 

Based on Material Key and SD-SA Key there are Delivery Dates and Release Dates.

What I want to create a measure or calculated column that checks for:

There is a Release Date "X" in the table that is > Release Date (Currently Assigned in the Row).

If there is than the Release Date "X" should be <= Delivery Date (Currently Assigned in the Row).

The example shown above should clarify, if you need more information let me know...

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
v-lili6-msft
Community Support
Community Support

Hi@ zombieug 

After my research , you can use EARLIER Function to add a column as below:

check = IF(CALCULATE(MAX(Table4[Release Date]),FILTER(Table4,Table4[Release Date]<=EARLIER(Table4[Delivery Date])))=Table4[Release Date],1,0)

Result:

8.png

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @v-lili6-msft @Ashish_Mathur,

 

had to chance it a little to:

IF(CALCULATE(MAX(Sheet1[Release Date]);FILTER(ALLEXCEPT(Sheet1;Sheet1[SD-SA Key];Sheet1[Material Key]);Sheet1[Release Date]<=EARLIER(Sheet1[Delivery Date])))=Sheet1[Release Date];1;0)

 

this way the column will work for sd-sa key and material key

I think it should work know.

Thanks to all of you who tried to help.

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

Hi@ zombieug 

After my research , you can use EARLIER Function to add a column as below:

check = IF(CALCULATE(MAX(Table4[Release Date]),FILTER(Table4,Table4[Release Date]<=EARLIER(Table4[Delivery Date])))=Table4[Release Date],1,0)

Result:

8.png

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-lili6-msft @Ashish_Mathur,

 

had to chance it a little to:

IF(CALCULATE(MAX(Sheet1[Release Date]);FILTER(ALLEXCEPT(Sheet1;Sheet1[SD-SA Key];Sheet1[Material Key]);Sheet1[Release Date]<=EARLIER(Sheet1[Delivery Date])))=Sheet1[Release Date];1;0)

 

this way the column will work for sd-sa key and material key

I think it should work know.

Thanks to all of you who tried to help.

Ashish_Mathur
Super User
Super User

Hi,

 

Paste the data here such that i can copy it in an Excel workbook.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur thank you for trying to help.

Delivery Date

Release DateMaterial KeySD-SA KeyQuantity
02.02.201812.01.201800/02652906381VS00/242002362250
02.02.201819.01.201800/02652906381VS00/242002362250
02.02.201826.01.201800/02652906381VS00/242002362250
02.02.201802.02.201800/02652906381VS00/242002362250
04.02.201812.01.201800/02652906381VS00/242002362250
04.02.201819.01.201800/02652906381VS00/242002362250
04.02.201826.01.201800/02652906381VS00/242002362250
04.02.201802.02.201800/02652906381VS00/242002362250
06.02.201812.01.201800/02652906381VS00/242002364950
06.02.201819.01.201800/02652906381VS00/242002364950
06.02.201826.01.201800/02652906381VS00/242002364950
06.02.201829.01.201800/02652906381VS00/242002364950
06.02.201802.02.201800/02652906381VS00/242002364950
06.02.201803.02.201800/02652906381VS00/242002364950

Hi,

 

In the image that you have pasted in your first post, why is there a 0 in the first 3 rows.  Shouldn't there be a 1 in those rows and may be in others as well.  Could you kinldy check the entries in column F.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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