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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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