Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dax - Max date by Month

I have a table that is tracking weekly snapshots for Monthly Sales Forecast. Based on the month that is displayed, I want it to show the data for the last snapshot. I assume it needs to use some form...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Anonymous 
    You need to check the max forecast date for each period, try create this column. 

     

    Column = IF([Forecast Date]=CALCULATE(MAX([Forecast Date]),ALLEXCEPT('Table','Table'[Period])),1,0)
     
    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.