<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Deriving Calendars From Multiple Date Fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381887#M31435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a calendar with the same fields from three different date fields.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MasterCalendar]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; DECLARE FIELD DEFINITION Tagged ('$date')&lt;/P&gt;&lt;P&gt;Fields&lt;/P&gt;&lt;P&gt;Dual(Year($1), YearStart($1)) as [Year] Tagged ('$axis', '$year') ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(Year($1)&amp;amp;'-'&amp;amp;Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($1) AS [Month] Tagged ('$month', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time($1) AS [Time],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time($1,'hh TT') AS [Hour];&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS %CALLDATETIME, %EVENTDATETIME, %LOGINDATETIME USING [MasterCalendar] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only creates the calendar for %CALLDATETIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using 3 separate calendars deriving from one field each, and that does not work either.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why this won't work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 17:15:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-24T17:15:39Z</dc:date>
    <item>
      <title>Deriving Calendars From Multiple Date Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381887#M31435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a calendar with the same fields from three different date fields.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MasterCalendar]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; DECLARE FIELD DEFINITION Tagged ('$date')&lt;/P&gt;&lt;P&gt;Fields&lt;/P&gt;&lt;P&gt;Dual(Year($1), YearStart($1)) as [Year] Tagged ('$axis', '$year') ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(Year($1)&amp;amp;'-'&amp;amp;Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($1) AS [Month] Tagged ('$month', '$cyclic'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time($1) AS [Time],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time($1,'hh TT') AS [Hour];&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS %CALLDATETIME, %EVENTDATETIME, %LOGINDATETIME USING [MasterCalendar] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only creates the calendar for %CALLDATETIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using 3 separate calendars deriving from one field each, and that does not work either.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why this won't work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381887#M31435</guid>
      <dc:creator />
      <dc:date>2017-08-24T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deriving Calendars From Multiple Date Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381888#M31436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code works 100% unmodified for me when I test it in Qlik Sense 2017 June release. Are you absolutely sure that both the fields %EVENTDATETIME and %LOGINDATETIME are really date fields?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381888#M31436</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-24T18:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deriving Calendars From Multiple Date Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381889#M31437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm defining the three fields as follows, prior to trying to create the calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(Timestamp#(event_datetime,'YYYY-MM-DD hh:mm:ss')) as %EVENTDATETIME&lt;/P&gt;&lt;P&gt;Timestamp(Timestamp#(logindatetime,'YYYY-MM-DD hh:mm:ss')) as %LOGINDATETIME&lt;/P&gt;&lt;P&gt;Timestamp(Timestamp#(calldatetime,'YYYY-MM-DD hh:mm:ss')) as %CALLDATETIME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381889#M31437</guid>
      <dc:creator />
      <dc:date>2017-08-24T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deriving Calendars From Multiple Date Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381890#M31438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have some rows of data with the dates that you could supply as an LOAD * INLINE .... I still get things to work in my end ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 07:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deriving-Calendars-From-Multiple-Date-Fields/m-p/1381890#M31438</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-28T07:25:08Z</dc:date>
    </item>
  </channel>
</rss>

