Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
alexandermllr
Creator
Creator

Qlikview Split value into 15 minutes

Hello,

I want to split the value between two timestamps into 15 minutes, so I have 96 records per day.

I have this table:

IDTimeStamp_StartTimeStamp_EndValue
12345601.03.2020 05:4201.03.2020 06:11567
98765401.04.2020 02:5701.02.2020 00:1012577,68

 

I want this table:

IDInterval_StartInterval_EndValue
12345601.03.2020 05:1501.03.2020 05:290
12345601.03.2020 05:3001.03.2020 05:4458,65
12345601.03.2020 05:4501.03.2020 05:59293,27


I also need a record when the value is 0, so for everyday 96 records.

I really hope someone can help me!

Thanks!

Labels (4)
3 Replies
Saravanan_Desingh

I'm not sure how the Value is calculated here. But see how the Bucket can be created.

tab1:
LOAD *
	 ,Date(Floor(Date#(TimeStamp_Start, 'MM.DD.YYYY hh:mm'))) As Date_Start
	 ,Date(Floor(Date#(TimeStamp_Start, 'MM.DD.YYYY hh:mm'))+15*(IterNo()-1)/(24*60)) As Bucket_Start	 
While IterNo()<=96
	 ;
LOAD * INLINE [
    ID, TimeStamp_Start, TimeStamp_End, Value
    123456, 01.03.2020 05:42, 01.03.2020 06:11, 567
    987654, 01.04.2020 02:57, 01.05.2020 00:10, "12577,68"
];
alexandermllr
Creator
Creator
Author

Hi,

the "new" Value should be calculated by the minutes between TimeStamp_Start and TimeStamp_End.

Value / (TimeStamp_End-TimeStamp_Start)

alexandermllr
Creator
Creator
Author

Can someone please help me!