" /> INFOMART - Time Dimensions - Genesys CTI User Forum

Author Topic: INFOMART - Time Dimensions  (Read 5430 times)

Offline gustav

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
INFOMART - Time Dimensions
« on: December 10, 2008, 09:05:16 PM »
Advertisement
Has anyone tried to create interval reports using the TIME_OF_DAY dimension in GIM?  It has a record for every minute on the day, however, there is no reporting label column like the DATE_TIME table has.  Ie. I want a report off the Interaction_Segment table using TIME_OF_DAY to look like:

Interval Label    Total
12:00 - 12:30      150
12:30 - 01:00      204
01:00 - 01:30      178

etc...

tony

  • Guest
Re: INFOMART - Time Dimensions
« Reply #1 on: December 11, 2008, 02:07:01 PM »
I think you need to be looking for Primary and Foreign Keys within the Tables you want to extract the data from...? Interaction_Segment contains many different permutations of the date/time key and using the TIME_OF_DAY Table as the reference point should mean you have a single Primary>Foreign Key available to both.

Which Fields in which Tables are you referring to, exactly?

Tony

Offline gustav

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: INFOMART - Time Dimensions
« Reply #2 on: December 22, 2008, 07:19:27 PM »
If you look at the DATE_TIME dimension table it breaks down intervals.  If you look at the TIME_OF_DAY dimension (which interaction_segment_fact uses)  It has numeric intervals, but not english labels that can be used for a final report.  It would be easy to create a custom extension table for this purpose, but i dont see the same labels that exist in the DATE_TIME table:

ie. DATE_TIME table, LABEL_YYY_MM_DD_HH24_30INT column.  Im using the DATE_TIME table as a dimension of MEDIATION_SEGMENT_FACT, but i cant link this dimension to INTERACTION_SEGMENT_FACT (no surrogate key).

tony

  • Guest
Re: INFOMART - Time Dimensions
« Reply #3 on: December 23, 2008, 01:55:17 PM »
Are you sure you are looking at Infomart Tables - and not ICON Tables...?

Offline gustav

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: INFOMART - Time Dimensions
« Reply #4 on: January 05, 2009, 06:55:01 PM »
Yes it is the InfoMart schema (7.6)

Offline eugene

  • Jr. Member
  • **
  • Posts: 85
  • Karma: 2
Re: INFOMART - Time Dimensions
« Reply #5 on: January 05, 2009, 07:58:38 PM »
Gustav, I think the date_time dimension table is only useful for the 1st & 2nd generation aggregated tables.  You should really be building your final report off of those anyways. 

If you're using the interaction_segment_fact table then I assume you're doing your own sql to aggregate??  How about creating your own date time label column by applying some logic against the GMT_START_TIME or GMT_END_TIME (depending on the rules you use).

tony

  • Guest
Re: INFOMART - Time Dimensions
« Reply #6 on: January 07, 2009, 07:40:37 AM »
Good point eugene...  I was a little confused as to why someone would want to use an external Darte/Time Table to reference as a look-up when Date/Times are available (in quite a few different formats) within the Interaction_Segment_Fact Table itself...

Tony

Offline gustav

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
Re: INFOMART - Time Dimensions
« Reply #7 on: January 15, 2009, 06:18:32 PM »
Thanks, Im not using the AGG tables because they are too limited (no custom dimensions, missing metrics, and metrics calculated differently than we need them).

As for the data/time dimension - I want to be consistent with a dimensional model using surrogate keys to a time dim table vs, leverage the database time/date conversion processing at run time which would just not work with the amound of data we are using. 

I dug up some information on the GIM user guide which explicitly shows these dimensions used on the base tables - I have been able to use them successsfully, but I may just try to build out my own conformed date/time dim.