<?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 Re: Convert MMM-YY for autocalendar use in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960479#M79174</link>
    <description>&lt;P&gt;I seem to be having trouble calling the field which is created in the crosstable to change the format. As the field i need is created in the crosstable i am trying to create a table name for it so it can be used later.&amp;nbsp;I am calling my table SIOP which is then followed by a long loading statement.&lt;/P&gt;
&lt;P&gt;CrossTable (Month,Value, 9)&lt;/P&gt;
&lt;P&gt;[SIOP]:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;.................&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i am trying to call it later i am getting an error saying the table doesnt exist. Is there a step which i am missing out on ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load Date(Date#(Month,'MMM-YY'),'MMM-YY') as Month&lt;BR /&gt;FROM [SIOP];&lt;/P&gt;
&lt;P&gt;[autoCalendar]:&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 11:29:44 GMT</pubDate>
    <dc:creator>tomf122</dc:creator>
    <dc:date>2022-07-26T11:29:44Z</dc:date>
    <item>
      <title>Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960419#M79166</link>
      <description>&lt;P&gt;I am trying to use the auto calendar Qlicksense logic in the data loader but having trouble as the field (Month) I am using is currently in the format MMM-YY (eg May-22). Is there a way to adjust this field that I can then use the auto calendar. The field which holds the data is created by using the cross table function so unsure if this would complicate it further. Any guidance would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 09:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960419#M79166</guid>
      <dc:creator>tomf122</dc:creator>
      <dc:date>2022-07-26T09:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960421#M79167</link>
      <description>&lt;P&gt;Try using:&lt;/P&gt;
&lt;P&gt;Date(Date#(YourField,'MMM-YY'))&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960421#M79167</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-26T10:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960459#M79169</link>
      <description>&lt;P&gt;I have tried the below but still having issue's with it.&amp;nbsp;I am doing it in the correct location or does it need to be done before hand. Logic in red is what I have added. A sample value would be 'Apr-18'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[autoCalendar]:&lt;BR /&gt;DECLARE FIELD DEFINITION Tagged ('$date')&lt;BR /&gt;FIELDS&lt;BR /&gt;Dual(Year($1), YearStart($1)) AS [Year] Tagged ('$axis', '$year'),&lt;BR /&gt;Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),Num(Ceil(NUM(Month($1))/3),00)) AS [Quarter] Tagged ('$quarter', '$cyclic'),&lt;BR /&gt;Dual(Year($1)&amp;amp;'-Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [YearQuarter] Tagged ('$yearquarter', '$qualified'),&lt;BR /&gt;Dual('Q'&amp;amp;Num(Ceil(Num(Month($1))/3)),QuarterStart($1)) AS [_YearQuarter] Tagged ('$yearquarter', '$hidden', '$simplified'),&lt;BR /&gt;Month($1) AS [Month] Tagged ('$month', '$cyclic'),&lt;BR /&gt;Dual(Year($1)&amp;amp;'-'&amp;amp;Month($1), monthstart($1)) AS [YearMonth] Tagged ('$axis', '$yearmonth', '$qualified'),&lt;BR /&gt;Dual(Month($1), monthstart($1)) AS [_YearMonth] Tagged ('$axis', '$yearmonth', '$simplified', '$hidden'),&lt;BR /&gt;Dual('W'&amp;amp;Num(Week($1),00), Num(Week($1),00)) AS [Week] Tagged ('$weeknumber', '$cyclic'),&lt;BR /&gt;Date(Floor($1)) AS [Date] Tagged ('$axis', '$date', '$qualified'),&lt;BR /&gt;Date(Floor($1), 'D') AS [_Date] Tagged ('$axis', '$date', '$hidden', '$simplified'),&lt;BR /&gt;If (DayNumberOfYear($1) &amp;lt;= DayNumberOfYear(Today()), 1, 0) AS [InYTD] ,&lt;BR /&gt;Year(Today())-Year($1) AS [YearsAgo] ,&lt;BR /&gt;If (DayNumberOfQuarter($1) &amp;lt;= DayNumberOfQuarter(Today()),1,0) AS [InQTD] ,&lt;BR /&gt;4*Year(Today())+Ceil(Month(Today())/3)-4*Year($1)-Ceil(Month($1)/3) AS [QuartersAgo] ,&lt;BR /&gt;Ceil(Month(Today())/3)-Ceil(Month($1)/3) AS [QuarterRelNo] ,&lt;BR /&gt;If(Day($1)&amp;lt;=Day(Today()),1,0) AS [InMTD] ,&lt;BR /&gt;12*Year(Today())+Month(Today())-12*Year($1)-Month($1) AS [MonthsAgo] ,&lt;BR /&gt;Month(Today())-Month($1) AS [MonthRelNo] ,&lt;BR /&gt;If(WeekDay($1)&amp;lt;=WeekDay(Today()),1,0) AS [InWTD] ,&lt;BR /&gt;(WeekStart(Today())-WeekStart($1))/7 AS [WeeksAgo] ,&lt;BR /&gt;Week(Today())-Week($1) AS [WeekRelNo] ;&lt;/P&gt;
&lt;P&gt;DERIVE FIELDS FROM FIELDS&lt;FONT color="#FF0000"&gt; [Date(Date#(Month,'MMM-YY'))] &lt;/FONT&gt;USING [autoCalendar] ;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960459#M79169</guid>
      <dc:creator>tomf122</dc:creator>
      <dc:date>2022-07-26T11:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960468#M79170</link>
      <description>&lt;P&gt;I believe you would need to create an actual field using that syntax, and then derive from that field. I don't think you can derive based on a formula rather than a field (but I'm not sure, since I rarely if ever use the Derive option).&lt;/P&gt;
&lt;P&gt;Note that you could also convert what appears to be a text field into a date formatted with the same text format, and then use that field for both derive and display:&lt;/P&gt;
&lt;P&gt;Load Date(Date#(Month,'MMM-YY'),'MMM-YY') as Month&lt;/P&gt;
&lt;P&gt;From YourTable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960468#M79170</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-26T11:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960479#M79174</link>
      <description>&lt;P&gt;I seem to be having trouble calling the field which is created in the crosstable to change the format. As the field i need is created in the crosstable i am trying to create a table name for it so it can be used later.&amp;nbsp;I am calling my table SIOP which is then followed by a long loading statement.&lt;/P&gt;
&lt;P&gt;CrossTable (Month,Value, 9)&lt;/P&gt;
&lt;P&gt;[SIOP]:&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;.................&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i am trying to call it later i am getting an error saying the table doesnt exist. Is there a step which i am missing out on ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load Date(Date#(Month,'MMM-YY'),'MMM-YY') as Month&lt;BR /&gt;FROM [SIOP];&lt;/P&gt;
&lt;P&gt;[autoCalendar]:&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960479#M79174</guid>
      <dc:creator>tomf122</dc:creator>
      <dc:date>2022-07-26T11:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960500#M79179</link>
      <description>&lt;P&gt;I'm not quite sure what you're doing inside the Crosstable section, so I can't really say. You could always do this the long way around:&lt;/P&gt;
&lt;P&gt;SIOP:&lt;/P&gt;
&lt;P&gt;Load YourStuff&lt;/P&gt;
&lt;P&gt;From YourTable;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load distinct Month, Date(Date#(Month,'MMM-YY'),'MMM-YY') as Month2&lt;/P&gt;
&lt;P&gt;Resident SIOP;&lt;/P&gt;
&lt;P&gt;Drop Field Month;&lt;/P&gt;
&lt;P&gt;Rename Field Month2 to Month;&lt;/P&gt;
&lt;P&gt;// And then derive or whatnot&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960500#M79179</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-07-26T12:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert MMM-YY for autocalendar use</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960548#M79182</link>
      <description>&lt;P&gt;Yes this is working perfect for me.&lt;/P&gt;
&lt;P&gt;Thanks for all you help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 13:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-MMM-YY-for-autocalendar-use/m-p/1960548#M79182</guid>
      <dc:creator>tomf122</dc:creator>
      <dc:date>2022-07-26T13:04:04Z</dc:date>
    </item>
  </channel>
</rss>

