Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitians
Creator III
Creator III

Logic Help?

Hello,

I have a scenario where i need to calculate contribution of product to division and    division to company

Current:

DivisionProduct Group2014-15Contr %

Required Contr %
11,749100.00
INDOCOTotal4,26036.2636.26
INDOCOCYCLOPAM TAB7606.4717.84
INDOCOCYCLOPAM SUS3512.998.23
INDOCOCLOBEN G - 15 GMS2692.296.31
INDOCOMCBM 69 10S2402.045.63
INDOCOVEPAN 500 TAB 10S1741.484.08

Help!!

6 Replies
sasikanth
Master
Master

HI rohit

can you post an your sample file so that it will be easy to understand

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Contribution of Product to Division:

=sum(Sales) / sum(TOTAL <Division> Sales)

Contribution to Company:

=sum(Sales) / sum(TOTAL)

-Rob

rohitians
Creator III
Creator III
Author

Dear Rob,

Both calculation have to be done in same column..

Thanks

Anonymous
Not applicable

Hi,

You may enable "Show Partial Sums" option available in presentation tab for Division and Product to achieve that.

sum.PNG.png

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I don't quite understand your comment about both calcs being in the same column. You mentioned two calcs in your post, which one do you want in the column? If you want as displayed in your post (pct of all), then just check the "relative: property for the expression or use the Sum(Sales) / Sum(TOTAL Sales)

-Rob

rohitians
Creator III
Creator III
Author

Dear Rob,

Following is code,

=(((SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},MonthName=,Quarter=

,[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear),0,4)}>}[Posting Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}

>}[Gross Sales Amount])

-SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},MonthName=,Quarter=

,[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear),0,4)}>}[Posting Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}

>}[Sales Return Amount])

)/10000000)/vPNSValue)*100

Were   vPNSValue contains total PNS value for current year

The report has two dimension division and products..... on division level it shows proper contribution but on product level also it shows contribution to the whole i want the  products to show contribution to the divison rather then  vPNSValue

DivisionProduct Group2014-15Contr%-Tot PNS

Required Contr%-Tot PNS

12,667100.00%100.00%
INDOCOTotal4,58636.21%36.21%
INDOCOCYCLOPAM TAB8306.55%18.1
INDOCOCYCLOPAM SUS3903.08%47.0
INDOCOCLOBEN G - 15 GMS3102.45%79.6
INDOCOMCBM 69 10S2592.05%83.6
INDOCOVEPAN 500 TAB 10S1841.45%70.9

Thanks Rob.