Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with Joins

Hi, guys!

I have a problem here with Joins.

This is my first Table:

EmployeeAccountPeriodDataAccount
Pavel KovalskiInternationalFeb-140
Pavel KovalskiBankMar-140
Pavel KovalskiOtherApr-140

This is my second table:

EmployeePeriodBench
Pavel KovalskiFeb-140
Pavel KovalskiMar-141
Pavel KovalskiApr-141


I need to join them, so that I'll get a table with Employee, Account, Period , DataAccount and Bench.

I make it like:

Left Join(Table 1)
Load  Employee, Bench as Bench_FTE
Resident 1;


But all I get is :


EmployeeAccountPeriodBench_FTEDataAccount
Pavel KovalskiInternational Feb-140
Pavel KovalskiInternational Feb-140
Pavel KovalskiBankMar-1410
Pavel KovalskiBankMar-141,00
Pavel KovalskiOtherApr-1410
Pavel KovalskiOtherApr-141,00

15 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or change the overly complex calculation of the Period column in Accounts and Bench into something like:

...date(MonthStart(date#(Period, 'DDMMYY')), 'MMM YY') AS Period, ...

Anonymous
Not applicable
Author

Exactly.

Date formatting is easier with the date#() function.  And, MonthStart() here is necessary for the Period match.

Not applicable
Author

Guys,

I checked, there is no day in the date format, I used the previous code that Peter gave me. I think the problem is not in the date format.

However, while using Left join I have duplicate values.

Anonymous
Not applicable
Author

What is the original format of your Month and Period fields?

Not applicable
Author

It's working!!)

Not applicable
Author

it's String