Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
marcus_sommer

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

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