Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

variable in script

Hi,

I have a field in my load script called 'STATUS'. Via applymap I translate this value into an Expression.

Now I want to create in the script a variable, that gives me the translated Expression back.

Currently I have in my script:

LOAD
...

STATUS as asset_statuscode
ApplyMap('map_coda_number_codes',STATUS) as asset_status,
...

FROM
$(DirDataQVD)efa_asset.qvd
(
qvd);

I tried this, but it is not working:

LET varCons = ApplyMap('map_coda_number_codes',STATUS) where STATUS ='1490'

Does someone of you have an idea?

Chris

1 Solution

Accepted Solutions
sureshqv
Esteemed Contributor III

Re: variable in script

small change for abve

LET varCons = ApplyMap('map_coda_number_codes',1490);

17 Replies
sureshqv
Esteemed Contributor III

Re: variable in script

chk dis

Let Statement

Not applicable

Re: variable in script

Hi chanty,

thanks for your help with the link.

I am not very good at this, so I unfortunately dont understand everything.

Would you please translate this for me for my script.

Thanks

Chris

sureshqv
Esteemed Contributor III

Re: variable in script

what ur exctly tryng to do?

Not applicable

Re: variable in script

hi chanty,

the Status 1490 is the code in the Oracle database for under construction.

the applymap is the Translation to get rid of the code and use the Expression.

I want to have a variable with this Expression.

Chris

sureshqv
Esteemed Contributor III

Re: variable in script

is this?

LET varCons =' ApplyMap('map_coda_number_codes',STATUS) where STATUS ='1490' ';

t_chetirbok
Valued Contributor

Re: variable in script

hello!

try this

LET varCons = ApplyMap('map_coda_number_codes',1490)

Re: variable in script

Hi,


Simply try,


LET varCons = ApplyMap('map_coda_number_codes','1490')

sureshqv
Esteemed Contributor III

Re: variable in script

small change for abve

LET varCons = ApplyMap('map_coda_number_codes',1490);

t_chetirbok
Valued Contributor

Re: variable in script

hm, what is difference between your post and my post? )))

Community Browser