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

Min/Avg based on group of values


Hi All,

We are having the requirement to group the premium based on the client and take the average and Min. I need to do this at UI level as there will be more filters attached.

I have attached a sample qvw. Please let me know if any more information is required.

Thanks,
Sijo

1 Solution

Accepted Solutions
rubenmarin

Hi Sijo, you can use:

if(BenchMarkingBand='Minimum',Min(Aggr(Sum(Premium), [Client Name])),

    if(BenchMarkingBand='Average', Sum(Premium)/ Count(DISTINCT [Client Name])))

View solution in original post

2 Replies
rubenmarin

Hi Sijo, you can use:

if(BenchMarkingBand='Minimum',Min(Aggr(Sum(Premium), [Client Name])),

    if(BenchMarkingBand='Average', Sum(Premium)/ Count(DISTINCT [Client Name])))

Not applicable
Author

Thanks