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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Converting string yyyy-QQ to YYYY

I have values in a table 2016-Q1,2016-Q2,2016-Q3,2016-Q4 and its associated counts.I would like to convert this as YYYY to get the counts for total year.Could anybody suggest the way to achive it.I have tried min string  but not successful

Labels (1)
1 Solution

Accepted Solutions
oknotsen
Master III
Master III

Try this:

left(fieldname, 4) as fieldName

May you live in interesting times!

View solution in original post

1 Reply
oknotsen
Master III
Master III

Try this:

left(fieldname, 4) as fieldName

May you live in interesting times!