Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aaande8
Frequent Visitor

Power Pivot Calculate Formula

Capture.PNGCapture2.PNG

 

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

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

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

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

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

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yeah this worked. Thanks so much!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
d_gosbell
Super User
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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.