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: 
Anonymous
Not applicable

If right function

Hi guys

Abit stuck on this

I wanted something like

My data shows dates and codes

Codes are A1, A2, A3 etc

I want A3 to say Y and others to say N

If (right = 3, then show date)

Thanks

Adil

1 Solution

Accepted Solutions
Digvijay_Singh

If(right(Codes,1)=3,'Y','N') as Flag

View solution in original post

3 Replies
sunny_talwar

May be this:

LOAD Codes,

          dates,

          If(Codes = 'A3', dates) as New_Dates,

          If(Codes = 'A3', 'Y', 'N') as Flag

FROM Source;

Digvijay_Singh

If(right(Codes,1)=3,'Y','N') as Flag

Anonymous
Not applicable
Author

Thanks Digvijay