<?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 a YTD choice in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014116#M15079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have a bar chart in QLIK SENSE shows this year and last year sales data.As default, the graph will show this year YTD data and whole last year data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to offer a choice to user to pick YTD data, once YTD was picked, the graph will show this year YTD data (same as default) and same period data in last year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any help on how to achieve this goal? especially how to provide the YTD choice and how to interact with it. thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jan 2016 21:45:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-02T21:45:50Z</dc:date>
    <item>
      <title>a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014116#M15079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have a bar chart in QLIK SENSE shows this year and last year sales data.As default, the graph will show this year YTD data and whole last year data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to offer a choice to user to pick YTD data, once YTD was picked, the graph will show this year YTD data (same as default) and same period data in last year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any help on how to achieve this goal? especially how to provide the YTD choice and how to interact with it. thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 21:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014116#M15079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014117#M15080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually we create conditional flags, such as a CYTD_Flag that are assigned 0 or 1, depending on the condition. With the flag pre-calculated in the data load script, it's easy to select the YTD and the Last YTD data using Set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CYTD_Flag = {1}&amp;gt;}&amp;nbsp; Sales) - &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;LYTD_Flag = {1}&amp;gt;}&amp;nbsp; Sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Take your Qlik Skills to the next level at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - now with new and redesigned materials!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 23:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014117#M15080</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-02T23:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014118#M15081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sufman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can set the Current year to date flag using :&lt;/P&gt;&lt;P&gt;inyeartodate(Date,today,0) * (-1) as CYTD&amp;nbsp; - this will flag (1) if the date falls in the current year to date period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the Current year to date flag using :&lt;/P&gt;&lt;P&gt;inyeartodate(Date,today,-1) * (-1) as LYTD&amp;nbsp; - this will flag (1) if the date falls in the last year to date period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Use these flags in the set analysis expressions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;CYTD_Flag = {1}&amp;gt;}&amp;nbsp; Sales) - &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum({&amp;lt;LYTD_Flag = {1}&amp;gt;}&amp;nbsp; Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangram Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 13:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014118#M15081</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-03T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014119#M15082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for both of answers. I still have question on how to implement on UI. is that possible show me a simple sample?&lt;/P&gt;&lt;P&gt;I am new and much appreciated your elaboration. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 01:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014119#M15082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T01:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014120#M15083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi surfman,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Check this out:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110900_Capture.PNG" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Check the attached qvf for more details .&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;#&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sangram Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014120#M15083</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2016-01-07T12:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: a YTD choice</title>
      <link>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014121#M15084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fantastic! Much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 02:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/a-YTD-choice/m-p/1014121#M15084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T02:02:29Z</dc:date>
    </item>
  </channel>
</rss>

