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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filling in Date Ranges

I am building a dashboard to calculate MPG for trucks.

The data comes in bursts and not linear in nature.

I have attached the QVD file and need to manipulate it within the load script.

fields include MPG, miles, consumed total, drive time and Driver code. As well as a startdate and an EndDate field.

What i would like to do is make the data continuous.

what i have now:

Start Date - 10/19/09

EndDate- 10/26/09

MPG- 9.526

Driver- PATAN

WHAT I NEED (from above):

date- 10/19/09 MPG- 9.526 Driver-PATAN

date- 10/20/09 MPG- 9.526 Driver-PATAN

date- 10/21/09 MPG- 9.526 Driver-PATAN.... Until 10/26/09

Then @ 10/27/09 When a new period starts:

10/27/09 MPG-10.5 Driver-PATAN,.....

Basically i just need to fill in space in between ranges with the same info for every day.

What do you suggest?

Here is a sample of the QVD

%UnitDateMPGUnitNoMPGDriverCodeMPGStartDateMPGEndDateMPGWkStartMPGWkEndMPGOverRevTimeMPGTripCountMPGTotalDistanceMPGDrivingTimeMPGEngineTimeMPGPTOFuelConsumedMPGFuelConsumedMPGParkedIdleTimeMPGShortIdleMPGInterTripIdleMPGMovingTimeMPGIdleFuelGallons
REEF VAN 639987REEF VAN 6MORMAR5/25/20096/23/20096/22/20096/29/200912443202032131433619
REEF VAN 940004REEF VAN 96142852885/16/20097/10/20097/6/20097/13/2009122160214237021015152042
TEST CART39948TEST CARTWIGGCH4/16/20095/15/20095/11/20095/18/20099916155917841821026001212172314
104003210BURERD8/5/20098/7/20098/3/20098/10/20090654370288407328517965420
20039960200ENGE5/20/20095/27/20095/25/20096/1/2009312362702740320002531
20039961200ENGE5/27/20095/28/20095/25/20096/1/200974424452476049018184383
20039979200ENGE5/28/20096/15/20096/15/20096/22/200910464969169501010006711
20039987200ENGE6/15/20096/23/20096/22/20096/29/200913773580182001070007627
20039993200ENGE6/23/20096/29/20096/29/20097/6/20098236399742124303057425454409819
20040007200ENGE7/9/20097/13/20097/13/20097/20/200954152322233427460363415400230834
20040009200ENGE7/13/20097/15/20097/13/20097/20/20091811325529807048414328243941
20040022200ENGE7/15/20097/28/20097/27/20098/3/200952222402247535260339122771054241198
20040023200ENGE7/28/20097/29/20097/27/20098/3/200995649693114009262744466446
20040036200ENGE7/29/20098/11/20098/10/20098/17/20095636567267460104021216913
20040045200ENGE8/11/20098/20/20098/17/20098/24/2009651913431615187302294107260150934
20040049200*GIXX8/20/20098/24/20098/24/20098/31/2009342599610305066772


2 Replies
Not applicable
Author

THIS IS A BETTER SAMPLE

MPGUnitNoMPGDriverCodeMPGStartDateMPGEndDateMPGTotalDistanceMPGFuelConsumed
3760WALLY8/3/20098/10/20091713229
3760WALLY8/10/20098/18/2009913115
3760WALLY8/18/20098/24/200957299
3760WALLY8/24/20098/31/20092644379
3760WALLY8/31/20099/8/20091777270
3760WALLY9/8/20099/14/2009912109
3760WALLY9/14/20099/17/20091366171
3760WALLY9/17/20099/21/20091248153
3760WALLY9/21/20099/25/20091362193
3760WALLY9/25/20099/28/20091102154
3760WALLY9/28/200910/1/200935944
3760WALLY10/1/200910/5/20091429179
3760WALLY10/5/200910/12/20092275351
3760WALLY10/13/200910/19/2009907114
3760WALLY10/19/200910/26/200970791
3760WALLY10/26/200911/3/20091008131
3760WALLY11/3/200911/5/20091238159
Not applicable
Author

THIS IS A BETTER SAMPLE

MPGUnitNoMPGDriverCodeMPGStartDateMPGEndDateMPGTotalDistanceMPGFuelConsumed
3760WALLY8/3/20098/10/20091713229
3760WALLY8/10/20098/18/2009913115
3760WALLY8/18/20098/24/200957299
3760WALLY8/24/20098/31/20092644379
3760WALLY8/31/20099/8/20091777270
3760WALLY9/8/20099/14/2009912109
3760WALLY9/14/20099/17/20091366171
3760WALLY9/17/20099/21/20091248153
3760WALLY9/21/20099/25/20091362193
3760WALLY9/25/20099/28/20091102154
3760WALLY9/28/200910/1/200935944
3760WALLY10/1/200910/5/20091429179
3760WALLY10/5/200910/12/20092275351
3760WALLY10/13/200910/19/2009907114
3760WALLY10/19/200910/26/200970791
3760WALLY10/26/200911/3/20091008131
3760WALLY11/3/200911/5/20091238159