Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Retrieve values based on another column value

I have tried to retrieve the ETA date independently when the inserted date is the earliest and when it is the latest, then calculate the variation in days.

 

When I use the following formula:

 

CALCULATE(values(Combined[ETA Date]),FILTER(ALL(Combined[DW_InsertedDateTime]),Combined[DW_InsertedDateTime]=max(Combined[DW_InsertedDateTime])))
 
I got the following message!
 
 
Any idea how to solve this issue? Thank you!

 

 

 

3 Replies

  • Anonymous , you can not use values there

    CALCULATE(Max(Combined[ETA Date]),FILTER(ALL(Combined[DW_InsertedDateTime]),Combined[DW_InsertedDateTime]=max(Combined[DW_InsertedDateTime])))

     

    or

     

    CALCULATE(max(Combined[ETA Date]),FILTER(ALL(Combined[DW_InsertedDateTime]),Combined[DW_InsertedDateTime]=max(Combined[DW_InsertedDateTime])),values(Combined[ETA Date]))