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: 
PepeMontes
Partner - Contributor III
Partner - Contributor III

Load data with a Wildcard in fields

Hello dear Experts,

I want ot load data with the next logic:
I have a field called "Account" which contains many logs who start with this structutre "x11000-0000-0000", "x11000-1000-2000", etc.

Is that possible to make a wildcard to load all the data of this field which start with "x1100*" like a wildcard load or something?

Im setting some operation into the the script which contemplate many logs of this fields, but put every row that i want of this field could be a really long operation, thats why im looking to use something like a wildcard load.

Example:
[Account ID] = 'x11000*' / [Account ID] = 'x21000*' as RazonCirculante

I would greatly appreciate your help.

Regards.

3 Replies
QFabian
MVP
MVP

Hi @PepeMontes , it is exactly as you said :

 

Load

Account,

more fields

from [your source]

where 

   Account like 'x1100*';

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
Ksrinivasan
Specialist
Specialist

hi,

yes, its possible by using resident table concept:

(Sum(([Account ID] = 'x11000*',Amount) / Sum(([Account ID] =  'x21000*',Amount)) as RazonCirculante

 

ksrinivasan

MayilVahanan
MVP
MVP

Hi @PepeMontes 

For wildcard, we can use wildmatch() function.

Ex: if(WildMatch([Account ID] , 'x11000*' ), 1, 0)

or

Load * from ursource where WildMatch([Account ID] , 'x11000*' , 'x21000*');

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.