Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Zaga_69
Creator
Creator

Dynamic average

Hi guys 🙂

I am trying to create a line reference in  a bar chart. This line reference should calculate the average of total purchases depending on the year selected. 

I tried sth like this:

=Avg({<CostElement={'0006000901', '0006014900'}>} sum(amount) )

However it does not work

Any idea,

BR,

Edi

3 Replies
forticarrion
Contributor II
Contributor II

Hello,

I created two combo charts whit this example, take a look.

pradosh_thakur
Master II
Master II

I cant open your qvw . Can you try the below , changed a few things in your expression
=Avg({<CostElement={0006000901, 0006014900},Year=$::Year>} amount )
Learning never stops.
Zaga_69
Creator
Creator
Author

Hi Pradosh

firstly, thank you for your answer and sorry for my late reply.

I will try it and will let you know if it works,

Best regards,

Edi