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: 
cbaqir
Specialist II
Specialist II

Data changes when picking months

Can someone please help me understand why the data would change when selecting a few months? This graph doesn't look right:

2018-10-02_14-57-48.jpg

When I zoom in on the last 12 months, the data changes but this looks better to me:

2018-10-02_14-15-20.jpg

1 Solution

Accepted Solutions
niclaz79
Partner - Creator III
Partner - Creator III

Hi,

You are using an aggregated average for each date that is dependent on the total amount of dates available. By changing the amount of dates the calculation changes for each period.

If you are expecting non-changing values I would either not use an aggr() expression or if you want to keep it I would ensure that the same amount of dates are used regardless of what is selected.

View solution in original post

2 Replies
niclaz79
Partner - Creator III
Partner - Creator III

Hi,

You are using an aggregated average for each date that is dependent on the total amount of dates available. By changing the amount of dates the calculation changes for each period.

If you are expecting non-changing values I would either not use an aggr() expression or if you want to keep it I would ensure that the same amount of dates are used regardless of what is selected.

cbaqir
Specialist II
Specialist II
Author

I am trying to show the Avg # of tickets (DEFECT_ID) created per person (DETECT_BY) per month and then the % released.

How else could I do that without the aggr?

=avg(aggr(Count({$<PRIMARY_DECISION_BODY-={'SMG Committee'}>}DISTINCT DEFECT_ID),DETECT_BY))