Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

lookup or peek?

Hello,

Could someone help me, please? I've got a table like

salary monthObject_IDTOP_manager
01.01.201425

Thompson Eric

01.01.2014

36Grundalf Mark
01.01.201448Stowny Oliver
01.01.201452Clinton Scott
01.02.201425Thompson Eric
01.02.201436Grundalf Mark
01.02.201448Stowny Oliver
01.02.201452Newman Peter
01.03.201425Thompson Eric
01.03.201436Tensley Tom
01.03.201448Stowny Oliver
01.03.201452Newman Peter
01.04.201425Thompson Eric
01.04.201436Tensley Tom
01.04.201448Clarksson Edward
01.04.201452Newman Peter

From this data I need to get the exsperience of each top, to be able to use if further in charts (the quality of work in the dependent of the exsperience). I've tried to make a temp table, to load and sort by TOP_manager, see if it's the the first entry of top in chart (top_manager<>previos(top_manager)),put the name of first month in a special added field then count months, but it doesn't help// tried to use lookup, peek.... just doesn't work right =(

help me pleaas...

thank you in advance

experience

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

OR

If you want Start then use below script

Data:

LOAD

*

FROM DataSource;

LEFT JOIN (Data)

LOAD

TOP_manager,

Date(Min([salary month])) AS Start

RESIDENT Data

GROUP BY TOP_manager;



Hope this helps you.


Regards,

Jagan.

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Alexa,

Could you please attach an image of the output expected?

Marc.

ychaitanya
Creator III
Creator III

Hi Alexa

Please explain clearly and attach sample output and if possible your application.

Thanks

Chaitanya

Not applicable
Author

Mark, Hi! thank for the response)

I expect to see

salary monthObject_IDTOP_managerExperience
01.01.201425Thompson Eric1
01.01.201436Grundalf Mark1
01.01.201448Stowny Oliver1
01.01.201452Clinton Scott1
01.02.201425Thompson Eric2
01.02.201436Grundalf Mark2
01.02.201448Stowny Oliver2
01.02.201452Newman Peter1
01.03.201425Thompson Eric3
01.03.201436Tensley Tom1
01.03.201448Stowny Oliver3
01.03.201452Newman Peter2
01.04.201425Thompson Eric4
01.04.201436Tensley Tom2
01.04.201448Clarksson Edward1
01.04.201452Newman Peter3

OR

salary monthObject_IDTOP_managerStart
01.01.201425Thompson Eric01.01.2014
01.01.201436Grundalf Mark01.01.2014
01.01.201448Stowny Oliver01.01.2014
01.01.201452Clinton Scott01.01.2014
01.02.201425Thompson Eric01.01.2014
01.02.201436Grundalf Mark01.01.2014
01.02.201448Stowny Oliver01.01.2014
01.02.201452Newman Peter01.02.2014
01.03.201425Thompson Eric01.01.2014
01.03.201436Tensley Tom01.03.2014
01.03.201448Stowny Oliver01.01.2014
01.03.201452Newman Peter01.02.2014
01.04.201425Thompson Eric01.01.2014
01.04.201436Tensley Tom01.03.2014
01.04.201448Clarksson Edward01.04.2014
01.04.201452Newman Peter01.02.2014

i'M not sure, what will be better to make my app work faster (there are few thousands of objects and TOPs change really often....)

Not applicable
Author

Hi, Chaitanya!!

Thanks for responce! just posted

jagan
Luminary Alumni
Luminary Alumni

OR

If you want Start then use below script

Data:

LOAD

*

FROM DataSource;

LEFT JOIN (Data)

LOAD

TOP_manager,

Date(Min([salary month])) AS Start

RESIDENT Data

GROUP BY TOP_manager;



Hope this helps you.


Regards,

Jagan.

Not applicable
Author

Thank you very much!! It's just what I need!!