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: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Enters into first If condition every time in expression even there is no data?

Hi,

I want to see in striaght table as below image.

Capture.PNG

- I tried like this first i had taken Id as dimension and in expression as =if(Count({<Defect ={"A"}>}ID) >0,if(Count({<Single = {"Fail"}>}ID) >0,'Fail',if(Count({<Single = {"Pass"}>}ID) >0,'Pass',if(Count(if(IsNull(Single),0)) >0,'null'))),'-')

- I don't know where i'm doing wrong can anyone help me.

For your reference i'm attaching my qve file.

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Follow below steps to achieve what you want.

     Create a pivot table with dimension as ID and Defect.

     Now add expression as

     if(Single = '','',if(Single = 'Fail','Fail','Pass'))

     Click Finish/Ok

     Now drag the Defect Dimension over the Expression.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Thanks for your response...

But the think is in my real time requirement. I've two dimensions and different number of expressions say for example Min(x),Max(y)......etc and now i want to include the above post conditon also here....

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Try this in your real time environment. According to me it should work.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Ya i tried in real time environment. But it's not working there also how come it works here without working in small example