Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ahmada
Contributor II
Contributor II

Outgoing stocks with Start & End-Date

Hello,

i have a table that lists my stocks by item and location, which looks something like this:

ArtikelnrLocationStockStart-DateEnd-Date
001Halle-A10001.01.201929.01.2019
001Halle-A6030.01.201905.02.2020
001Halle-A3006.02.202025.02.2020
001Halle-B1003.01.201901.02.2020
001Halle-B5002.02.202025.02.2020

 

Start and end date indicate how long the stock was the same. Now I wanted to generate a table from this, which lists the stock for each day. This I wanted to use for a line chart. It should look like this:

ArtikelnrLocationStockDate
001Halle-A10001.01.2020
001Halle-A10002.01.2020
001Halle-A10003.01.2020
::::
001Halle-A10029.01.2020
001Halle-A6030.01.2020

 

I'd appreciate any help you could give me.

Regards

ahmada

1 Solution

Accepted Solutions
ahmada
Contributor II
Contributor II
Author

Thank You.

i solved it with this:

load
%Art_Lag_Dat,

MengeKumTag as Stock,
date(StartDate+ iterno() - 1) as Date
Resident Lagerbestand
while StartDate + iterno() - 1 <= EndDate;

View solution in original post

2 Replies
lorenzoconforti
Specialist II
Specialist II

ahmada
Contributor II
Contributor II
Author

Thank You.

i solved it with this:

load
%Art_Lag_Dat,

MengeKumTag as Stock,
date(StartDate+ iterno() - 1) as Date
Resident Lagerbestand
while StartDate + iterno() - 1 <= EndDate;