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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime66
Creator
Creator

Test on 2 empty dimensions

Hy guys,

Someone knows where my test is wrong ? (see Qlikview attached)

it returns nothing '-'  when testing if both dismensions are null.

best regards.

max.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

That expression: =if(isnull(client_lieu_gestion.libelle) and isnull(apporteur.nom) , 'null','not null')

does not work as a dimension. It does work as expected when used as an expression and not a dimension. To use as a dimension, use an Aggr() like this:

=Aggr(if(isnull(client_lieu_gestion.libelle) and isnull(apporteur.nom) , 'null','not null'),apporteur.nom,client_lieu_gestion.libelle, contrat.id)

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

View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

That expression: =if(isnull(client_lieu_gestion.libelle) and isnull(apporteur.nom) , 'null','not null')

does not work as a dimension. It does work as expected when used as an expression and not a dimension. To use as a dimension, use an Aggr() like this:

=Aggr(if(isnull(client_lieu_gestion.libelle) and isnull(apporteur.nom) , 'null','not null'),apporteur.nom,client_lieu_gestion.libelle, contrat.id)

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

Hi!

Change dimension

=aggr(if(isnull(client_lieu_gestion.libelle) and isnull(apporteur.nom) , 'null','not null'),contrat.id)

maxime66
Creator
Creator
Author

Perfect guys !

thanks.

sasiparupudi1
Master III
Master III

another way could be as attached

hth

Sasi