Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime_gerard
Partner - Contributor
Partner - Contributor

Set analysis question

Hello everybody,

I am trying to make some set analysis and I don't understand why some of them don't work (Qlik even reject the synthax) :

I want to have everything but '*NULL' :

=only({-<Field={'*NULL'}>} Field) doesn't work

=only({<Field><{'*NULL'}>} Field) doesn't work


And here I want to return the create user that correspond to the min of the create dates:

=only({<ActionCreateDate={$(vMinCreateDate)}>} ActionCreateUser)

with vMinCreateDate=min(ActionCreateDate)


Any idea of what's wrong with that?

2 Replies
sunny_talwar

Try this to exclude Nulls

=Only({<Field={'*?'}>} Field)


But make sure the output is a single number for Only to display anything for you



for your second expression, try this:


=Only({<ActionCreateDate={"$(vMinCreateDate)"}>} ActionCreateUser)



HTH


Best,

Sunny

jonathandienst
Partner - Champion III
Partner - Champion III

Only({<Field-={'*NULL'}>} Field)


The editor will complain of a syntax error on the -= but that is a bug in the editor syntax checker and can be ignored. if you prefer, don't use the shorthand:


Only({<Field={*} - {'*NULL'}>} Field)


HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein