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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
jduenyas
Specialist
Specialist

Is it a glitch or bad set analysis

 

In the attached QVW (some of the data encrypted) the chart shows Division "Bitzu" (in red) calculated value 1.00 for the month of Dec 2018. When selecting this Division from the List Box, the value for Dec 2018 changes to 3.67 (which is the correct value.)

Before selecting Bitzu

Capture1.JPG 

and after selecting the division

Capture2.JPG 

This is obviously wrong. The calculated value should not change when selecting the Division.

QVW Attached

Does anyone understand what is going on?

Thanks

 

 

1 Solution

Accepted Solutions
sunny_talwar

Try this expression

=Sum(Aggr(Accuracy, ID, MonthYear, Div))/Count(DISTINCT ID)

View solution in original post

5 Replies
sunny_talwar

Try this expression

=Sum(Aggr(Accuracy, ID, MonthYear, Div))/Count(DISTINCT ID)
jduenyas
Specialist
Specialist
Author

Yes it does take care of the miscalculation but it should not be calculated this way. None of the other divisions present this error and - selecting both Division AND Dec  2018 from the MonthYear shows in the table that the data does not have to be further aggregated. (Or does it?)

Thanks

jduenyas
Specialist
Specialist
Author

In the meantime I will use your solution as it does take care of the issue (and reports are due out today... 🙂 ) but I am not completely satisfied with that.

Thanks though.

 

 

sunny_talwar

 

I am unable to find the exact issue, but to me this looks like a grain mis-match problem... you can read about this here

Pitfalls of the Aggr function

jduenyas
Specialist
Specialist
Author

OK. I found where the error is.

The ID which is supposed to be unique actually is not! and that creates the problem.

Once again, thanks for looking into it.

Josh