Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
RichardLee
Creator
Creator

Static Charts

I have several charts which use

 

If([Date.Size]='4mm',Avg([Actual Cost £]))

or similar to get the data. How can I make the chart visual and data stay regardless of the filters selected.   

Labels (2)
15 Replies
Angela_Zhou
Contributor III
Contributor III

Have you tried? with correction 

     Avg({1} If( [Date.Size]='4mm', [Actual Cost £]) )

Here, the set identifier {1} = ignore any selection and count all data, dimension still affect your AVG result

 

Angela Z.
RichardLee
Creator
Creator
Author

Thanks for the reply. I have tried this and the chart still filters.

edwin
Master II
Master II

is Date.Size also used as a filter?  if so use set analysis:

Avg({1<Date.Szie={'4mm'>}[Actual cost])

RichardLee
Creator
Creator
Author

Not sure that this would work.

edwin
Master II
Master II

no worries, eventually someone will be able to help.  posting sample data as well will do wonders

vinieme12
Champion III
Champion III

As soon as you use and if() block, this will respond to all selections , do the filtering in Set Analysis

as below

Avg({1<[Date.Size]={'4mm'}>} [Actual Cost £])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Angela_Zhou
Contributor III
Contributor III

@vinieme12 

You are right on if block outside the AVG() function.  It should work we put if block inside AVG() as my correction above like, Avg({1} If( [Date.Size]='4mm', [Actual Cost £]) )

Angela Z.
vinieme12
Champion III
Champion III

This will have a performance hit, best to use set analysis

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Angela_Zhou
Contributor III
Contributor III

@vinieme12 

I am agree with you about performance better by using Set Analysis.  Just try to show new user how AVG + if will still work if there is no performance concern.

Angela Z.