Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
danaleota
Contributor II
Contributor II

I have only two tables to join but I have more than one key needed

 

DateSiteSupervisorSegmentANSCallTypeFormTypeCoachingErrorTypeCallInfoTypeSegment

CallId

 

 

DateSiteSupervisorSegmentANS

 

I have two tables above.  The first table (Errors) has a measure of count(CoachingErrorType) and the second table (Calls) has a measure of SUM(ANS).  What I'm trying to do is get an error percentage of the sum(ans) which is the error percentage of total calls eventually Count(CoachingErrorType)/Sum(ANS) and then be able to drill down by site, supervisor, date, and segment.  I can join on one key and get the results I need, but I want to be able to drill down by site, supervisor, and segment.  How can I do this if I only have one key.  I tried joining the tables on multiple columns I tried two at first ( see below) but that didn't give the results I was looking for.  I am still getting duplicate supervisor columns, etc. 

Errors:
LOAD
 AutoNumber(Supervisor&Segment) as Key,
    DateCompleted,
    CallDate,
    AddedBy,
    AgentName,
    [Supervisor] as Errors_Supervisor,
    Location,
    CallType,
    FormType,
    CoachingDetails,
    CoachingErrorType,
    CallInfoType,
    CreditUnionName,
    [Segment] as Errors_Segment,
    CallId
FROM [path], table is Errors);

 

Right Join
LOAD
 AutoNumber(Supervisor&Segment) as Key,
    "Date",
    Site,
    [Supervisor] as [Calls_Supervisor],
    [Segment] as [Calls_Segment],
    ANS
FROM [path]
(ooxml, embedded labels, table is Calls);

 

Labels (3)
3 Replies
Vegar
MVP
MVP

You might want to include all four fields in your join
AUTONUMBERHASH256(Date,Site,Supervisor,Segment) As Key
Sue_Macaluso
Community Manager
Community Manager

@danaleota  Are you using QlikView or Sense? I would like to move this into the correct product forum. Thank you. 

Sue Macaluso
danaleota
Contributor II
Contributor II
Author

I'm using Qlik Sense.  🙂