Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
win_anthony
Partner - Contributor III
Partner - Contributor III

Comparing Values from the Same Field

Is it possible to compare values that are within the same dimension field? The goal is to compare employee data from the current month vs previous month (ex: if a name changes, position change, employee joining/departing, manager change, etc...) and have it reflected as a table (target output is at the bottom of the example data tables).  How would you approach this? Is it even possible?

Mar-20
DateIDEmpIDLastNameFirstNamePositionManagerCity
2020030110DoeJohnCashierJordan, MichaelNew York
2020030111SmithJaneManagerRogers, TomChicago
2020030112MoneyFloydDishwasherPacquiao, MannyLas Vegas

 

Apr-20
DateIDEmpIDLastNameFirstNamePositionManagerCity
2020040110DoeJohnCashierJordan, MichaelNew York
2020040111RoseJaneReg. MgrSteven, JimChicago
2020040113BryantKobePlayerJohnson, MagicLos Angeles

 

Difference Between April 2020 vs March 2020
ChangeEmpIDLastNameFirstNameOldNewManagerCity
LastName11RoseJaneSmithRoseSteven, JimChicago
Position11RoseJaneManagerReg. MgrSteven, JimChicago
Departed12MoneyFloydDishwasher Pacquiao, MannyLas Vegas
Joined13BryantKobe PlayerJohnson, MagicLos Angeles
 
 
1 Solution

Accepted Solutions
Saravanan_Desingh

Hi,

 

This is not foolproof solution. But you can try something like this.

View solution in original post

3 Replies
Saravanan_Desingh

Hi,

 

This is not foolproof solution. But you can try something like this.

win_anthony
Partner - Contributor III
Partner - Contributor III
Author

This was exactly what I needed to help me structure to my current situation. The best learning tool for me is to see how the script is set up and dissect to understand how it all works. Cheers to you and so much gratitude!

Thank you!

ArjunChandra
Contributor II
Contributor II

Hi, @win_anthony 

 Have you got the solution for this post. If so, could you please share it with me. I am also having same scenario