Forum Discussion

YesP's avatar
YesP
Helper I
1 year ago
Solved

Getting Lates Date with a value from a Semantic Model

Hi, I am working with a Semantic Model created for a different department. I created a calendar table with the MAX and MIN date of the date field of the Semantic Model. I am trying to get the Last...
  • Ashish_Mathur's avatar
    1 year ago

    Hi,

    This measure pattern should work

    Total = sum(Data[Sales])

    Last date = calculate(max(calendar[date]),lastnonblank(calendar[date],calculate([Total])))

    Hope this helps.