Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ratio with partial sum ?

Hello Qlikview community

How can I assume a partial sum in the calculation formula?

I want a output for the column "factor" the ratio of the blue markings / by the partial sum for the months, red flag, etc. ..

Example:

The row "T-Online Business" has a value of € 18,279.24. This value should be divided by the monthly sum of € 67,697.67.
The row "T-Online Lifestyle" has a value of € 20,909.60. This value should be divided by the monthly sum of € 67,697.67.
...

The row "3minutes"" has a value of € 65,014.29. This value should be divided by the monthly sum of € 121,026.00.
and so on...


How can I do this ? Thank you very much !

Best regards,

Labels (1)
1 Solution

Accepted Solutions
pover
Partner - Master
Partner - Master

You can't refer to the columns within a sum since QV doesn't allow nested sums so the formula should be:

=conversion
/

money(sum(total <[HEL_DATA_Datum > MONTH]>

Aggr(

if( index(concat([HEL_BANNER_Banner]),'lock')>=1,
(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *
SAL_OPPORTUNITYLINEITEM_UnitPrice

,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name)))

View solution in original post

4 Replies
pover
Partner - Master
Partner - Master

The formula would be something like the following:

sum(Sales)/sum(total <month> Sales)

The "total <month>" will give you the partial sum for month.

Regards.

Not applicable
Author

Hi Karl,

thank you for your help.

I tried this formula: = sum(conversion)/ sum(total < [HEL_DATA_Datum > MONTH] > conversion)

But it wont work ! Please look at my qvw app that i have attached.

pover
Partner - Master
Partner - Master

You can't refer to the columns within a sum since QV doesn't allow nested sums so the formula should be:

=conversion
/

money(sum(total <[HEL_DATA_Datum > MONTH]>

Aggr(

if( index(concat([HEL_BANNER_Banner]),'lock')>=1,
(sum([HEL_DATA_Imps mit Defaults])*0.5),(sum([HEL_DATA_Imps mit Defaults])) ) *
SAL_OPPORTUNITYLINEITEM_UnitPrice

,SAL_OPPORTUNITY_Name, SAL_PRODUCT_Name)))

Not applicable
Author

Thank you YesYesYes