Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
laujerry
Creator
Creator

Problem with Set Analysis

Hi everyone, I am a newbie to QlikView and I am now studying the use of set analysis

I want to use an expression to select the number of distinct customer who purchases certain product from lines of sales order data.

Please kindly describe what is the difference between

Count({$<Product={'$(TargetProduct)'}>} DISTINCT [Customer])

and

Count({$<Product={$(TargetProduct)}>} DISTINCT [Customer])

where TargetProduct is a variable name and can be changed by button click actions.

I suppose the second one should be used but it shows nothing while the first statement works.

Thanks!

10 Replies
sujeetsingh
Master III
Master III

A to the point answer by Gysbert..