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

Data transformation

I have a data source that looks like this :

InstanceQuestionResponseDate
13. Rating52014/01/14 23:27:38
11. Ticket NumberT0012014/01/14 23:27:38
12. Resolved ?Yes2014/01/14 23:27:38
23. Rating42014/02/14 17:37:57
21. Ticket NumberT0022014/02/14 17:37:57
22. Resolved ?Yes2014/02/14 17:37:57
33. Rating12014/01/03 00:54:57
32. Resolved ?No2014/01/03 00:54:57
31. Ticket NumberT0032014/01/03 00:54:57
43. Rating32014/03/11 21:14:27
41. Ticket NumberT0042014/03/11 21:14:27
42. Resolved ?Yes2014/03/11 21:14:27

Can QlikView's transformation function transform the data to this format ?

Instance1. Ticket Number2. Resolved ?3. RatingDate
1T001Yes52014/01/14 23:27:38
2T002Yes42014/02/14 17:37:57
3T003No12014/01/03 00:54:57
4T004Yes32014/03/11 21:14:27
24 Replies
mato32188
Specialist
Specialist

Hi Cheong,

try this... I used previous record from date field to modify your "1 second slack" for Question 2. Resolved... based on previous date record...not sure, if such "logic" could be generally used for your data set

Or...u can use pivot table to avoid seeing dates ... if necessary /not solution/

Regards M

ECG line chart is the most important visualization in your life.
Not applicable
Author

Hi Cheong,

This is easily fixed by adding a where clause in the load statement.

Just replace:

//create pk list

fields:

load distinct Instance, Date

resident datagroup;

with

//create pk list

fields:

load distinct Instance, Date

resident datagroup

// Added where clause to load statement to filter out only the ticket number date/time

Where left(Question,1)=1;

See attached files for working example.

Anonymous
Not applicable
Author

Martin,

Thanks !  That is a great and simple solutions !

Anonymous
Not applicable
Author

Martin B,

Thanks for the suggested fix

Anonymous
Not applicable
Author

Thanks everyone for chipping in.  This is such a helpful and great forum. I learnt a lot from the different approaches to solving the problem.