Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
d4rlie891
Contributor III
Contributor III

How to Get Date and Time from Max Transaction

Hi,

Anybody can help me, how to get Date and Time from Max Transaction?

   

DAYTIMETRX
110:004
110:407
110:5510
111:3020
116:0015

Thanks

Darlie

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Maybe like this: FirstSortedValue({<TIME={'>10:00<10:55'}>}TIME, -TRX)


talk is cheap, supply exceeds demand

View solution in original post

8 Replies
Gysbert_Wassenaar

FirstSortedValue(DAY, -TRX)

FirstSortedValue(TIME, -TRX)


talk is cheap, supply exceeds demand
d4rlie891
Contributor III
Contributor III
Author

Hi Thanks for your Help, Could you please tell me how get the Time from Max Transaction that happen in (time 10:00 - 10:55)

Thanks n Regards

Gysbert_Wassenaar

Maybe like this: FirstSortedValue({<TIME={'>10:00<10:55'}>}TIME, -TRX)


talk is cheap, supply exceeds demand
d4rlie891
Contributor III
Contributor III
Author

Thanks So Much.

May I ask you one more thing, what is the correct Syntax if I want to add AVG on TRX?

the result is null : FirstSortedValue({<TIME={'>10:00<10:55'}>}TIME, -(Avg(TRX))


Thanks

sunny_talwar

Find the Avg(TRX) based on what dimension here?

d4rlie891
Contributor III
Contributor III
Author

Hi Sunny,

Sorry, here is the detail : I need to know the DAY of Max AVG (ESAP).

For Example, The Max Avg is on Day 9

Max Avg.jpg

Thanks

sunny_talwar

You want to know the day of max average? may be this:

FirstSortedValue(DAY, -Aggr(Avg(TRX), DAY))

d4rlie891
Contributor III
Contributor III
Author

It' Work, Thanks For your Help