Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Lokesh_5045
Creator
Creator

Fill up the rows with values in existing fields

Hi Experts,

The requirement is quite simple. I have the data for current month and Null values for future months. My input table will be like this (take any random numbers if you want).

ID Month M1 M2 M3 M4
A July 33 23 5 99
A August - - - -
A September - - - -
A October - - - -

In the above table a few values need to be replaced with top row like below. My required output is like below.

ID Month M1 M2 M3 M4
A July 33 23 5 99
A August 23 5 99 0
A September 5 99 0 0
A October 99 0 0 0

 

I need this in load script. Please help me with script or any hints.

Labels (4)
2 Replies
vinieme12
Champion III
Champion III

can you post some sample data in excel that best represents the actual data you will be working with

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Lokesh_5045
Creator
Creator
Author

@vinieme12  Sample data also looks like this. But it contains 12 fields. Sharing the sample data.
In sheet 2, expected output is given.

Values are null beyond current month and we need to fill values based on current month data.
We shouldn't change past months data. We have to fill future months data based on current month as shown in sheet 2 in Excel.

Please refer sheet 1 (Input) and sheet 2 (Expected output) in the attached file.