Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
arsallee3
Contributor III
Contributor III

Sum values of unique rows

Working on problem to calculate the sum of values for the maximum created on date for each unique ID

IDProjected Month pertains toCreated onProjected Value
42015-11-01 00:00:00.0002015-11-09 09:47:01.363160
62015-11-01 00:00:00.0002015-11-07 20:14:03.250500
62015-11-01 00:00:00.0002015-11-15 11:17:18.370700
72015-11-01 00:00:00.0002015-11-07 20:13:31.2234000
72015-11-01 00:00:00.0002015-11-16 10:29:41.8133000
82015-11-01 00:00:00.0002015-11-16 10:30:26.400700


Result looking for is sum of the highlighted ones above, total projection would equal 4560.

Not sure if need to find this in a load or if I can get it from expression.

Appreciate any assistance.

1 Solution

Accepted Solutions
marcus_sommer

Try something like this: sum(aggr(FirstSortedValue([Projected Value], -[Created on]), ID))

- Marcus

View solution in original post

3 Replies
marcus_sommer

Try something like this: sum(aggr(FirstSortedValue([Projected Value], -[Created on]), ID))

- Marcus

sunny_talwar

May be use an expression like this:

=FirstSortedValue([Project Value], -Floor([Created on]))

Dimension = ID and Projected Month

arsallee3
Contributor III
Contributor III
Author

Awesome, so many functions that need to learn!

Loving the program and the community and look forward to being able to assist others myself in the future!