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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show two pivot tables in one

Grettings, I have a problem with a pivot table, rather, with the fields of that tables.

We have two important fields in my model, TermReason and RecruitType, in both fields, I wes create a pivot table that show the numeric count of the Employees (GlobalEmployeeId), and show it by months, like this image:

Tables.png

This is no problem, is very easy create these pivot tables, but I need to add/fuse/join/etc this table and makes them one table. The problem, the distinct source of the tables, because TermReason and RecruitType are in different table, both in Qlikview and in SQL Server. Joins in Qlikview and in SQL Server doesn't work, and I no have any idea that I can do for resolve this problem.

I attach the .qvw fiel with my model if someone can help me. By the way, I don't have the professional license of Qlikview, only Personal Edition, I won't can see your files, so I would so glad if you can wrote the code or show me a image.

Beforehand, thanks you for you answers and sorry for my poor level of english.

P.D: I speak spanish, it's my native language, so if someone wants reply in spanish, no problem for me

1 Solution

Accepted Solutions
Not applicable
Author

Add the following at the end of your script:

MapRecruitmentTypeId: Mapping LOAD RecruitmentTypeId,RecruitType Resident DimRecruitmentType;

MapTerminationReasonId: Mapping LOAD TerminationReasonId,TermReason Resident DimTerminationReason;

DIMRecruitTermination:

LOAD GlobalEmployeeId,ApplyMap('MapRecruitmentTypeId',RecruitmentTypeId) as RecruitTermination Resident FactEmployee;

Concatenate

LOAD GlobalEmployeeId,ApplyMap('MapTerminationReasonId',TerminationReasonId) as RecruitTermination Resident FactEmployee;

Use same expression with RecruitTermination as dimension. Then go to dimensions tab of the chart and "suppress when value is null" for RecruitTermination.

Regards,

Kiran Rokkam.

View solution in original post

2 Replies
Not applicable
Author

Add the following at the end of your script:

MapRecruitmentTypeId: Mapping LOAD RecruitmentTypeId,RecruitType Resident DimRecruitmentType;

MapTerminationReasonId: Mapping LOAD TerminationReasonId,TermReason Resident DimTerminationReason;

DIMRecruitTermination:

LOAD GlobalEmployeeId,ApplyMap('MapRecruitmentTypeId',RecruitmentTypeId) as RecruitTermination Resident FactEmployee;

Concatenate

LOAD GlobalEmployeeId,ApplyMap('MapTerminationReasonId',TerminationReasonId) as RecruitTermination Resident FactEmployee;

Use same expression with RecruitTermination as dimension. Then go to dimensions tab of the chart and "suppress when value is null" for RecruitTermination.

Regards,

Kiran Rokkam.

Not applicable
Author

Thank you Kiran, that is all that I need it, thank you very much