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: 
Anonymous
Not applicable

Variables that are not affected by filters

Hello

I am wanting to create a KPI showing the average value of all values in the field

and also another KPI which will show the average value from the values in the field which have been selected in the filter table

i.e.

KPI 1

KPI 2

Filter table

A

B

KPI 1 - Shows the average for all values and will not change when something is selected in the filter table 

KPI 2 - Shows the average and will be affected by the filter table

If its possible to do this any help would be appreciated

Thank you

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

kpi 1 : avg {1}Value) - this will always display the same result

Kpi 2 : avg(Value)

View solution in original post

3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

kpi 1 : avg {1}Value) - this will always display the same result

Kpi 2 : avg(Value)

aarkay29
Specialist
Specialist

lets say Filter Table field is Dim1

KPI1 - Avg({1<Dim1=>}Amount)

KPI2 - Avg(Amount)

ahaahaaha
Partner - Master
Partner - Master

Hi,

For example,

KPI 1:  Avg([Your expression])


KPI 2: Avg({1}[Your expression])