Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
chris_andersson
Partner - Contributor III
Partner - Contributor III

Merge Q1, Q2 etc. to years

Hello,

I have a table which contains data from quarters but not year total. 2016Q4, 2017Q1 and so on.

Can I merge the 2016Q1,q2,q3, q4 to a "2016" using the LOAD statement?

3 Replies
sunny_talwar

You should be able to... do you mind sharing your current script?

avinashelite

Yes , try like this

left(Quater_feild,4) as Year

oknotsen
Master III
Master III

"Yes we can".

It should look something like this:

Load

someKeyField,

sum(someData),

year

From source

group by year, someKeyField

;

May you live in interesting times!