Hi All,
I am creating a report.
In my database there is Account Number, Des, Invoice, Tax Amount and Amount After tax.
Account Number | Des | Invoice | Tax Amount | Amount After Tax |
---|---|---|---|---|
123456 | Deposit | 738493 | 10 | 1000 |
123456 | 30% payment | 839438 | 30 | 3000 |
123456 | Final Invoice | 231293 | 50 | 5000 |
987654 | Deposit | 732399 | 20 | 2000 |
987654 | Payment | 738291 | 80 | 8000 |
999999 | Deposit | 982312 | 10 | 1000 |
999999 | payment 20% | 231283 | 20 | 2000 |
999999 | Payment 30% | 231239 | 30 | 3000 |
How can i only select the amount which Account Number does not have an Final Invoice?
In the above example, only the Amounts for 987654 and 999999 will use.
Which mean for both 987654 and 999999 I will get the "Amount After Tax" - "tax Amount" to get the Amount before tax.
987654 --> (2000-20) + (8000-80)
999999 --> (1000-10) + (2000-20) + (3000-30)
Amount in Account number 123456 will not be pull out as it have a Final Invoice.
How can I write the formula this?
Thanks in advance.