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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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
MVP
MVP

maybe this:

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

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

2 Replies
agigliotti
MVP
MVP

maybe this:

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

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
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