Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
c_latham
Contributor III
Contributor III

Return Last 5 Rows Matching Selection

Hi All,

I have a basic set of data whereby I am looking at vehicle turn around time.

I need to compare the 'NAME' field where selected and display the previous 5 'TurnAround' times for that selection.

Data looks like:

ID NAME VALUE YEAR TurnAround

001AA12 ABCYES201421.5
002AA12 ABCYES201418.7
003AA12 ABCNO201420.1
004BB10 AAYNO201534.3
005CA11 MEENO201518.1
006BB08 KKHNO201519.5

 

If I select 'AA12 ABC' I want to display: '21.5, 18.7, 20.1'

Can this be achieved with Set Analysis?

Labels (2)
2 Replies
dplr-rn
Partner - Master III
Partner - Master III

Please explain further.
i dont understand the challenge going by what you mention.
if you create a table like above and the name is selected the table will get filtered by that name.

 


@c_latham wrote:

 

If I select 'AA12 ABC' I want to display: '21.5, 18.7, 20.1'  -- How do you want to display this?

 


 

prieper
Master II
Master II

If you need to display in a textbox, give it a try with

CONCAT(DISTINCT Turnaround, ', ')

This should deliver all possible Turnaround-entries for the current selection, separated by a comma (and - in case of multiple entries - give each value only once)

HTH Peter