Skip to main content
Announcements
See why Qlik was named a Leader in the 2024 Gartner® Magic Quadrant™ for Data Integration Tools for the ninth year in a row: Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
saumyashah90
Specialist
Specialist

Set analysis help Expression

AsOfDateEmployeeIDTeamCodeRegionDepartmentTeam
2020-05-311111012CSouthRetail ADigital A
2020-05-312222132VNorthRetail BDigital B
2020-06-302222472HEastRetail CDigital C
2020-06-303333475UEastRetail CDigital F
2020-06-304444413NWestRetail DDigital G
2020-07-312222763IEastRetail DDigital H
2020-07-315555472HEastRetail CDigital C
2020-07-304444472HEastRetail CDigital C

 

This is the employee data, i want create headcount analysis.

I cannot do anything in the script. All data will just get appended anymonth.

User will select 2 months for comparison and 

They want get  New to the company, Retained , Resigned from the company, Internal transfer

this should be valid based on selection of Region, Department and Team

So when i compare June and July Month i  select  only Team (Digital C ), I should get output

New to Bank: 1 (Employee 5555)

Resigned from Bank: 0

Internal Transfer: + 1 (Employee 4444)

Internal Transfer: -1(Employee 2222)

 

So when i compare June and July Month i  select only Region (East) , I should get output

New to Bank: 1 (Employee 5555)
Resigned from Bank: 1 (Employee 3333)
Internal Transfer: +1 ( Employee 4444 )
Internal Transfer: -0

Note: Any two months can be selected for comparison, Jan Mar, Jan Nov, Feb Apr, June Nov, etc

Hint: Lowest grain is Team Code, If team code of employee is present and not present in last month , he is new to the bank,
if team code of employee is not present this month but present in last month, his has resigned

if team code is present for both month but different and it is same as filter selection, +ve internal transfer,

if team code is present for both month but different and it is  not same as filter selection, -ve internal transfer

 

I have a composite key of EmployeeID,Teamcode at the backend if useful

Labels (2)
22 Replies
sunny_talwar

Please attach the sample back with the selections.

saumyashah90
Specialist
Specialist
Author

Hi Sunny,

 

Please find attached application.

 

If i select only "retail C" under department.

I should get 4444 under Internal transfer not new to bank because 4444 was present in "Retail D" before.

Similarly it should work for all 3 selection combination. Currently it looks like working only for Team

sunny_talwar

Check now