Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Date Formula

Hello!

I'm trying to create a report to track our order entry process. I'm trying to write a formula to display the last received date for each order. Somtimes we will receive pieces of the order throughout the week and we want to show when was the last time something was received for each order. If I use the MAX it will display today's date because there were orders that were received today. But, what I want is to display the last received date for each order number. Does anyone know how I can do that with Direct Query?

  • Anonymous ,

     

    Try this measure:

    CALCULATE(MAX(TABLE[DATE]), ALLEXCEPT(TABLE, [ORDER]))

2 Replies

  • camargos88's avatar
    camargos88
    Community Champion

    Anonymous ,

     

    Try this measure:

    CALCULATE(MAX(TABLE[DATE]), ALLEXCEPT(TABLE, [ORDER]))

  • Anonymous's avatar
    Anonymous
    Not applicable

    That worked ! Thank you!