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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
sanjujeeboy
Creator
Creator

How to keep a record with a particular string

Hi All, 

In the below field Segment, i want to remove the records starting with '/'  but want to keep records which has '/shop/' 

how to achieve this?

Segment
/%E2%80%8Ben-que-se-diferencia-un-capuccino-de-un-
/4-trucos-sacar-mas-partido-hervidora/
/4-utensilios-para-tener-los-biberones-siempre-limpios-y-punto-2/
/5-consejos-de-como-iluminar-correctamente-tu-estudio-y-darle-un-toque-personal/
/shop/accessories/cables-and-connectors/c/CABLES_AND_CONNECTORS_CA
/shop/accessories/headphones/c/HEADPHONES_CA
/shop/amazon
/shop/_ui/responsive/theme-b2c-campaigns/images/mjml-email/Order_confirmed.png
Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra

@sanjujeeboy  Maye be :

Table:

LOAD * INLINE [
    Segment
    /%E2%80%8Ben-que-se-diferencia-un-capuccino-de-un-
    /4-trucos-sacar-mas-partido-hervidora/
    /4-utensilios-para-tener-los-biberones-siempre-limpios-y-punto-2/
    /5-consejos-de-como-iluminar-correctamente-tu-estudio-y-darle-un-toque-personal/
    /shop/accessories/cables-and-connectors/c/CABLES_AND_CONNECTORS_CA
    /shop/accessories/headphones/c/HEADPHONES_CA
    /shop/amazon
    /shop/_ui/responsive/theme-b2c-campaigns/images/mjml-email/Order_confirmed.png
    _ui/fffffffffffffffffffff
];

final:
noconcatenate
load * resident Table where (match(left(Segment,6),'/shop/')>0 or match(left(Segment,1),'/')=0);

drop table Table;

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

@sanjujeeboy  Maye be :

Table:

LOAD * INLINE [
    Segment
    /%E2%80%8Ben-que-se-diferencia-un-capuccino-de-un-
    /4-trucos-sacar-mas-partido-hervidora/
    /4-utensilios-para-tener-los-biberones-siempre-limpios-y-punto-2/
    /5-consejos-de-como-iluminar-correctamente-tu-estudio-y-darle-un-toque-personal/
    /shop/accessories/cables-and-connectors/c/CABLES_AND_CONNECTORS_CA
    /shop/accessories/headphones/c/HEADPHONES_CA
    /shop/amazon
    /shop/_ui/responsive/theme-b2c-campaigns/images/mjml-email/Order_confirmed.png
    _ui/fffffffffffffffffffff
];

final:
noconcatenate
load * resident Table where (match(left(Segment,6),'/shop/')>0 or match(left(Segment,1),'/')=0);

drop table Table;

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉