Forum Discussion

Gaurav_Lakhotia's avatar
Gaurav_Lakhotia
Helper III
5 years ago
Solved

Calculated Column for Latest Training Date

Hi All,   I need help in calculating the calculated column for latest date.   Scenario is, There is a TrainingTracker table which has Date column (i.e. Training Date). I need to find out the da...
  • amitchandak's avatar
    amitchandak
    5 years ago

    Gaurav_Lakhotia , From what I got.

    You can have new column which tell diff from last training and you can use that

    new column =
    Datediff( maxx(filter(table ,[Customers Name] = earlier([Customers Name]) && [TrainingDate] <earlier([TrainingDate])),[TrainingDate]),[TrainingDate],day)

  • Gaurav_Lakhotia's avatar
    Gaurav_Lakhotia
    5 years ago

    Hi amitchandak ,

     

    The DAX you've shared is calculating by taking very first Customer Training date as a base.

     

    We want it to consider every corresponding training date of each row to search within 28 days after training.

     

    Thanks