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: 
Not applicable

Level of aggregation

Hello,

I am working on a report, but I have an issue which I I try to solve. I have several targets for each city which have to be compared to the actual figures. (f.e. number of car-thefts, actual 70 and target 100). Each city have to meet these targets. But next to the number of car thefts also the number of robberies, burglaries, etc. are measured and compared to the targets. So far so good....

CitytypeActualtargetPercentageTraffic Light
A# Car-thefts7010070%Green
A# Robberies6050120%RED
A# Burglaries307043%Green
B# Car-thefts15020075%Green
B# Robberies12013092%Green
B# Burglaries150135111%RED


But when I want to see the traffic lights for each city I want to see that the most negative (highest percentage) case is being used. So for both city A and B a red traffic light. Are there possibilities to say f.e. max(Percentage) for each Type. Despite the level of aggregation is changed in QV (City instead of Type), I would like to remain the lowest level of aggregation for determining the traffic light.

So the result would be:

CityPercentageTraffic Light
A120%RED
B111%RED


Is this possible in a normal way, without creating a variable for each dimension?

Thanks for your help!

1 Solution

Accepted Solutions
john_duffy
Partner - Creator III
Partner - Creator III

Hello.

See the attached sample applicaiton using aggr and rank. Let me know if this helps.

John.

View solution in original post

2 Replies
john_duffy
Partner - Creator III
Partner - Creator III

Hello.

See the attached sample applicaiton using aggr and rank. Let me know if this helps.

John.

Not applicable
Author

Hi John,

this is exactly what I needed, I only have to figure out how you did this, but I'll figure this out. Thanks for your help.

Regards,

Mark