Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is the best practice for working with date time stamp data in fact tables.
Let us say that we have a fact table (> 100,000 records) with a number (ten or more) of fields containing date timestamp data (for example 2/08/2006 7:07:00 PM).
If I want to caluclate the duration between a number of these fields should I;
What about grouping these dates?
Let us say we have the following date timestamps for the first 4 records in our fact table;
I would like to report these on a 'Day', 'Month' and 'Year' basis and would need to aggregate them accordingly. Should I;
Hi,
FOR TIME DURATIONS
For calculating TIME DURATIONs, check for Interval Function, that will help you identify the difference in Days and Hours.
Try doing it at the Load script as much as possible because, that way the result are available for computation later in charts. Doing it at chart level will lead to more calculations/ memmory issue while the chart is loading.
GROUPING TIME DURATIONS
For Groping Time Durations, u can create an Additional Date Fields using Date(Floor(DateField)) As NewDateField syntax in Load Script.
Again to create different Time Dimensions, you can create a Master Calendar in your data model. search for Master Calendar in Community (http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar).
Thanks....