Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can i split the column?

I have excel file with column QTR which contains all quarters but when i am loading into the qvw, I want that to be in each quarter in different column.excel.PNG

like below image in final qvd filequarter.PNG

8 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

you should not split that data that way, instead use a pivot table and drag drop you quarter field to the top

MarcoWedel

Hi,

you could load the quarters like:

tabQuarters:

LOAD *,

    Dual(Quarter_txt,MakeDate(Right(Quarter_txt,4),Mid(Quarter_txt,2,1)*3-2)) as Quarter

INLINE [

    Quarter_txt

    Q1 2015

    Q2 2015

    Q3 2015

    Q4 2015

    Q1 2016

    Q2 2016

    Q3 2016

    Q4 2016

];

and use in pivot tables as already suggested.

hope this helps

regards

Marco

MarcoWedel

Hi,

one example:

QlikCommunity_Thread_169657_Pic1.JPG

hope this helps

regards

Marco

Not applicable
Author

Hi Marco,

Could you pleases share the qvw file as I am unable to repro the same

Thanks

MarcoWedel

Already attached,  please try again.

Regards

Marco

sasiparupudi1
Master III
Master III

Thread169657.png

Not applicable
Author

to Sasidhar,

how can we achieve it?

sasiparupudi1
Master III
Master III

Hi

The field can be split as follows and rest is dependent on how you want your data to look like

  LOAD  

       SubField(Quarter_txt,' ',1) as Quarter,

              SubField(Quarter_txt,' ',2) as Year

    INLINE [ 

        Quarter_txt 

        Q1 2015 

        Q2 2015 

        Q3 2015 

        Q4 2015 

        Q1 2016 

        Q2 2016 

        Q3 2016 

        Q4 2016 

    ];