Forum Discussion

aaande8's avatar
aaande8
Frequent Visitor
7 years ago
Solved

Power Pivot Calculate Formula

 

Hello,

 

I am trying to calculate within the Total FTE  column so that it sums the FTE column of the Sheet1 table based on if the Request Completion Date is < the Date the FTE was hired. FTE stands for Full time Employeed. I want the Total FTE to display the number of employees we had at the time of the request. However I am getting the above error. Any sug

  • Hi,

    Does this work?

    =CALCULATE(SUM(sheet1[FTE]),FILTER(sheet1,sheet1[Date]<EARLIER('Temp Badge Requests'[Request Completion Date])))

    Hope this helps.

4 Replies

  • This error is due to your filter condition, currently you have:

     

    'Temp Badge Requests' < 'Temp Badge Requests'[Request Completion Date]

     

    The item on the left of the < is a table reference (hence the error about multiple columns, this needs to be a column reference probably to some sort of Hire Date.

  • Hi,

    Does this work?

    =CALCULATE(SUM(sheet1[FTE]),FILTER(sheet1,sheet1[Date]<EARLIER('Temp Badge Requests'[Request Completion Date])))

    Hope this helps.