Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
saumyashah90
Specialist
Specialist

Set analysis Previous Selection

Hi Guyz i have

Count(Distinct Num_Employee)

and i want previous selection for this

i tried using

Count({$1} Distinct Num_Employee)

but its not working.

Can anyone please suggest me solution, better if it is set analysis

9 Replies
Anonymous
Not applicable

try count(Distinct {$1} Num_Employee)

saumyashah90
Specialist
Specialist
Author


nope thanks...already tried...

srchilukoori
Specialist
Specialist

Both the expressions work as in the attached app.

Count({$1} Distinct Num_Employee)

count(Distinct {$1} Num_Employee)


The reason for the error could be because of no previous selections.


SC

Anonymous
Not applicable

works on my end...what error or result do you get?

saumyashah90
Specialist
Specialist
Author

Error can make some problem...can you put this in set analysis and let me know?

srchilukoori
Specialist
Specialist

have you check the app. Yours and jsaradhi's expressions are working fine.

saumyashah90
Specialist
Specialist
Author

Syntax Error.... Red line under the curly bracket


jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

Not having a previous selection should not give an error, it just results in Zero value. As you said, both expressions should work as expected. If syntax is underlining some part of the formula then it may be something else,

regards

Anonymous
Not applicable

Red line under curly bracket doesn't always mean the expression is not correct. Not having a previous selection should not throw an error.