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: 
sindisa12
Contributor
Contributor

Not Wildmatch function

Good day.The first part of the expression below does not work when using "not wildmatch" function.  I have under Region ABC, Region A, Region B and Region C. Other Regions include D, E, F, G,H,I.

The first "if" statement should calculate the amount * Month3% if Region is D, E,F,G,H,I. The second "if" statement should calculate amount only if Region = A,B or C. This expression calculates correctly but the first one with "not wildmatch" function does not bring the correct results. what other function should i use instead?

if(match(Description,'New') and Line_ID <>20 and not wildmatch(Region, 'ABC*'),
Sum({<Line_ID_2 = {3} >} Amount * only(Month3%),

if(match(Description,'New') and match(Line_ID ,20 ) and wildMatch (Region, 'ABC*'),
sum( Amount),

 

Labels (1)
11 Replies
sindisa12
Contributor
Contributor
Author

Problem solved. Thank you all for your help

Brett_Bleess
Former Employee
Former Employee

Emelina, can you post what the final solution was and then use the Accept as Solution button on that post to mark it?  I can also mark Sunny's post if that is what ended up working, I just wanted to confirm.  You had marked a post that really did not make sense regarding it being the solution, so I unmarked that so as to not confuse folks coming across the post.

Thanks,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.