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: 
regowins
Creator II
Creator II

Help with a chart

Hi,

I have a table (Table 1) that lists managers with completion dates for jobs. I need to create a chart that lists out the managers that do not have a completion date as shown in the New Report Example.

Thanks for the help!!!

Table1
GnumSeqJobMgr1Date1Mgr2Date2Mgr3Date3
Hou1Fix1Eric7/1/13Rus John8/1/13
Dal4Fix2Josh Peter Steve2/3/13
San3Fix3Lance6/1/12Mike5/1/13Tom
New Report Example
MgrGnumSeqJob
RusHou1Fix1
JoshDal4Fix2
PeterDal4Fix2
TomSan3Fix3
4 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Ashwin,

Try this script

Temp:

LOAD

*

INLINE [

Gnum, Seq, Job, Mgr1, Date1, Mgr2, Date2, Mgr3, Date3

Hou, 1, Fix1, Eric, 7/1/13, Rus,, John, 8/1/13

Dal, 4, Fix2, Josh,, Peter,, Steve, 2/3/13

San,3, Fix3, Lance, 6/1/12, Mike, 5/1/13, Tom, ];

Data:

LOAD

Gnum,

Seq,

Job,

Mgr1 AS Manager,

Date1 AS Date

RESIDENT Temp

WHERE Len(Date1) = 0;

Concatenate(Data)

LOAD

Gnum,

Seq,

Job,

Mgr2 AS Manager,

Date2 AS Date

RESIDENT Temp

WHERE Len(Date2) = 0;

Concatenate(Data)

LOAD

Gnum,

Seq,

Job,

Mgr3 AS Manager,

Date3 AS Date

RESIDENT Temp

WHERE Len(Date3) = 0;

DROP TABLE Temp;

Regards,

Jagan.

regowins
Creator II
Creator II
Author

Thanks Jagan!  This was very helpful. I was thinking of something similar but not sure how to do it.   Any idea how I could also include the lead Mgr.  Basically the same rule as above but always show an extra line for the lead regardless if the date is blank or not. 

LeadGnumSeqJobMgr1Date1Mgr2Date2Mgr3Date3
JohnHou1Fix1Eric7/1/13Rus John8/1/13
JoshDal4Fix2Josh Peter Steve2/3/13
TomSan3Fix3Lance6/1/12Mike Tom5/1/13

New

Table

MgrGnumSeqDesc
RusHou1Fix1
JohnHou1Fix1
JoshDal4Fix2
PeterDal4Fix2
MikeSan3 Fix3
TomSan3Fix3

Thanks!

jagan
Luminary Alumni
Luminary Alumni

HI Ashwin,

Try this

Temp:

LOAD

*

INLINE [

Lead,Gnum, Seq, Job, Mgr1, Date1, Mgr2, Date2, Mgr3, Date3

John, Hou, 1, Fix1, Eric, 7/1/13, Rus,, John, 8/1/13

Josh, Dal, 4, Fix2, Josh,, Peter,, Steve, 2/3/13

Tom, San,3, Fix3, Lance, 6/1/12, Mike, 5/1/13, Tom, ];

Data:

LOAD

Lead,

Gnum,

Seq,

Job,

Mgr1 AS Manager,

Date1 AS Date

RESIDENT Temp

WHERE Len(Date1) = 0;

Concatenate(Data)

LOAD

Lead,

Gnum,

Seq,

Job,

Mgr2 AS Manager,

Date2 AS Date

RESIDENT Temp

WHERE Len(Date2) = 0;

Concatenate(Data)

LOAD

Lead,

Gnum,

Seq,

Job,

Mgr3 AS Manager,

Date3 AS Date

RESIDENT Temp

WHERE Len(Date3) = 0;

DROP TABLE Temp;

Regards,

Jagan.

regowins
Creator II
Creator II
Author


Thanks Jagan!