Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
antonaks
Creator II
Creator II

Aggr function?

Hello everybody.

I nave a issue with aggr function. Example is attached.

I need to show sum of value data in the table for latest and earliest Timestamp by Clients.

But when I use set analysis I have only one value (max or min from all data set).

Untitled.png

I'm Asking for help. Thank you.

1 Solution

Accepted Solutions
sunny_talwar

Try these expressions

Timestamp(Min([Time of SnapShoot]))

Timestamp(Max([Time of SnapShoot]))

FirstSortedValue(Aggr(Sum(Value), [Time of SnapShoot], Name), Aggr([Time of SnapShoot], [Time of SnapShoot], Name))

FirstSortedValue(Aggr(Sum(Value), [Time of SnapShoot], Name), -Aggr([Time of SnapShoot], [Time of SnapShoot], Name))

View solution in original post

2 Replies
sunny_talwar

Try these expressions

Timestamp(Min([Time of SnapShoot]))

Timestamp(Max([Time of SnapShoot]))

FirstSortedValue(Aggr(Sum(Value), [Time of SnapShoot], Name), Aggr([Time of SnapShoot], [Time of SnapShoot], Name))

FirstSortedValue(Aggr(Sum(Value), [Time of SnapShoot], Name), -Aggr([Time of SnapShoot], [Time of SnapShoot], Name))

antonaks
Creator II
Creator II
Author

It works! Thank you!