I have a report where I need to show:
1) number of invoices paid before due date
2) amount related to invoices paid before due date
3) number of invoices paid after due date
4) amount related to invoices paid after due date
I have a drill action that shows per number of invoices what suppliers these are related to with the corresponding amounts..
these drill down reports are build separate for Due before and Due after with a general filter selecting only the invoices with due date >0. That works fine but now I need to see the amounts as well on the summary page.
I tried to write a filter within the column
FILTER("Facts - AP Transactions"."AP Amount" USING ("Facts - AP Transactions"."No of Invoices Paid After Due" > 0))
but this gives an error:
Formula syntax is invalid.
Aggregate is not allowed within USING clause of a FILTER operator. (HY000)
SQL Issued: SELECT FILTER("Facts - AP Transactions"."AP Amount" USING ("Facts - AP Transactions"."No of Invoices Paid After Due" > 0)) FROM "Financials - AP Transactions"
Then I tried to write a case for, but this gives me the total amount (so for both paid before as after due date)
CASE WHEN "Facts - AP Transactions"."AP Times Paid Before Due"> 0 THEN "Facts - AP Transactions"."AP Amount"ELSE 0 END
Any Idea how I can realize this?
Thanks