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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calculate Contribution per Area

Hi,

I have a question about calculate contribution.

I have a pivot table like this

                                    Week            W1                   W2                    W3 

Area1          Area2        Area3

A                   A2           A3               5                       10                    15 

                                     A4               6                        20                    20 

                                     A5               3                         10                    5

                      A6           A7               1                         1                      1

                                     A8               2                          5                     6

B                    B1          B2               1                          1                    20

                                    B3                5                         5                    20

                                    B4               1                         1                       1

I want to calculate contribution each area per week.

example for A|A2|A3 the quantity for that area is 5. So the contribution must be 5 (qty A|A2|A3) divided by total quantity of Week W1 (5+6+3+1+2+1+5+1)--> every area

So the result will be 5/24 = 0.20

Anybody has idea ?

Really appreciate your help

Thanks

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Sum(Quantity) / Sum(Total <Week> Quantity)


Regards,

Jagan.

View solution in original post

3 Replies
tresesco
MVP
MVP

May be like:

Sum(Quantity) / Sum(Total Quantity)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Sum(Quantity) / Sum(Total <Week> Quantity)


Regards,

Jagan.

Anonymous
Not applicable
Author

Hi All,

Thanks for your idea.

You both are great.

Thanks in advance