Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8653

Add the value if the group have item with the des "Final"

$
0
0

Hi All,

 

I am creating a report.

In my database there is Account Number, Des, Invoice, Tax Amount and Amount After tax.

 

Account NumberDesInvoiceTax AmountAmount After Tax
123456Deposit738493101000
12345630% payment839438303000
123456Final Invoice231293505000
987654Deposit732399202000
987654Payment738291808000
999999Deposit982312101000
999999payment 20%231283202000
999999Payment 30%231239303000

 

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.


Viewing all articles
Browse latest Browse all 8653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>