Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

DAX Formula to Return First Date Based on Other column

Hi All,   I'm trying to create a column that calculates the original due date for a set of items that have due dates that can be extended over and over again. For example, in this table, I want the...
  • Zubair_Muhammad's avatar
    7 years ago

    Anonymous 

     

    try

     

    Original Due Date =
    CALCULATE ( MIN ( 'Table'[Due Date] ), ALLEXCEPT ( 'Table', 'Table'[Item] ) )
    
  • Anonymous's avatar
    Anonymous
    7 years ago

    Dear rdcooper,

     

    Is this you expected?

     

     

    The DAX Expression i have used to get this as follows.

     

    Measure_OrderDate = CALCULATE(MIN(PBI_Data[OrderDate]), ALLEXCEPT(PBI_Data,PBI_Data[Item]))

     

    Regards,

    Pradeep

  • Anonymous's avatar
    Anonymous
    7 years ago

    You can use Groupby in PQ to get that figure pretty easily: