Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Avg sum by quarter with set analysis

I am looking to calculate an expression that takes the average sum of Spend for (fieldname) [Expense Type] = {'Airfare'} by quarter aggregated by Employee Name. Right now I have what is shown below, but I am not sure where to incorporate quarter field.

Avg(aggr(Sum({<[Expense Type] = {'Airfare'}>} AmountSpend),[Employee Name]))

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

try this

Avg(aggr(Sum({<[Expense Type] = {'Airfare'}>} AmountSpend),[Employee Name], Quarter))

and let me know

sunny_talwar

If you are using Quarter as your dimension, I don't really see why you would quarter in the expression. Have you tried this with Quarter as your dimension? Is it not giving you the expected output?

ogster1974
Partner - Master II
Partner - Master II

This document might help.

QlikView Technical Brief - AGGR

Not applicable
Author

It is within a straight table

Not applicable
Author

Thanks Alessandro, I want to say this worked but I am doing some QC checks first.