Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
user467341
Creator II
Creator II

Two alternate state in set analysis?

I have this set analysis:

= IF(GetSelectedCount([location], True(), 'StateA'), Sum({[StateA]<item_desc= {"*source*"}>} qty) / (Sum({[StateA]<item_desc-= {"*damaged"}>} qty)))

This is a measured field in a straight table. It works fine when I create a filter pane and assigning state A to this filter pane.

However, I want this sum to take in a filter condition from column "Model" from the default state. Therefore, the expected outcome will be when user did not select any "Model", the SUM will show the whole table calculation. But when user select "Model" and the filter from state A, the calculation will then SUM based on these two (kind of like AND OR).

Is it possible to add two alternate state in this SUM?

Labels (3)
0 Replies