SOLVED

Last update , Question

Copper Contributor

Hello guys,

 

I'd like to write a function in Excel in the last update column to define
Which row is the most recent in the evaluation (evaluation date Col), taking into account the contract number (x,Y)

 

For clarity in the contract X, the latest evaluation update is on 04/01/2021

 

The answer is yes or no

 

conractvisit dateEvaluation datelast update
x01/01/202101/01/2021 
x01/01/202103/01/2021 
x01/01/202104/01/2021 
y02/02/202102/02/2021 
y02/02/202103/02/2021 
y02/02/202104/02/2021 
4 Replies
best response confirmed by Ahmedb96 (Copper Contributor)
Solution

@Ahmedb96 

Assuming that the data are in columns A to D, with headers in row 1, enter the following formula in D2:

 

=IF(MAXIFS($C$2:$C$7,$A$2:$A$7,A2)=C2,"yes","no")

 

Fill down.

Thank you soo much friend :)

 

 

Can you translate this function into a power query? 

@Ahmedb96 

I can't help you with that; I hope someone else will step in.

@Ahmedb96 Perhaps like this?

Screenshot 2021-02-25 at 16.21.31.png

Attached file contains a PQ solution that only uses "standard" applied steps. No custom M-code required.

1 best response

Accepted Solutions
best response confirmed by Ahmedb96 (Copper Contributor)
Solution

@Ahmedb96 

Assuming that the data are in columns A to D, with headers in row 1, enter the following formula in D2:

 

=IF(MAXIFS($C$2:$C$7,$A$2:$A$7,A2)=C2,"yes","no")

 

Fill down.

View solution in original post