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: 
surajdhall
Contributor III
Contributor III

copy rows for missing months as in previous

Hi Experts,

Data:

LOAD * INLINE [

Product, Date, Sales

Tea, 01/01/2017, 10

Tea, 02/01/2017, 10

Coffee, 01/01/2017, 30

Coffee, 01/01/2017, 40

Coffee, 02/01/2017, 50

Tea, 01/02/2017, 10

Tea, 01/04/2017, 40

];


expected ouput-

Data:

LOAD * INLINE [

Product, Date, Sales

Tea, 01/01/2017, 10

Tea, 02/01/2017, 10

Coffee, 01/01/2017, 30

Coffee, 01/01/2017, 40

Coffee, 02/01/2017, 50

Tea, 01/02/2017, 10

Coffee, 01/02/2017, 30

Coffee, 01/02/2017, 40

Coffee, 02/02/2017, 50

Tea, 01/03/2017, 10

Coffee, 01/03/2017, 30

Coffee, 01/03/2017, 40

Coffee, 02/03/2017, 50

Coffee, 01/04/2017, 30

Coffee, 01/04/2017, 40

Coffee, 02/04/2017, 50

Tea, 01/04/2017, 40

];

In the previous dataset, there is no Feb data for Coffee. I want the same data as in the previous month(Jan) ie. 3 rows with sales 30,40,50. Similarly for Tea. The output has red rows that are expected to get generated.So the data should be brought forward till the max month in the dataset.

I looked into generating missing data by HIC, but not sure how to implement the above scenario.

Please help!

1 Solution

Accepted Solutions
fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

Try with attached file.

Saludos.

View solution in original post

2 Replies
fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

Try with attached file.

Saludos.

surajdhall
Contributor III
Contributor III
Author

Thanks:)