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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
samvile18
Creator III
Creator III

Set Analysis Help Please...

Afternoon everyone,

Is this even possible what I'm attempting to do?! 

I'm trying to use this the following set analysis to calculate a percentage of users that login via their app to our services:

=Sum({<
resultsview = {'Logins'},
resultschannel = {'App'}
>} num_uniques)
/
Sum({<
resultsview = {'Logins'},
resultschannel = {'App', 'Web'}
>} num_uniques)

The above works but I also have resultschannel on the sheet as a filter, when a user selects it, the chart blanks. Can I ignore just the selections in resultschannel but also include the field within the calculation?

Any help is appreciated as I'm tearing my hair out. 

3 Replies
robert_mika

Try to add:

resultschannel =

 

=Sum({<resultsview = {'Logins'},
resultschannel = {'App'},[resultschannel] =>} num_uniques)
/
Sum({<resultsview = {'Logins'},resultschannel = {'App', 'Web'},
[resultschannel] =>} num_uniques)

Or
MVP
MVP

Are 'App' and 'Web' the only values in the field resultschannel? What value(s) is the user selecting when it blanks? 

Generally speaking, this set analysis should ignore the selections made in the resultschannel field. However, the selection in resultschannel may be impacting other fields which then impacts the ability to calculate num_uniques, so this may be related to that (couldn't say without knowing what the schema is and how the values interact). 

 

lennart_mo
Creator II
Creator II

Another thing to look out for is wether you use a calculated dimension for the filter. Is the dimension just the field or is there a formula?

If there is a formula, try using the function CalcDim() on the whole expression. Now, when you make a selection, the selection should truly be made in the field resultschannel.