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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
mustafaelryah
Creator
Creator

Using Set Analysis

Dear All,

     I have the below statement

     sum( {$<Account_Type2= {Expenses}>} debit)

its true but when I use value with space it cause an error like below statement:

  sum( {$<Account_Type2= {Operational expenses}>} debit)

and when I put it between '  ' the error been removed but no calculation !! like this below:

sum( {$<Account_Type2= {'Operational expenses'}>} debit) or sum( {$<Account_Type2= {[Operational expenses}>} debit)  also not calculated !!

Looking forward.

4 Replies
its_anandrjs
Champion III
Champion III

Hi,

If Account_Type2 holds value like Operational expenses as string then you have to use SET expression this ways in the single quotes or double quotes.

Sum( {$<Account_Type2= {'Operational expenses'}>} debit)

By this works definitely.

Regards

Anand

mustafaelryah
Creator
Creator
Author

Kindly review my message , I typed this solution but not calculated !!

its_anandrjs
Champion III
Champion III

Can you share any sample file or what string in the Account_Type2 field.

Regards

Anand

Not applicable

Hi Yagoub,

For me sum({$<Account_Type={'Operational Expenses'}>}Debit) is working.

Please find attached.

Thanks,

Chiru