<?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: - 1 year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866288#M11991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the data load editor and in your load add a new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Arrival Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year ([Arrival Date]) as [Arrival Year]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;from ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you [Arrival Year] as the filter pane and also in your set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;[Arrival Year]={$(=max([Arrival &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Year])-1)}&amp;gt;}[Age])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;OR....&amp;nbsp; also suggest trying the new Calendar Tagged fields in Qlik Sense shown here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4088"&gt;Qlik Sense – Date &amp;amp;amp; Time&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;In your case:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add this at the bottom of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;Calendar: &lt;SPAN class="mc-highlightSearch1" style="background-color: transparent !important;"&gt;DECLARE&lt;/SPAN&gt; FIELD DEFINITION TAGGED '$date' Parameters first_month_of_year = 1 Fields&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year($1) As Year Tagged '$year',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($1) as Month Tagged '$month',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($1) as Date Tagged ('$date', '$day'),&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week($1) as Week Tagged '$week',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weekday($1) as Weekday Tagged '$weekday',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayNumberOfYear($1, first_month_of_year) as DayNumberOfYear Tagged ('$numeric');&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;DERIVE FIELDS FROM FIELDS [Arrival Date] USING Calendar;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;and then the date fields will show up in the UI. &lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;The benefit of these are that they sort like dates and behave the way you need Dates to behave. The above sample covers just 6 possible date groupings but there are dozens of dozens of possibilities to create all kinds of date groupings:&amp;nbsp; Quarter-Year ,&amp;nbsp;&amp;nbsp; Q-QuarterNumber, Date and Time .....&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83065_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 20:31:17 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-04-07T20:31:17Z</dc:date>
    <item>
      <title>- 1 year</title>
      <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866287#M11990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a bar graph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This counts a number of people per month &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count([Age]) this gets me the number of people...and this works fine counting number of people when one year is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By drop down filter pane arrival year…with this behind &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year ([Arrival Date]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried 4! variations of the same code to try and -1&lt;BR /&gt;year and have had no joy. e.g I select 2014, and I want it to count 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;} [Age])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year={$(=Only([Arrival Year])-1)}&amp;gt;}[Age])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Arrival Year]={$(=max([Arrival&lt;BR /&gt;Year])-1)}&amp;gt;}[Age])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ({$&amp;lt;Year_Fiscal = {'$(vPreviousFiscalYear)'} &amp;gt;}&lt;BR /&gt;[Age])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards - joeybird ..please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-year/m-p/866287#M11990</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-04-07T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: - 1 year</title>
      <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866288#M11991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the data load editor and in your load add a new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Arrival Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year ([Arrival Date]) as [Arrival Year]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;from ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you [Arrival Year] as the filter pane and also in your set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;[Arrival Year]={$(=max([Arrival &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Year])-1)}&amp;gt;}[Age])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;OR....&amp;nbsp; also suggest trying the new Calendar Tagged fields in Qlik Sense shown here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4088"&gt;Qlik Sense – Date &amp;amp;amp; Time&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;In your case:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add this at the bottom of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;Calendar: &lt;SPAN class="mc-highlightSearch1" style="background-color: transparent !important;"&gt;DECLARE&lt;/SPAN&gt; FIELD DEFINITION TAGGED '$date' Parameters first_month_of_year = 1 Fields&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year($1) As Year Tagged '$year',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($1) as Month Tagged '$month',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($1) as Date Tagged ('$date', '$day'),&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week($1) as Week Tagged '$week',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weekday($1) as Weekday Tagged '$weekday',&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate" style="font-family: 'Lucida Console', Monaco, monospace; font-size: 8pt; color: #444444;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayNumberOfYear($1, first_month_of_year) as DayNumberOfYear Tagged ('$numeric');&lt;/P&gt;&lt;P class="code" data-mc-conditions="Targets.NotToTranslate"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;DERIVE FIELDS FROM FIELDS [Arrival Date] USING Calendar;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;and then the date fields will show up in the UI. &lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;The benefit of these are that they sort like dates and behave the way you need Dates to behave. The above sample covers just 6 possible date groupings but there are dozens of dozens of possibilities to create all kinds of date groupings:&amp;nbsp; Quarter-Year ,&amp;nbsp;&amp;nbsp; Q-QuarterNumber, Date and Time .....&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1.4em; color: #444444; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83065_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 20:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-year/m-p/866288#M11991</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-04-07T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: - 1 year</title>
      <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866289#M11992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fantastic..all working xx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar date and time fields really useful too... saves setting up dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joeybird &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 09:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-year/m-p/866289#M11992</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-04-08T09:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: - 1 year</title>
      <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866290#M11993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super!&amp;nbsp; Please mark this one as 'answered' with the correct answer marked. Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 10:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-year/m-p/866290#M11993</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-04-08T10:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: - 1 year</title>
      <link>https://community.qlik.com/t5/App-Development/1-year/m-p/866291#M11994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;completed x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joeybird&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 10:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/1-year/m-p/866291#M11994</guid>
      <dc:creator>joeybird</dc:creator>
      <dc:date>2015-04-08T10:22:23Z</dc:date>
    </item>
  </channel>
</rss>

