Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Measure not working as desired

Hi all,

I wanted to plot an average monthly sum for a measure.

I used the below formula.

(AVG(

Aggr(Sum(IncidentCount),Month)

))



However, when I break this into a dimension, it does not work. Please see below images.

The first image gives me a false number however filtering into it gives me the right number. i.e. 24.58 is the correct average not 204k.

Where am I going wrong?

Snippet.PNG

1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

maybe this:

AVG( Aggr( Sum(IncidentCount), yourdimension, Month) )

View solution in original post

2 Replies
agigliotti
Partner - Champion
Partner - Champion

maybe this:

AVG( Aggr( Sum(IncidentCount), yourdimension, Month) )

lironbaram
Partner - Master III
Partner - Master III

hi

when using the aggr function

you need to use the desired dimension but also the chart dimensions

in your case

(AVG(

Aggr(Sum(IncidentCount),Month,TierDimension)

))


replace TierDimension with the real dimension field name