Forum Discussion

Fusilier2's avatar
Fusilier2
Icon for Helper V rankHelper V
1 year ago
Solved

Show latest data in visual

I have monthly headcount data by department for our company in a table. I have a KPI visual that shows the headcount for the company as a whole which always shows the headcount for the latest month'...
  • pankajnamekar25's avatar
    1 year ago

    Hello Fusilier2 

    Use this measure

     

    Latest Month Headcount =

    VAR LatestMonth = MAX('Table'[Month])

    RETURN

    CALCULATE(SUM('Table'[Headcount]), 'Table'[Month] = LatestMonth)

     

    Thanks,
     Pankaj Namekar | LinkedIn

    If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.