Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Product share

Hello!


I have this problem.

I want to calculate the proportion of goods. This is small example



Order1          Order2          Order3

product1     product1         product2

product2     product2         

                 product3



product1 = 1/2 (this order1) + 1/3+ 0

product2 = 1/2+1/3+1

product3= 0+1/3+0


I want to have a table:


product1      0,83

product2      1,83

product3       0,3



Thanks!

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

=Sum(Aggr(Count(Product)/Count(TOTAL <OrderNum> Product), OrderNum, Product))


Capture.PNG

View solution in original post

3 Replies
sunny_talwar

May be like this:

=Sum(Aggr(Count(Product)/Count(TOTAL <OrderNum> Product), OrderNum, Product))


Capture.PNG

Kushal_Chawda

Can you share the sample data?

Not applicable
Author

Thank you very much