Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
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.