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

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

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

And what is the answer?