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

Sum expressions

hi,

I have calculate  sum of data. Some values are same so i cannot use DISTINCT as well. If I use sum(field) , it is not displaying the correct data. please help me with the expressions.

thanks

7 Replies
Not applicable
Author

Dear thejaswini,

Can you post the sample file.

so that we can help you.

Thanks,

Mukram.

Not applicable
Author

hi

Consider these 3 field values.

35.40, 35.79 & 35.79

I have to take the sum . If i use sum(filed), it is not matching with the actual sum ( ie., . 106.98). I am getting 14777 as the sum .

If i use sum(DISTINCT(field)), all 3 values will not be taken becoz 2 values are similar.

thanks

Not applicable
Author

Hi,

try using sum(TOTAL <field>).

Regards,

Anju

Not applicable
Author

Dear thejaswini,

if sum the above three Values it will give you 106.98.

but why your getting 14777 i don't no..

i

kindly find the attachment .

i hope it will help you.

Thanks,

mukram

Not applicable
Author

Hi anju,

I tried using, but it dint get resolved

Not applicable
Author

Hi Thejaswini,

     Could you please post your qvw file?

Regards,

Anju

khadeer
Specialist
Specialist

It is problem in data model. Post ur QVW. Then it helps me to resolve ur issue.