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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I change data in my QV Load

I have somethign which looks like the below

cen_CarOwnership:

CrossTable(cen_CarOwnership, cen_CarOwnership_Data, 2)

SQL SELECT

    [2001OA_CODE] AS link_Census_Code,

   

    Dominant_Car AS cen_Dominant_Car,

   

          Car_None,

          Car_1,

          Car_2,

          Car_3plus

FROM

    DCM.cen.CarOwnershipOA;

How would I do the following

If Dominant_Car contains a + character, then replace the whole string with the text NA

Many thanks

1 Solution

Accepted Solutions
Not applicable
Author

I just had to do it in SQL

with a

SELECT

CASE WHEN CHARINDEX('+',Dominant_Car) > 0 THEN 'SOMETHING' ELSE 'SOMETHING' END AS TEST

View solution in original post

1 Reply
Not applicable
Author

I just had to do it in SQL

with a

SELECT

CASE WHEN CHARINDEX('+',Dominant_Car) > 0 THEN 'SOMETHING' ELSE 'SOMETHING' END AS TEST