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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of rows

Hi All

I have this data:

Hi All

I have this data:

in a table.I want to set an expression to have this result:

A -> 6 (sum of all Number with Period=A)

C -> 4 (sum of all Number with Period=C)

B -> 50 (sum of all Number with Period=B)

and so on..

How can I set the sum() ? Aggr ( sum (Distinct Number), Period) doesn't work..

Thanks

luca

in a table.I want to set an expression to have this result:

A -> 6 (sum of all Number with Period=A)

C -> 4 (sum of all Number with Period=C)

B -> 50 (sum of all Number with Period=B)

and so on..

How can I set the sum() ? sum (Number) or Aggr ( sum (Distinct Number), Period) doesn't work..

Thanks

luca

Messaggio modificato da luca

10 Replies
maxgro
MVP
MVP

use a chart (straigth table) with

dimension      Period

expression     sum(Number)

Not applicable
Author

I'va already done that, but i.e. for A I have 300, not 50..

maxgro
MVP
MVP

post your qlikview doc, if possible

I think you have some other fields other than Period

Not applicable
Author

Hi,

Try this it may helpful....

sum(total aggr(nondistinct sum(Number),Period,date))

Thanks,

ASHOK

arjunkrishnan
Partner - Creator II
Partner - Creator II

Hi luca,

Sum(Number) -> Use This Expression in Straight Table

Aggr(Sum(Number),Type)

Not applicable
Author

Yes, I have another field in my table:

I thought it was not important..

Not applicable
Author

TRY THIS ....

Anonymous
Not applicable
Author

Hi,

Take a straight table. Use period as dimension and sum(value) as Expression..U should get it.

Not applicable
Author

Instead of using Aggr function, use total function.

This will show the sum of number across period.

Try the below expression:

sum(total<Period>number)

Hope this will help you..!