Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Less than date in set analysis

Hi,

I've created the following table

PeriodPeriod End Date
Mar 201430/03/2014
Apr 201430/04/2014
May 201431/05/2014
Jun 201430/06/2014
Jul 201431/07/2014
Aug 201431/08/2014
Sep 201430/09/2014
Oct 201431/10/2014
Nov 201430/11/2014
Dec 201431/12/2014
Jan 201531/01/2015
Feb 201528/02/2015
Mar 201531/03/2015

Which is aimed at providing a view over the previous 12 months, the table was created through script and links to another table by the 'Period' column.

I have a ledger table that includes entries, I want to include a new column called 'Inventory Value', this needs to be the sum of all entries before and including the 'Period End Date', so therefore is I had an entry for 05/011/2014 it would appear in Nov 2014, Dec 2014, Jan 2015 etc.

I've tried the following formula Sum({$<[ILE.Posting_Date] = {"<=$([Period End Date])"}>} ILE.Cost_Amount_Actual) however the result is no different to Sum(ILE.Cost_Amount_Actual) since it is only summing the entries for that period.

What I have I missed? I haven't wrote a QlikView app for a few years so out of practice.

Cheers

Steve

1 Reply
Gysbert_Wassenaar

Set analysis expressions calculate the set at the chart level, not the row level. See this document for more information: Calculating rolling n-period totals, averages or other aggregations


talk is cheap, supply exceeds demand