Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlik Sense Set Analysis

Hello,

Not sure if there is a difference in QlikView to Qlik Sense for Set Analysis. The example below should force the filter to always select the flag 1 and 0 regardless of a user interacting with the IsInNetwork filter then adjust the total to the other filters such as date or region or sales person.

 

sum({<IsInNetwork={'1','0'}>}Quantity)

 

If I set to this I get and the user updates the IsInNetwork filter the total changes to the selected flag to sum({$<IsInNetwork={'1','0'}>}Quantity)

 

Labels (1)
7 Replies
MatheusC
Specialist II

Using 1 will result in the full value of your data.

And ignore any selections made by the user.


sum({1<IsInNetwork={'1','0'}>}Quantity)


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Anonymous
Not applicable
Author

Yes, but this is not the answer I was hoping for per my example. I want this filter to stay but adjust to other user filters.

AJDoc31
Contributor III

With choices like 1 and 0 are there ever any other options? if not you can just ignore the filter like:

SUM({<IsInNetwork=>}Quantity)

Anonymous
Not applicable
Author

Seems like people just fish random solutions to have their solution accepted for points these days. 

TcnCunha_M
Creator III

the correct is

sum({<IsInNetwork = , IsInNetwork={'1','0'}>}Quantity)

IsInNetwork = <---- "clear the selection user selection for this set analisys" / "ignore the selection"

 

 

in fact you don't need 1,0 you can user '*' with is get all.

 

 Set analysis should be like this 

sum({<IsInNetwork = , IsInNetwork={'*'}>}Quantity)



 

i will say is awkward filter work properly in QlikView, because i always sue like this in QlikView and sense the concept of set analysis is the same, this doesn't changed 

As you think, so shall you become.
AJDoc31
Contributor III

Seems like people just post questions in the community without doing any research these days.

MatheusC
Specialist II

@Anonymous 

if you need other selections made by the user, outside of the filter applied in set analisys. Then this should work together with GetSelectedCount()


Sum({<IsInNetwork={'1', '0'}>} Quantity
) * If(GetSelectedCount(IsInNetwork) = 0, 1, 0) +
Sum(
Quantity
) * If(GetSelectedCount(IsInNetwork) > 0, 1, 0)

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!