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: 
qlikview979
Specialist
Specialist

Set Expression

Hi Experts,

How can i write set expression for below code

=count(DISTINCT if(len(GatePassDate)= 0,if(len([Repair Category])<> 0, BBND_ROs)))

regards

mahesh

20 Replies
qlikview979
Specialist
Specialist
Author

Hi experts,

help me on this

avinasheliteloveisfailjaganstalwar1

regards

tresesco
MVP
MVP

Try like:

=count(DISTINCT {<GatePassDate={"=len(GatePassDate)= 0"}, [Repair Category]={"=len([Repair Category])<> 0"} >} BBND_ROs)

qlikview979
Specialist
Specialist
Author

Hi Brother,

its showing Zero

Anil_Babu_Samineni

May be this?

Count({<GatePassDate = {"=Len(GatePassDate) = 0"}, [Repair Category] -= {' ', '0','-'}>} DISTINCT BBND_ROs)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qlikview979
Specialist
Specialist
Author

Hi Anil,

Not working

Anil_Babu_Samineni

Or

Count({<GatePassDate = {"=Len(GatePassDate) = 0"}>} DISTINCT if(len([Repair Category])<> 0, BBND_ROs))


I don't think whether your condition gets any performance issue, You can use that

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kushal_Chawda

Move this expression to script

if(len(GatePassDate)= 0,if(len([Repair Category])<> 0, BBND_ROs)) as BBND_ROs_


Now write expression


Count(distinct BBND_ROs_)

qlikview979
Specialist
Specialist
Author

Not working

I  am checking this text object,its showing result zero.

Above my if condition showing exact count, but i want in same expression in set level.

tresesco
MVP
MVP

Where are you using this formula, in a chart or text box? What is the output you are getting with your expression (without set analysis)?