Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am currently trying to show the average age of the top 5 oldest cases. I have a few fields including [Case Number] and [Age]. I believe that the result will be similar to:
Avg({<Age = {"=Rank(Age),4)<=5"}>}Age)
But this is not returning any result. I would really appreciate any help with this. Thank you
May be the same set expression is needed in the rank function also?
Avg({<Critical = {Yes}, Status = {Active}, Age = {"=Rank(Only({<Critical = {Yes}, Status = {Active}>} Age), 4) <= 5"}>} Age)
Try this... you had an additional parenthesis
Avg({<Age = {"=Rank(Age, 4) <= 5"}>} Age)
Thank you Sunny. That did help. I am now adding some set analysis but I am unable to get the result I want. This is what I have so far:
Avg({<Critical = {Yes}, Status = {Active}, Age = {"=Rank(Age, 4) <= 5"}>} Age)
May be the same set expression is needed in the rank function also?
Avg({<Critical = {Yes}, Status = {Active}, Age = {"=Rank(Only({<Critical = {Yes}, Status = {Active}>} Age), 4) <= 5"}>} Age)