Forum Discussion

mitieterry's avatar
mitieterry
Regular Visitor
8 years ago
Solved

Find latest incident

Hi all - apologies if this is a repeat of another post, but I cannot seem to find the same problem.

 

I have two tables, one of which lists all locations within the business (site details), and another that lists all incidents reported from sites (incidents). I am looking for a way to add a lookup in the site details table which returns the date of the latest incident reported for each location - or blank if none reported.

 

both tables have a column called store number which is a unique reference for the location.

 

Any assistance would be greatly appreciated.

  • Hi mitieterry,

     

    It's a good idea to share a sample. Maybe you can try this formula.

    Column =
    CALCULATE ( MAX ( TheOtherTable[Date] ) )

    Best Regards!

    Dale

3 Replies

  • rocky09's avatar
    rocky09
    Icon for Solution Sage rankSolution Sage

    First create realtionship between two tables with the store number (should be unique values). Once you create realtionship. You can now, use Max function to get the latest value.

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi mitieterry,

     

    It's a good idea to share a sample. Maybe you can try this formula.

    Column =
    CALCULATE ( MAX ( TheOtherTable[Date] ) )

    Best Regards!

    Dale