Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
cmano
Creator

Avg vg Avg(aggr()) at chart

Hello guys.

I have the below chart.

cmano_0-1671606036192.png

I use this expression : Avg([Mean value]) results on the chart.

No they want to convert this chart to boxplot. I use the box plot wizard and i take this chart

cmano_1-1671606200172.png

I create a table to verify the values : 

cmano_2-1671606259955.png

As you can see the mean values are not the same ( for middle measurements at least). 

The expression at boxplot is : Avg(Aggr([Mean value],[Order],[Mean value]))

I create bar charts with these 2 expressions and the results are not the same.

cmano_3-1671606517803.png

The questions are :

Why i take different results with different expressions of average?

How i can resolve this issue? I mean boxplot avg to be the same as bar chart?

thank you.

 

Labels (1)
1 Reply
hic
Former Employee

First, you need to ask average of WHAT? Of the transactions (the individual records)? Or of the average per Order? Those are different. See https://community.qlik.com/t5/Design/Average-Which-average/ba-p/1466654

Also, I think you want a different Aggr() call. I suggest not having [Mean value] as dimension. Also, make sure that you use an inner aggregation function. Hence:

Avg(Aggr(Avg([Mean value]),[Order]))

See https://community.qlik.com/t5/Design/Pitfalls-of-the-Aggr-function/ba-p/1463275