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: 
Not applicable

Partial Sum

Hi everyone,

Could any one please help?

My problem is that the partial sum in the pivot table shown me a value "-" (Null) . But I have figures for every rows above it. Also, there are all numbers as well. There are field data from excel file directly. Do anyone have any thoughts?

Another question:

I have used sum(Amount)/sum(total<Field="A">Amount) in my expression. It works fine. And I can get the partial sum of it. But when I use it for further calculation, it doesn't work. For exampl

expression = sum(Amount)/sum(total<Field="A">Amount) + Cash

Both work fine individually, but not after addition....why....I get "-" for every single cell

Many thanks,

Ivan

8 Replies
Not applicable
Author

Hi Ivan,

maybe you should take SUM(Cash) as well. in stead of Cash only.

If you have more values of Cash QV doenst know which field to take

Rey-man

Not applicable
Author

Thanks for your reply.

I have solved that problem by chance. What I had before: Column(1) + Column(2), where Column(1) is the one with long formula, Column(2) is Cash.

They both work fine individually, but not after addition.

What I have done was: demote Column(1) to Column(3). Then use formula Column(3) + Column(2) (Cash has no change). By magic, it works suddenly.

However, I am still working on the problem on partial sum...I have figures one every rows, but partial sum gives me "-".....I am try to change the origin data in Excel from formula to value (hope i can solve it by luck again).

Thanks,

Ivan

Not applicable
Author

Hi

In the columns where data is not coming, say column1; is the expression:

=column1

If it is then change it to =Sum(column1) and it should work.

Not applicable
Author

In some cases maybe your denominator is 0 which means a DIV /0 that can give you a null value ?

Not applicable
Author

Thanks for everyone's helps. I have solved it. The reason is that data are from from level. Therefore, the expression total in pivot table is not working. To solve it, I have use aggr in my expression.

Ivan

Not applicable
Author

Hi,

I am stuck with similiar issue, can you pls share the expression sample ?

Thanks

jeswanth

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

Aggr is easy and works with one or more dimensions:

Sum(Aggr(your_expression),Dimension1,Dimension2,...))

Not applicable
Author

select that field on which you want to do partial sum and tick the partial sum box in pivote tables properties