Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
pperrochaud
Contributor
Contributor

Criteria select in a script with special characters '<'

Hello,

In a Xls file the possible value of a field is '<--->' and I have to select only rows whith this value.

I wrote my script like this:

Offers_Diffus_tmp:
LOAD DateOffre,
Référence,
Marque,
Famille,
Produit,
Quantité,
[Prix de base],
[Prix client],
[Prix négoce],
[Prix total],
Client
FROM
$(vOffers_Diffus)
(ooxml, embedded labels)
where Référence = '<--->';

But no line is loaded.

Could you help me please ?

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Where Trim(Référence) = '<--->';

or this

Where WildMatch(Référence, '*<--->*');

View solution in original post

4 Replies
sunny_talwar

May be try this

Where Trim(Référence) = '<--->';

or this

Where WildMatch(Référence, '*<--->*');
amrinder
Creator
Creator

Hi,

 

Try below:

Let vWildChar=chr(60)&'*';

Offers_Diffus_tmp:
LOAD DateOffre,
Référence,
Marque,
Famille,
Produit,
Quantité,
[Prix de base],
[Prix client],
[Prix négoce],
[Prix total],
Client
FROM
$(vOffers_Diffus)
(ooxml, embedded labels)
where where WildMatch(Référence,'$(vWild)');

 

Hope it helps.

-amrinder

amrinder
Creator
Creator

Sorry I passed wrong variable name in where clause please correct it:

Try below:

Let vWildChar=chr(60)&'*';

Offers_Diffus_tmp:
LOAD DateOffre,
Référence,
Marque,
Famille,
Produit,
Quantité,
[Prix de base],
[Prix client],
[Prix négoce],
[Prix total],
Client
FROM
$(vOffers_Diffus)
(ooxml, embedded labels)
where where WildMatch(Référence,'$(vWildChar)');

Regards,
Amrinder
pperrochaud
Contributor
Contributor
Author

Thanks It's works.