Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to make dates as columns?

Hi community.

I have been trying to figure out how to create this in Qlikview:

   

TOTAL RESPONSE
Jan-17Feb-17Mar-17Apr-17May-17Jun-17
Analyst 131.58%41.18%75.00%50.00%70.59%75.00%
Analyst 2100.00%100.00%100.00%70.00%68.75%76.92%
Analyst 358.82%92.31%90.00%54.17%53.57%60.00%
Analyst 450.00%66.67%73.68%68.75%53.33%75.00%
Analyst 580.00%40.00%68.97%52.38%69.57%57.69%

I'm not having any luck in making the dates as columns.  I'm sorry of this is too basic, but I would appreciate some guidance!

1 Solution

Accepted Solutions
atoz1158
Creator II
Creator II

John

To get the months as columns click and hold one of the month names and drag it above the % SLO column

Regards

Adrian

View solution in original post

11 Replies
sunny_talwar

Check this link out

The Crosstable Load

Not applicable
Author

Sunny,

Interesting, but a tad over my head!  I'm still not sure of what to do after reading through it.

sunny_talwar

The CrossTable Load syntax will help you convert your Month Year fields into a single Month field. if you can share you sample as an Excel file I can show how it can be done for you... but in general this is the idea

Table:

CrossTable (MonthYear, Data)

LOAD *

FROM .....;

and the second part of the script is used to help interpret the MonthYear field as a date field

Capture.PNG

Not applicable
Author

thanks, I've attached the file.  As you will see, the table data is a calculation.  I assume I would need to do that in my script, too?

Appreciate your help!

sunny_talwar

John -  I am confused... is the above is what you want to see as an output in a QlikView chart?? I was under the impression that you wanted to show the above table and convert it into QlikView data. I am working on it...

Not applicable
Author

Ha, sorry about that!

My goal is to display the above chart in my Qlikview file.  I want to see the analyst and their performance for each given month as the column.

sunny_talwar

Here check the attached

Capture.PNG

Not applicable
Author

Sunny - I've replicated your example in my qvw and it is not giving me the expected results; no months to columns and the %'s are not right (much too low).  Any idea on what is going on?  I appreciate your time in helping me!

datecol.PNG

qv_testing
Specialist II
Specialist II

John,

Your Excel Calculation,

IF(COUNTIFS(data!$A:$A,$B4,data!$B:$B,C$3)>0,(COUNTIFS(data!$A:$A,$B4,data!$G:$G,"LIVE",data!$K:$K,"< 10"

,data!$B:$B,C$3)+COUNTIFS(data!$A:$A,$B4,data!$G:$G,"ELEC",data!$K:$K,"< 60",data!$B:$B,C$3))/(COUNTIFS(data!$A:$A,$B4,data!$B:$B,C$3))," ")

This calculation based on 3 columns (NAME, SOURCE and RESPTIME)

Capture.PNG

Based on your excel..

(Count(LIVE < 10)    

+

Count(ELEC < 60)

/

Count(NAME)

PFA,