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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mismatch total ?

HI All,

I am getting the Total Mismatch, I have used sum(Distinct Value ) in the Expression..

Getting the Value in the Each & every month is correct, Only thing is getting mismatch in the Total.

Kindly help me on this..

Regards,

Helen

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

The reason for this behaviour will probably be the distinct key-word within your expression. If you really need it there you will need an aggr-function to eliminate the distinct-effect across the month. Try something like this:

sum(aggr(sum(distinct Value), Month))

- Marcus

View solution in original post

5 Replies
ajsjoshua
Specialist
Specialist

Hi Betty

what u r getting on sum(Value)

marcus_sommer
MVP
MVP

The reason for this behaviour will probably be the distinct key-word within your expression. If you really need it there you will need an aggr-function to eliminate the distinct-effect across the month. Try something like this:

sum(aggr(sum(distinct Value), Month))

- Marcus

ajsjoshua
Specialist
Specialist

Hi,

You can use advanced aggregation to get the sum of rows:

=Sum( Aggr( YourExpression, Type))

Not applicable
Author

sum(aggr(sum(value),month))

Not applicable
Author

Thanks Marcus.

Regards,

Helen