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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression and dimension

Hello

i need to unify this dimension an expression in one expression....

calculated dimension:

=if((not wildmatch(DOCUMENTO,'*NDP*','*NCP*')<>0),DOCUMENTO)

expression:

sum(TREINTA)-sum({<ISSOTRX_Cartera={'N'},TIPO={'FC'}>}TREINTA)

how i could do this?

Tnks...

1 Solution

Accepted Solutions
Not applicable
Author

What are you trying to accomplish?

From your description I understand you want to show only the DOCUMENTS that doesn't match with '*NDP*' or '*NCP*'.

So... you could try this:

sum({<ISSOTRX_Cartera={'N'},TIPO={'FC'}, DOCUMENTO={'*'}-{'*NDP*','*NCP*'}>}TREINTA)

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your question doesn't make sense to me. You can make your sum expressions disregard records where DOCUMENTO contains the substrings NDP and NCP. If that's what you want try:

sum({<DOCUMENTO -= {'*NDP*','*NCP*'} >}TREINTA)-sum({<DOCUMENTO -= {'*NDP*','*NCP*'},ISSOTRX_Cartera={'N'},TIPO={'FC'}>}TREINTA)


talk is cheap, supply exceeds demand
Not applicable
Author

What are you trying to accomplish?

From your description I understand you want to show only the DOCUMENTS that doesn't match with '*NDP*' or '*NCP*'.

So... you could try this:

sum({<ISSOTRX_Cartera={'N'},TIPO={'FC'}, DOCUMENTO={'*'}-{'*NDP*','*NCP*'}>}TREINTA)