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: 
krishna20
Specialist II
Specialist II

Set analysis with if else

Hi,

Can anyone tell me tat how can we write conditional and else statements in a single expression using set analysis.

Regards

krishna

19 Replies
SunilChauhan
Champion II
Champion II

if(CE_CLOSE_YN='1' and CE_CLOSE_DT<Today(),0,if(CE_CLOSE_YN='1'andCE_CLOSE_DT>Today(),(sum({$<Year={"vCurrentYear-2>vCurrentYear-1<vCurrentYear"}>}CE_AMT_LC_1))),

if(condition1 and condition2, Sum()))

Sunil Chauhan
krishna20
Specialist II
Specialist II
Author

Hi Sunil,

I have to check mainly CE_CLOSE_DT<Today() and CE_CLOSE_DT > Today() with the condition CE_CLOSE_YN='1'

SunilChauhan
Champion II
Champion II

if(CE_CLOSE_YN='1'andCE_CLOSE_DT>Today(),(sum({$<Year={"vCurrentYear-2>vCurrentYear-1<vCurrentYear"}>}CE_AMT_LC_1))),

if(CE_CLOSE_YN='1' and CE_CLOSE_DT<Today(),SUM(),0)


might be something like this you want

Sunil Chauhan
sasikanth
Master
Master

hi have you checked the both date formats

CE_CLOSE_DT date format

if yes then post your sample file

krishna20
Specialist II
Specialist II
Author

Hi Sasi.

Pls Find the below attachment .

Regards

Krishna

sasikanth
Master
Master

post only your file .qvw

that zip file not able to open

krishna20
Specialist II
Specialist II
Author

Hi Sasi

Please find the attachment.

Regards

Krishna

krishna20
Specialist II
Specialist II
Author

Hi Sasi !

Did u got any way for that?

Regards

Krishna

sasikanth
Master
Master

no yaar i am not able to open that file also , it is giving me error load failed

krishna20
Specialist II
Specialist II
Author

Hi sasi.

Can you provide your personal mail ID such that i can send the key for Qlikview.Apply it for your personal edition then you can able to open it.

Regards

Krishna