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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

wildmatch in where clause

Hi all,

I have a table like the following..

ProductPeriodValue
Item ACases2019011000
Item BCases2019021000
Item CVol2019011000
Item DVol2019021522
Item EXX2019014111
Item FXX2019022010
Item GAA2019013220
Item HAA2019024102

What i am trying to do is create separate tables for each of the period types (Cases, Vol, XX, AA).

so

Load

     Product,

     Period,

     Value

Resident ...

Where wildmatch(Period, 'Cases*');

does anyone have any ideas on how i can do this please? is wildmatch not the correct way?

1 Solution

Accepted Solutions
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi all, ignore me, I was having a blonde moment!

It is actually working, but it was being concatenated to the original table!

Thanks!

View solution in original post

9 Replies
vamsee
Specialist
Specialist

Hi Chris,

Your code looks right. What is the issue you are facing?

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi, its not actually working, i am still getting all periods, not just the ones starting with Cases..

neelamsaroha157
Specialist II
Specialist II

Not sure why its not working on your side. I just tried it and it works fine.

May be could be upper/lower case issue.

vishsaggi
Champion III
Champion III

OK you are doing a resident load here so are you doing a Left join to your upper table? Do an inner Join or show the full script you are trying to run.

vamsee
Specialist
Specialist

Try Using NoConcatenate If your taking a resident

A:

NoConcatenate

Load

     Product,

     Period,

     Value

Resident ...

Where wildmatch(Period, 'Cases*');

B:

NoConcatenate

Load

     Product,

     Period,

     Value

Resident ...

Where wildmatch(Period, 'Vol*');

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Hi all, ignore me, I was having a blonde moment!

It is actually working, but it was being concatenated to the original table!

Thanks!

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Thanks yes, i have just noticed this and corrected.

vishsaggi
Champion III
Champion III

Can you close the thread marking correct/helpful responses please...

vamsee
Specialist
Specialist

Glad that it resolved your issue.

/*********************************************************************/

Please close the thread by marking the correct response also

https://community.qlik.com/docs/DOC-14806.