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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Cummulative sum on Total

Hi,

Can anyone help me to write the following expression :

budget.PNG

Budget Value is calculated with the following variable :

vPerFormulaBud : sum({$<TranType = {'Budget_$(vAmountType)'},CurrentPer = {1},Fiscal_Year = {$(=max(Fiscal_Year))}>} Amount)

I need 1047369499/26

  1. i.e Total Budget Value / Trading Day =    40283442.26

So,

Trading Day 1 : 40283442.26

Trading Day 2 : 80566884.52

..

..

..

..

Trading Day 26 : 1047369499

6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Create another variable

vPerFormulaBudTotal : =sum({$<TranType = {'Budget_$(vAmountType)'},CurrentPer = {1},Fiscal_Year = {$(=max(Fiscal_Year))}>} Amount)

Use that variable in your chart expression: = $(vPerFormulaBudTotal) / (27-[Trading Day])


talk is cheap, supply exceeds demand
suvechha_b
Creator III
Creator III
Author

sample.PNG

Sales Vaue is working correct by using straight table and full accumulation.

But my requirement is in Budget Value :

Output :

Trading Day 1 : 40283442.26

Trading Day 2 : 80566884.52

..

..

..

..

Trading Day 26 : 1047369499



suvechha_b
Creator III
Creator III
Author

No its not working .

suvechha_b
Creator III
Creator III
Author

No its not working .

It looks like the following image :sample.PNG

But my requirement is in Budget Value :

Output :

Trading Day 1 : 40283442.26

Trading Day 2 : 80566884.52

..

..

..

..

Trading Day 26 : 1047369499

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Post a qlikview document that demonstrates the issue.


talk is cheap, supply exceeds demand
suvechha_b
Creator III
Creator III
Author

I tried to pull data for particular product as my model is to long to upload.

PFA.