Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bumin
Partner - Creator II
Partner - Creator II

how to calculate accumulated values per month

Hi,

I have the attached Excel-File

I want to calculate the accumulated value per AssetID month and year

The expected values are in column F (result in Qlikview).

can anyone create the formula for this

I have tried with peek values but I didn't got it.

thanks

Bumin

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try this:

tabelle:

LOAD AssetID,

     recno,

     value,

     month,

     year,

     if(Previous(AssetID)<>AssetID, value, rangesum(value,peek(acc_value))) as acc_value

FROM

     (biff, embedded labels, table is Sheet1$);


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Try this:

tabelle:

LOAD AssetID,

     recno,

     value,

     month,

     year,

     if(Previous(AssetID)<>AssetID, value, rangesum(value,peek(acc_value))) as acc_value

FROM

     (biff, embedded labels, table is Sheet1$);


talk is cheap, supply exceeds demand