Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help needed in expression

Hi All,

I have data in this format {"Marks":"95"},inorder to take the values 95 alone i used the expression

=subfield(columnname,':",3)but it does not return the value 95

Kindly help me in getting this value 95 alone

Thanks in advance

4 Replies
Clever_Anjos
Employee
Employee

=keepchar(subfield(columnname,':",2),'0123456789')

stantrolav
Partner
Partner

=right(3,2)

this would get you 2 digits from right, starting at third digit from right.

swuehl
MVP
MVP

Why do you use 3 as argument to subfield (where I would expect 2)?

If you then get

95"}

you might use an additional purgechar():

=subfield(purgechar(columnname,'{}""'),':',2)

stantrolav
Partner
Partner

And what is the answer?