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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Running subtotal count expression help

Hello,

I have a table with data and I am trying to get a running subtotal of the count in column F1 and use that as the denominator. The problem I have is if, I use the TOTAL function is gives me the Total value (205) as the denominator for all rows.

Here is the table: (F1 Expected Subtotal is what I am looking for)

DateF1F1 Expected SubtotalF2
Date129294
Date223528
Date317699
Date4158413
Date5139720
Date63112821
Date72715426
Date81616829
Date92018832
Date101520336
Date11620536


Here is the formula that I am using: (Date is the dimension)

1. Sum(F2)/Sum(F1) - this formula only calculates the percentage for each month.

2. Sum(F2/Sum(Total F1) - this is the formula that give me 205 as the demoninator for all Dates.

Is there another expression or something I am missing?

1 Reply
johnw
Champion III
Champion III

The sum(total F1) is telling QlikView that you want to ignore the dimension (Date) and just return the total of the entire column. An easy way to get a running total is to just turn on full accumulation. However, I don't think that will let you use the running total in another expression. To get a running total that you can use in another expression, I think you need to add a Running Total column with this expression:

rangesum(F1,above("Running Total"))