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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

last three digits from particular code

Hi all

I want to extract last three digits(ie 100 as given in figure)  from the following (item hd name) marked in red in the image . what will be the expression for the same and where to write that expression ?

6 Replies
Anonymous
Not applicable
Author

qlikitem.png

Anil_Babu_Samineni

May be this?

SubField([item hd name], ' ', -1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
mostwanted123
Creator
Creator

Hi Saksham,

Try this,

right([item hd name],3) as [item hd name]

Regards,

Pratik

Kushal_Chawda

simple solution could be

LOAD ...

          right([item hd name],3) as NewField

its_anandrjs
Champion III
Champion III

Try one of this

=Right([item hd name], 3)


OR


=Subfield([item hd name], ' ',-1)

OR

=Subfield([item hd name], ' ',1)

its_anandrjs
Champion III
Champion III

Or may be you can try this for

Load

Right([item hd name], 3) as OptionOne,

NUM(Right([item hd name], 3)) as OptionTwo

From Source;