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

Generate data for those month which is not in table

Hi ,

Please help me to resolve the below issue:

I have a table which is comming monthly bases, but not continuouly bases. for example : we are getting data for Jan but till Aprile we are not getting any data , so for those moth we have to repeat Jan data, other senario is may be we are not getting any data till december.

in that case we have to repeat the whole data for full year.

Example:

MonthItemSub itemCountryAct SaleForecast Sale
1AXYZIndia030
1BXYZUK025
1APQRUSA010
1CQWEFrance040
1DRSTUAE020

MonthitemSub ItemCountryAct SaleForcast Sale
1AXYZIndia300
2BXYZUK100
3CQWEFrance250
4DRSTUAE200
5APQRUSA300
6BXYZUK450
7CPQRUSA400
8DQWEFrance150
9ARSTUAE25

0

In the Final result I want to repeat the first table data till 9th month

Output Reult:

MonthItemSub itemCountryAct SaleForecast Sale
1AXYZindia3030
1BXYZUK25
1APQRUSA10
1CQWEFrance40
1DRSTUAE20
2AXYZIndia30
2BXYZUK1025
2APQRUSA10
2CQWEFrance40
2DRSTUAE20

Like the above output our value will repeat till September.

Please help me to generate the data for moth which is not availble in table.

Thanks & Regards,

Nisha

24 Replies
nisha_rai
Creator II
Creator II
Author

Hi,

Please have a look the creen shot, even when the column is added that time it self it's not generating the missing month

MK_QSL
MVP
MVP

I not getting.. can you upload the qvw?

d_prashanthredd
Creator III
Creator III

Hi Nisha,

Add if null peek expression for other columns as we added for data column.

if(.. Peek()... ) as col1, if(.. Peek().. ) as col2.

Thanks,.

d_prashanthredd
Creator III
Creator III

Is it working now..??

nisha_rai
Creator II
Creator II
Author

Hi Prashanth,

No , it's not working, i tried the below code which is suggested by Manish and done some changes,

it's working now.