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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Multiply all combinations of a dimension

Hi!

I have a dataset that looks like this:

CustomerIDFruitSales

1

Apple5
1Banana3
1Orange2

And I would like to be able to multiply all combination of fruits for a customer, so that the result would be:

CustomerIDFruitSales

1

Apple5
1Banana3
1AppleBanana8
1AppleBananaOrange10
1AppleOrange7

The reason for this is that I would like to be able to filter on customers who have bought for example more than 3 Apple and Bananas combined.

Is this possible in any way? To loop through the fruit dimension or something? Other suggestions for my dilemma?

Thanks in advance!

2 Replies
marcus_sommer

To create this within the script could be very expensive especially by larger datasets. Therefore I suggest to check if you couldn't use the AND mode:

AND and OR

AND-Mode

- Marcus

Not applicable
Author

If you need combinations for selections & in the chart dimensions you need to create in script level only. Otherwise you can try on UI with options.

In the script level its Little complicated but it doable. I am little busy today so I will make script whenever I get a chance.