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: 
rustyfishbones
Master II
Master II

Show Start Time and End Time

Hi,

I am creating a straight table with transactions for today.

I want to add a Dimension for each user showing the first transaction time and the last transaction time

User Qty    Start Time End Time

Alan 1000   08:15        14:59

each transaction has a start time and an end time, so I could have hundred of them for each user.

I only want to display the very first StartTime for the selected Day and the very last EndTime for the selected day

What's the best approach.

1 Solution

Accepted Solutions
7 Replies
Anil_Babu_Samineni

That is possible, Will you able to provide sample data set with Days combination ?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
rustyfishbones
Master II
Master II
Author

Hi Please see the attached sample data file

rustyfishbones
Master II
Master II
Author

I am not looking to create this in the script, just within the chart Dimension

sunny_talwar

Like this

Capture.PNG

rustyfishbones
Master II
Master II
Author

Yes, that's it, I did try that as a calculated Dimension but it returned an error.

This is what actually worked for me.

TIME(MIN(StartTime),'hh:mm')

TIME(MAXEndTime),'hh:mm')


and as an Expression not a Dimension

sunny_talwar

As a dimension, you would need Aggr()...

=Aggr(Time(Min(StartTime), 'hh:mm'), Picker)

=Aggr(Time(Max(EndTime), 'hh:mm'), Picker)

Capture.PNG

rustyfishbones
Master II
Master II
Author

Thanks Again