Forum Discussion

lordneeko's avatar
lordneeko
Advocate III
5 years ago
Solved

Filter by Latest data for each [Field]

I've seen a few questions and solutions about this, but none of them have addressed the particulars of what I'm trying to do. I have multiple entities reporting data from many different locations...
  • v-alq-msft's avatar
    5 years ago

    Hi, lordneeko 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end. 

    Table1:

     

    You may create two measures as below.

    Date = 
    CALCULATE(
        MAX(Table1[Date Reported]),
        ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number])
    )
    qty = 
    var d=[Date]
    return
    CALCULATE(
        MAX(Table1[Quantity]),
        FILTER(
            ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number]),
            [Date Reported]=d
        )
    )

     

    Then you may create the drillthrough target page like below.

     

    Result:

    Drillthrough 'Location A'

     

    Drillthrough 'Serial Number 2'

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.