Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total on Averaged value

Hi

I have data on this format

YearQuarterMonthAmount
2013Q11100
2013Q12120
2013Q2490
2013Q25140
2013Q37110
2013Q38100
2013Q41180
2013Q41290

I wanted tocreate result as

YearQuarterQuarter AverageYear Total
2013Q1110415
2013Q2115415
2013Q3105415
2013Q485415

Thanks,

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try: sum(total aggr(avg(Amount),Quarter))


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
whiteline
Master II
Master II

Create Chart. Use Year and Quarter as dimensions.

Quarter Average =Avg(Amount)

Year Total =Sum(total Amount)

Not applicable
Author

Hi Whiteline,

Thank you for your reply.

I tried to code that way. The result is attached.

Year Quarter avg(Amount) sum(TOTAL Amount)


103.75 830
2013 Q1 110 830
2013 Q2 115 830
2013 Q3 105 830
2013 Q4 85 830

Please advice. The toal column should be 415 rather 830.

Gysbert_Wassenaar

Try: sum(total aggr(avg(Amount),Quarter))


talk is cheap, supply exceeds demand