Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help in Set Analysis

Hi All,

Please any one can help me to write the below expression using  Set Analysis.

Count(Distinct If(FndCT_SDF_Ctgy = 'Same Day', PRE_AUDIT_ACCT_SCHDL))

/  (Count(Distinct PRE_AUDIT_ACCT_SCHDL) -

Count(Distinct If(FND_TAG = 'Funded' And IsNull(FndCT_SDF_Ctgy), PRE_AUDIT_ACCT_SCHDL)))

Thanks in Advance

Regards,

Ankit

8 Replies
Miguel_Angel_Baeyens

Hi Ankit,

The expression should look like the following

Count({< FndCT_SDF_Ctgy = {'Same Day'} >} Distinct PRE_AUDIT_ACCT_SCHDL)

/  (Count(Distinct PRE_AUDIT_ACCT_SCHDL) -

Count({< FND_TAG = {'Funded'}, FndCT_SDF_Ctgy = {"=Len(FndCT_SDF_Ctgy) = 0"} >} Distinct PRE_AUDIT_ACCT_SCHDL))

Check parentheses, I may have missed some.

Hope that helps.

Miguel

Anonymous
Not applicable
Author

Thanks. Will check and revert back..

vijay_iitkgp
Partner - Specialist
Partner - Specialist

You can also use

Count(Distinct {$<FndCT_SDF_Ctgy={'Same Day'}>} PRE_AUDIT_ACCT_SCHDL)

/

Count(Distinct {$},PRE_AUDIT_ACCT_SCHDL)

-
Count(Distinct {$<FND_TAG = {'Funded'}, FndCT_SDF_Ctgy= {"=Isnull(FndCT_SDF_Ctgy)"}>} PRE_AUDIT_ACCT_SCHDL)


Anonymous
Not applicable
Author

Hi Vipul, Miguel,

The isnull part is not working here, for both the Expressions which u guys have provided me.

Please if you can help me

SunilChauhan
Champion II
Champion II

In place of =Isnull(FndCT_SDF_Ctgy) use

$(=Isnull(FndCT_SDF_Ctgy))

Count({< FndCT_SDF_Ctgy = {'Same Day'} >} Distinct PRE_AUDIT_ACCT_SCHDL)
/  (Count(Distinct PRE_AUDIT_ACCT_SCHDL) -
Count({< FND_TAG = {'Funded'}, FndCT_SDF_Ctgy = {"$(=Len(FndCT_SDF_Ctgy)) = 0"} >} Distinct PRE_AUDIT_ACCT_SCHDL))

hope this helps

Sunil Chauhan
Miguel_Angel_Baeyens

Hi,

IsNull() has some reported issues in some hardware, hence the Len() = 0 (which means that the value has no length, so it's null). Is that what you are looking for? Can you post some sample data we can play with? Is FndCT_SDF_Ctgy a literal, a numeric value, is it an expression from another chart?

Regards.

Miguel

Not applicable
Author

Hi , Try to use this syntax. Count({< FndCT_SDF_Ctgy = {'Same Day'} >} Distinct PRE_AUDIT_ACCT_SCHDL) /  (Count(Distinct PRE_AUDIT_ACCT_SCHDL) - Count({< FND_TAG = {'Funded'}, FndCT_SDF_Ctgy = {} >} Distinct PRE_AUDIT_ACCT_SCHDL)) Hope this will help you. Good luck Regards, Nitin Jain

Anonymous
Not applicable
Author

No even this is not working