Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
oscarmqz
Creator III
Creator III

Take nth row from Aggr?

Hi All,

I have this aggr function

aggr(count(XXX)/sum(YYY),Date)

COUNT(XXX)/SUM(YYY) is calculating acheivement percent, what I'm looking for, is to get the date when it reached 98%, firstsortedvalue is not working (at least in the way I'm using it) because it is giving me the top date (equal to 100%). How can I limit the result of aggr only to be those >=98% so I can use firstsortedvalue.

Or if you have any other solution I'd really appreciate it, thanks in advance!

2 Replies
Not applicable

Could you share your qvw or some sample data?

oscarmqz
Creator III
Creator III
Author

Here it is, I'm trying the formula in the blue text box