Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
hillrunner
Contributor II
Contributor II

Nested condition doesn't work

Hello ! 

I am a beginner in Qlikview and I was searching how to do a nested condition in a dimension of a graph. 

The condition is : 

=if(IsNull(Spécialité),'step 1',if(IsNull([Group Sanguin]),'step 2','step 3'))

So this condition  with these data : 

1.png

should, according to me, for each person ( Nom et prénom is First Name and Last name ), indicates me or Step 1 or Step 2 or Step 3 

And for example Mr. Joseph Paris has null in the column spécialité so it should show step 1
Madam Sarah Frisc should show step 2  because " group sanguin " is empty 

And Laurent Blanc " step 3 " 

But it doesn't work, instead of step 1 it shows null : 

2.png

( according to the links i checked it should work... for example : https://community.qlik.com/t5/QlikView-App-Development/how-to-write-multiple-if-conditions/td-p/4331... ) 

 

If someone can say me why it doesn't work 

thanks for reading ! 

 

1 Solution

Accepted Solutions
edwin
Master II
Master II

move the calculated dimension to the expression instead and it will give you what you want

View solution in original post

9 Replies
MayilVahanan

Hi @hillrunner 

Try like below

=if(Len(trim (Spécialité))=0,'step 1',if(IsNull([Group Sanguin]),'step 2','step 3'))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hillrunner
Contributor II
Contributor II
Author

Thanks for response ! 

but it doesn't work neither, doesn't understand why, it does the same, nothing when it should be written step 1 

I tried another possibility : =if(Len(Spécialité)>0,if(Len([Group Sanguin])>0,'step3','step2'),'step1') 

( in reverse direction ) but it doesn't work neither, really doesn't understand why

MayilVahanan

Hi @hillrunner 

Can you provide the sample data to verify further.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hillrunner
Contributor II
Contributor II
Author

For sure thanks !

I post two responses because i can only post 3 files at the same time

hillrunner
Contributor II
Contributor II
Author

And the 2 other  excel files 

MayilVahanan

Hi @hillrunner 

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
edwin
Master II
Master II

move the calculated dimension to the expression instead and it will give you what you want

edwin
Master II
Master II

edwin_0-1605200303480.png

 

 

QFabian
Specialist III
Specialist III

Hi!, you should probably thibnk in a script solution, try always to avoid calculated dimensions.

greetings!

QFabian