Forum Discussion

cmilligan262's avatar
cmilligan262
Helper II
6 years ago
Solved

Prior month Value Calculated Column

I need to get movement in our roster and need to pull in the prior months cost center name in a calculcated column   This is what my data looks like   Date                           EMPID        ...
  • Greg_Deckler's avatar
    6 years ago

    Perhaps:

     

    Column =
      VAR __PreviousDate = MAXX(FILTER('Table',[Date]<EARLIER([Date])&&[EMPID]=EARLIER([EMPID])),[Date])
    RETURN
      MAXX(FILTER('Table',[EMPID]=EARLIER([EMPID]) && [Date]=__PreviousDate),[Cost Center Name])