Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rahulhv1
Creator II
Creator II

Set Analysis query

how can i write set analysis query for

  =if(isnull(FinanceRelease)=-1 and isnull(BusinessHeadRelease)=0 ,count(CapexKey))

here financerelease & businessheadrelease are date fields.

Pls. help me out for this.

15 Replies
Anonymous
Not applicable

Hi

Something like below,

=Count({$<FinanceRelease={"=isNull(FinanceRelease)"}, BusinessHeadRelease={"*"}>} CapexKey)

Not applicable

Hi Rahul

    try this

count({<FinanceRelease={'isnull(FinanceRelease)=-1'},BusinessHeadRelease={'isnull(BusinessHeadRelease)=0'}>}CapexKey)

hope this will help you

MK_QSL
MVP
MVP

May be something like this..

Count({$<FinanceRelease = {"=LEN(TRIM(FinanceRelease))=0"},BusinessHeadRelease = {"=LEN(TRIM(BusinessHeadRelease))>0"}>}CapexKey)

rahulhv1
Creator II
Creator II
Author

Sorry ,but its not giving any results

rahulhv1
Creator II
Creator II
Author

Hi, Nirmal

Thanks for your reply, but sorry to say,its not working nor giving any errors


MayilVahanan

Hi

Try like this

=Count({<FinanceRelease-={"*"}, BusinessHeadRelease={"*"}>} CapexKey)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

Try Like this

count(CapexKey={"=isnull(FinanceRelease)=-1 and isnull(BusinessHeadRelease)=0"}>}CapexKey))

Not applicable

Hi Rahul,

probably the simplest way to do this is to create a null flag field in your script and use that within the set analysis.

In your script:

If(Isnull(FinanceRelease),'NULL') As FinanceRelease_NullFlag

Then in your expression:

=Count({$<FinanceRelease_NullFlag={'NULL'}, BusinessHeadRelease={'*'}>} CapexKey)

Hope that helps

Joe

Not applicable

if(<FinanceRelease={'$(=null())'} ,BusinessHeadRelease={'$(=null())'}> count(CapexKey))