Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fill in missing month/year with previous session data

I'm sure it isn't that hard, but somehow I'm not getting what I want . . .

I hope someone can shine a little light on my little problem so I can go further.

The QlikView I have has some pre-calculations in which I want to add something.

I have a table containing something like shown below:

serialnumber
lastsession

lastsessiondate

monthyearConfiguration

123-456-789425612-06-2011 11:56:1806-2011CONF_1...
123-456-789468718-09-2011 07:16:5409-2011CONF_2a...
123-456-789568922-11-2011 15:23:2211-2011CONF_2b...
234-567-890426819-06-2011 12:55:3206-2011CONF_1...
234-567-890437005-07-2011 21:15:43

07-2011

CONF_1a...
234-567-890448116-08-2011 10:21:5308-2011CONF_2a...
345-678-901469022-09-2011 09:51:1209-2011CONF_2a...
345-678-901501216-10-2011 18:32:4510-2011CONF_2b...
345-678-901593405-12-2011 19:37:11

12-2011

CONF_3...
..................

What I'm looking for is that the table expands with the missing month/years for the serialnumber, containing the lastsession and configuration info of the

previous session.

See sample below how it should look:

serialnumberlastsessionlastsessiondatemonthyearconfiguration
123-456-789425612-06-2011 11:56:1806-2011CONF_1...
123-456-789425612-06-2011 11:56:1807-2011CONF_1...
123-456-789425612-06-2011 11:56:1808-2011CONF_1...
123-456-789468718-09-2011 07:16:5409-2011CONF_2a...
123-456-789468718-09-2011 07:16:5410-2011CONF_2a...
123-456-789568922-11-2011 15:23:2211-2011CONF_2b...
123-456-789568922-11-2011 15:23:2212-2011CONF_2b...
234-567-890426819-06-2011 12:55:3206-2011CONF_1...
234-567-890437005-07-2011 21:15:4307-2011CONF_1a...
234-567-890448116-08-2011 10:21:5308-2011CONF_2a...
234-567-890448116-08-2011 10:21:5309-2011CONF_2a...
234-567-890448116-08-2011 10:21:5310-2011CONF_2a...
234-567-890448116-08-2011 10:21:5311-2011CONF_2a...
234-567-890448116-08-2011 10:21:5312-2011CONF_2a...
345-678-901469022-09-2011 09:51:1209-2011CONF_2a...
345-678-901501216-10-2011 18:32:4510-2011CONF_2b...
345-678-901501216-10-2011 18:32:4511-2011CONF_2b...
345-678-901593405-12-2011 19:37:1112-2011CONF_3...
...............






thx in advance!!

Anita

1 Reply
Sokkorn
Master
Master

Hi Anita,

Maybe I'm not get your point. But let try this http://community.qlik.com/message/171737#171737

Regards,

Sokkorn Cheav