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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

Why does my MIN value from an AGGR return a different result compared to the table result?

Hi all,

For the Min value I get 102365... as a number when the number expected is 1187,991 that you can see in the last expression of the RangeSum column.

Anyone know why this is?

In the example 2 I get a perfectly correct output as Min so I am not sure why the difference in result for example 1.

Any help please?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Because of the load order of your Month field. Apr is probably the first month encountered in your source data.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
sunny_talwar

Can you share a qvw where we can see this behavior?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Because of the load order of your Month field. Apr is probably the first month encountered in your source data.


talk is cheap, supply exceeds demand
jblomqvist
Specialist
Specialist
Author

Hi Gysbert I see your point because April contains that exact number if I do Sum(Sales), but should it not still return 1187,991 because it is the minimum value from my rangesum expression?

Maybe I do not understand something about this.

swuehl
MVP
MVP

That's only the minimum number if you order your dimension in chronological order, as shown in the chart.

Try sorting the dimension in load order (sort tab), like the aggr() function will sort its dimension values.

The aggr() function will not necessarily use the same dimension sort order as your chart!

jblomqvist
Specialist
Specialist
Author

Thank you I understand now and changed the order of Months and it works.

Very good lesson.