Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Cumulative quantity for each date/month between a date range

Hi guys,

I'm trying to create a chart in Qlikview that gives the accumulated quantity for each date between a date range. Let me explain.

I've an excel data which I've loaded into Qlikview and it looks like this :

QV_Data.PNG

How can I create a bar chart from this data to look like this :

QV_Chart.PNG

What if I want the accumulated quantity for each month between a date range ?

Any help would be much appreciated.

Thanks,

Ben

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Here you go

LOAD Quantity, Date(Date,'DD-MMM') as Date;

LOAD *, Date([Start Date] + IterNo() -1) as Date

While Date([Start Date] + IterNo() -1) <= [End Date];

LOAD * Inline [

Product, Quantity, Start Date, End Date

XYZ,10,02/03/2017, 02/15/2017

ABC,20, 02/13/2017, 03/03/2017

];


PS - Then, Create straight table with Date as Dimension and Sum(Quantity) as Expression

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

Here you go

LOAD Quantity, Date(Date,'DD-MMM') as Date;

LOAD *, Date([Start Date] + IterNo() -1) as Date

While Date([Start Date] + IterNo() -1) <= [End Date];

LOAD * Inline [

Product, Quantity, Start Date, End Date

XYZ,10,02/03/2017, 02/15/2017

ABC,20, 02/13/2017, 03/03/2017

];


PS - Then, Create straight table with Date as Dimension and Sum(Quantity) as Expression

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

That worked Anil. Thanks