Forum Discussion
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
- d_gosbell
Super User
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.
- Ashish_Mathur
Super User
Hi,
Does this work?
=CALCULATE(SUM(sheet1[FTE]),FILTER(sheet1,sheet1[Date]<EARLIER('Temp Badge Requests'[Request Completion Date])))
Hope this helps.
- aaande8Frequent Visitor
Yeah this worked. Thanks so much!
- Ashish_Mathur
Super User
You are welcome.