Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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. 

Hope someone can help,

 

Thanks in advance! 

2 Replies

    • Anonymous's avatar
      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!