Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
RutaKru
Contributor
Contributor

Qlik Sense Alternate states

Hello, 

I have created 2 alternate states: Group A and Group B (you can select different date intervals). Easily created columns Price Group A, Quantity Group A, Price Group B, Quantity Group B. But then I need a result that depends on both groups.

In more detail, as a result, I need to multiply price and quantity (two different results according to the group selection), but that should only multiply those rows that contain info in both chosen alternate states. As in the example below, only in red marked rows should be multiplied. That's where I've been stuck for more than one hour with my head spinning. Any ideas, how to handle this multiplication formula (Group A Result and Group B Result)? 

Thank you!

RutaSense_0-1714627266978.png

 

Labels (2)
2 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Hello,

I have also recently had the same issue and still do not have an idea how to accomplish it.

I need to SUM only values that are in both Alternate state Groups.

Here is a sample:

MindaugasBacius_0-1714716564828.png

Product Quantity Group A Quantity Group B
TOTAL 6 8
A 1 2
B   3
C 4  
D 5 6

 

Thank you in advance, Qlik wizards 🙂

justinas
Partner - Contributor
Partner - Contributor

@MindaugasBacius, try playing with the possible values in Set analysis:

justinas_0-1715849070788.png