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: 
dclark0699
Creator
Creator

Difference in Location of Set Analysis

I'm trying to limit the rows in my table using set analysis

This works as expected: (where the variable is just determining which departments to include)

=COUNT(DISTINCT

                 $(vDeptSetAnalysis)

                      [Order ID])

This version gives me 10x more results:

=COUNT(DISTINCT
{
<
[Order ID]=P($(vDeptSetAnalysis) [Order ID])
>
}
  [Order ID])

Can anyone articulate the difference between the two? In my head they are saying the same thing

1 Reply
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

It all depends on what you have in that vDeptSetAnakysis variable.

first one is just straight forward count distinct. But second one is basically you are getting all possible OrderID's based on your set analysis.