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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis

Hi,

I am trying to optimize a calculation because it is not always calculating correctly.

I Need to Change it into a set Analysis calculation but I dont get it to work.

sum((if (xrefNr like '6*' and linetype=158 and linetype='158' and xref_GRPCODE='2KRE' and not (doccode like 'Z*' or doccode like 'BANK*' or  doccode like 'A*'),Buchungsbetrag,0)))

Does somebody have an idea how the set Analysis must look like?

Very much thanks in advance.

Chris

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try maybe something like

Sum(

{<xrefNr = {"6*"}, linetype = {158}, xref_GRPCODE = {'2KRE'}, docode -= {"(Z*|BANK*|A*)"}>}

Buchungsbetrag)

View solution in original post

7 Replies
swuehl
Champion III
Champion III

Try maybe something like

Sum(

{<xrefNr = {"6*"}, linetype = {158}, xref_GRPCODE = {'2KRE'}, docode -= {"(Z*|BANK*|A*)"}>}

Buchungsbetrag)

sunny_talwar
MVP
MVP

May be this:

Sum({<xrefNr = {'6*'}, linetype = {158}, xref_GRPCODE = {'2KRE'}, doccode -= {'Z*', 'BANK*', 'A*'}>} Buchungsbetrag)

Kushal_Chawda
MVP
MVP

Hi Stefan,

what is difference between docode -= {"(Z*|BANK*|A*)"} & doccode -= {'Z*', 'BANK*', 'A*'}  ?

Not applicable
Author

Thank you very much to all of you.

All Solutions worked 🙂

swuehl
Champion III
Champion III

Besides that I misspelled doccode?

I've used a single field modifier list element, a compound search including three searches, instead of three set modifier list elements that each contain a search, but I don't think that makes a big difference.

Mine is shorter

sunny_talwar
MVP
MVP

shorter by the count of characters?

Kushal_Chawda
MVP
MVP

Yes, that's what I wanted to know with regards to performance. Thanks