Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I want to use following SQL statement in Qlik, how can we use it script?
convert(varchar,Relationnumber) AS keynumber,
case when countrycode in ('S','SE') then SUBSTRING(Postnummer,1,4) else Postnummer end AS Newcode
Thanks in advance
You have to use mid in qlik as mentioned in the expression
Check this
thanks @Anil_Babu_Samineni for your responds .
Sorry but the link does not answer the question, Do you mean to say switch is the replace syntax for convert ?
We don't know where you are using. If you are using as field may be
If(match(countrycode, 'S','SE'), mid(Postnummer,1,4), Postnummer) AS Newcode
I am applying this in QS and countrycode is a field . I was wondering if substring works in QS scripting as a function
You have to use mid in qlik as mentioned in the expression