Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to decipher what is in a field


There is this field called schedule that has things like XXXXX in it.  I need to find a way to read in what this really means in terms of the days so example here is what they would mean:

XXXXX = MTWRF

X X X =  MWF

X X = TR

and so on as it could be any mix of days.  I am trying to find a ways to know what all these days are because the end game of this is to see what the days are and match that with the days that they have data for and make sure they have data for the days that they are scheduled to have data.  But I just don't know how change over in qlikview what the X's really mean.

Any ideas?  Nothing I try seems to work.

1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

Depends on what format you need the final data. To get each value in a separate field like:

MondayTuesdayWednesdayThursdayFriday
XXXXX
XXX
XX

you could use

LOAD

         mid(schedule, 1, 1) as Monday,

         mid(schedule, 2, 1) as Tuesday,

         mid(schedule, 3, 1) as Wednesday,

         mid(schedule, 4, 1) as Thursday,

         mid(schedule, 5, 1) as Friday

RESIDENT Table1;

View solution in original post

4 Replies
sunny_talwar

Do you have some sample data you can share? Not really understand what and how we are trying to decipher

luciancotea
Specialist
Specialist

Depends on what format you need the final data. To get each value in a separate field like:

MondayTuesdayWednesdayThursdayFriday
XXXXX
XXX
XX

you could use

LOAD

         mid(schedule, 1, 1) as Monday,

         mid(schedule, 2, 1) as Tuesday,

         mid(schedule, 3, 1) as Wednesday,

         mid(schedule, 4, 1) as Thursday,

         mid(schedule, 5, 1) as Friday

RESIDENT Table1;

Anonymous
Not applicable
Author

ACTIVEDate SCHEDULESTORE
N10/12/2012XXXXX100
N2/12/2014XXXXX200
N8/2/2010XXXXX400
N6/27/2011XXXXX300
N6/27/2011X500
N6/27/2011XXXXX800
N6/27/2011XXXXX806
N9/21/2015 632
N8/27/2015 631
N11/12/2015 636
N11/12/2015 487
N11/12/2015 320
N11/12/2015 321
N11/12/2015 510
N11/12/2015 553
N11/12/2015 590
N11/12/2015XXXXX613
N11/12/2015 866
N2/9/2016XXXXX618
Anonymous
Not applicable
Author

Thanks that worked!