3 Replies Latest reply: Aug 28, 2017 3:25 AM by Petter Skjolden RSS

    Deriving Calendars From Multiple Date Fields

    Josh Persinger

      I am trying to create a calendar with the same fields from three different date fields. 

       

      [MasterCalendar]:

        DECLARE FIELD DEFINITION Tagged ('$date')

      Fields

      Dual(Year($1), YearStart($1)) as [Year] Tagged ('$axis', '$year') ,

          Dual(Year($1)&'-'&Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),

          Month($1) AS [Month] Tagged ('$month', '$cyclic'),

          Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),

          Time($1) AS [Time],

          Time($1,'hh TT') AS [Hour];  

      DERIVE FIELDS FROM FIELDS %CALLDATETIME, %EVENTDATETIME, %LOGINDATETIME USING [MasterCalendar] ;

       

      This only creates the calendar for %CALLDATETIME.

       

      I also tried using 3 separate calendars deriving from one field each, and that does not work either. 

       

      Any ideas why this won't work?