Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression for + and - value

I try to make the amount of document type "Credit Memo & Payment" by and the other type by

I use this expression:

if(wildmatch([Document_Type06],'*Credit Memo*','*Payment*'),-1*[Amount06],[Amount06])

but it give me null values!

Untitled.png

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Sum(if(wildmatch([Document_Type06],'*Credit Memo*','*Payment*'),-1*[Amount06],[Amount06]))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
marcus_sommer

I think you need an aggregation for your amounts, like sum([Amount06])

- Marcus

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Sum(if(wildmatch([Document_Type06],'*Credit Memo*','*Payment*'),-1*[Amount06],[Amount06]))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!