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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Sum after a date

Hi, 

 

I'm trying to make a sum if formula (this is how I would solve it in Excel) or something similair in powerbi. 

I couldnt find a formula for or something else for this.  See the picture below for more clarity.

I have the spend per vendor per month in a different table.  With this data I want to sum the the spend after the enddate per vendor.  So something like IF[spend booked after enddate] = 'yes', Sum(spend per vendor month) after enddate.

I can't get this working. 

Alex_1999_0-1620043569809.png

Hope someone can help,

 

Thanks in advance! 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , based on what I got. You have two tables

 

a new column in table 1

 

if(Table1[endDate] < maxx(filter(Table2, Table2[vendors] =table1[Vendors]),[spend date]), "Yes", "No")

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thanks a lot for your help. 

 

I'm sorry If my question was unclear. I indeed have two tables. One with most information as seen in the picture (lets call this table 1). Then I have a spend table with the spend per vendor per month. Now I want to sum the spend on a vendor after the enddate passed. So If spend booked after enddate = yes I want to sum the spend for that vendor. If spend booked after enddate is no, it can stay blank. 

 

I added a new column to table 1 and tried your formula. 

But I get the error: "Too many arguments were passed to the Filter function. The maximum argument count for the function is 2"

 

Thanks again for your help! 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.