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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to make a qlikview empty set analysis ?

Hi everybody,

I have my set_analysis variable in a variable like that:

Set setAnalysis=

Then I use, maybe wrongly, this set_analysis variable in other variables like that:

set f_$(vNomVariables)=count(distinct {$<$(setAnalysis)>}[NUM_CONTRAT]);

Now I can't change how I use this set_analysis variable cause there's too much code to modify.

I have a case where I wouild just like this setAnalysis to be empty..

I've tried Set setAnalysis={}, Set setAnalysis={0} but it doesn't work and I have no other ideas..

Labels (1)
4 Replies
avinashelite
MVP
MVP

try like didn't get your exact requirement ..try like this

Set setAnalysis=''; or Set setAnalysis=null();

Anonymous
Not applicable
Author

Hi Avinash,

Thanks for your reply.

It does not work. I put my variables using the set_analysis in text box and I have the message "Error in a set modifier expression".

Anonymous
Not applicable
Author

Ok, you've inspired me, I've tried

Set setAnalysis= ['']; and it works,

Thanks !

avinashelite
MVP
MVP

good ..I think the problem is since the values is null the variable is not creating at all ...first shout add the value and then try to nullify...