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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
4 Replies
Clever_Anjos
Support
Support

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

stantrolav
Partner - Creator II
Partner - Creator II

=right(3,2)

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

swuehl
Champion III
Champion III

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 - Creator II
Partner - Creator II

And what is the answer?