Hi there - I am calculating a table based on the leads that have already been invoiced and paid and leads that have been invoiced but unpaid.
I created this table below and used formula ([Master View of Team Events - No Filter].Filter(Year([Event Date])=Year(thisRow.Month) AND Month([Event Date])=Month(thisRow.Month)).Total.sum()) to get the total $$ invoiced to the customers and now I cannot figure out how I can filter out the ones already paid.
It does not work for me. I can explain it better. So I will need to get the sum of the leads with two conditions, “If it is paid” and if it is paid, the formula should calculate the total.
Let me know if you need more info so I can send more info. Thanks for your help!
[Master View of Team Events - No Filter].Filter(Year([Event Date])=Year(thisRow.Month) AND Month([Event Date])=Month(thisRow.Month)).Total.SumIf().[Invoice Status]="Paid")
thanks for sharing the file, that is the way forward.
you figured out a few things, I rewrote this formula:
[DB Events].Filter(Year(Month)=Year(thisRow.Month) AND Month(Month)=Month(thisRow.Month)).Count()
Into this one to have an easier to read and understand formula.
[DB Events].Filter(
[Event Date].Year().Contains(thisRow.Month.Year()) and
[Event Date].Month().Contains(thisRow.Month.Month())).Count()
with this in mind we can filter on other items as well I showed in the doc.
[DB Events].Filter(
[Event Date].Year().Contains(thisRow.Month.Year()) and
[Event Date].Month().Contains(thisRow.Month.Month()) and
invoiceStatus.Contains(Paid)).totals.Sum()
based on this input you see how easily you can add elements in your filter and thus figure out the open questions. Give it a try and if you get stuck, please reach out again.