Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Find Latest date

Hi All,   The data that I have has all the surverys that were done to all the stores. I want to consider only the latest visit to a store for that month. If the store was not visited on that month...
  • v-jiascu-msft's avatar
    7 years ago

    Hi Bhavya,

     

    Since you have a Date table, it could be a simple measure like below. Please download the demo from the attachment.

    Measure =
    CALCULATE (
        MAX ( FACT_DETAILS_KPIS[Visit Date] ),
        FILTER ( ALL ( DIM_DATE ), DIM_DATE[Date] <= MAX ( DIM_DATE[Date] ) )
    )
    

    Find-Latest-date

     

     

    Best Regards,
    Dale