Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

Sales Analysis Comparative

$
0
0

Dear Experts,

 

Hope you are having a great day. I just wanted to confide my problem in regards to my formula for generating the correct GP based on the sales analysis report from sap, for comparative purposes.

 

Sales Analysis Report Screenshot from SAP

 

The result query generates this:

 

As you can see, GP%1 is positive, but on the SAP Analysis it is negative. Is there anyone who could help me generate the correct formula for that?

 

Here's the query formula:

Select

a1.AM,

a1.[AR Inv1],

b1.[AR Inv2] ,

a1.Year1_Qty,

b1.Year2_Qty,

a1.Year1_Amt as 'Total AR Invoice',

b1.Year2_Amt as 'Total AR Invoice2',

a1.Year1_GP as 'Gross Profit',

b1.Year2_GP as 'Gross Profit 2',

(a1.Year1_GP/NULLif(a1.Year1_Amt,0))*100 as 'GP%1',

(b1.Year2_GP/NULLif(b1.Year2_Amt,0))*100 as 'GP%2'

 

from

(....................

 

 

 

Many thanks for the help..

 

Best Regards,

JZA


Viewing all articles
Browse latest Browse all 8419

Trending Articles



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