<?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: Switch YTD to 30 Day Button click in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745020#M266011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 19:01:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-18T19:01:25Z</dc:date>
    <item>
      <title>Switch YTD to 30 Day Button click</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745016#M266007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way that it's possible to create a button where I can just switch from YTD data to recent 30 days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 15:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745016#M266007</guid>
      <dc:creator />
      <dc:date>2015-02-18T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Switch YTD to 30 Day Button click</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745017#M266008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is yes.&amp;nbsp; You didn't ask how, but just in case a simple example is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745017#M266008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T18:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Switch YTD to 30 Day Button click</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745018#M266009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a way I want the button to be able to change the where clause in the following sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DATENAME(month,CREATED) as [Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(Year,Created) as [Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(ID) as [NumberOfTickets]&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;nbsp; CREATED BETWEEN DATEADD(yy, DATEDIFF(yy,0,'2014-12-31'),0) AND '2014-12-31' -- this can be used as year to date&lt;/P&gt;&lt;P&gt;group by DATENAME(month,CREATED),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(Year,Created),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(month,CREATED)&lt;/P&gt;&lt;P&gt;order by &lt;/P&gt;&lt;P&gt;&amp;nbsp; DATEPART(Year,Created),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEPART(month,CREATED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe for every button it loads a different sql statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745018#M266009</guid>
      <dc:creator />
      <dc:date>2015-02-18T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Switch YTD to 30 Day Button click</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745019#M266010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is still yes.&amp;nbsp; Can be conditional load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VAR='YTD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;load script&amp;gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;another load script&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not the right way to use QlikView.&amp;nbsp; Normally you load all relevant data, and use selections/conditions/whatever on the front end, rather than reload different data every time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745019#M266010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Switch YTD to 30 Day Button click</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745020#M266011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-YTD-to-30-Day-Button-click/m-p/745020#M266011</guid>
      <dc:creator />
      <dc:date>2015-02-18T19:01:25Z</dc:date>
    </item>
  </channel>
</rss>

