<?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 Set Analysis - Current Date default to current quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244416#M93230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what it exactly is you want to accomplish, but you can load a field quarter based on the dates in your data. Either use that to set a selection using a trigger in the document by using the Max(Quarter) function. Or alternatively, in your charts/tables expression use set analysis like this:&lt;/P&gt;&lt;P&gt;{&amp;lt;Quarter={'$(=Max(Quarter))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has not much to do with the current date, but with the max date in your data. If the current date is not in your data, this would result in no data anyway, so should result to the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 14:59:24 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2011-09-07T14:59:24Z</dc:date>
    <item>
      <title>Set Analysis - Current Date default to current quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244414#M93228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to figure out how to write an expression so that when the user opens the application, it will default to the current quarter, which will be tied to the current date.&amp;nbsp; Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 14:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244414#M93228</guid>
      <dc:creator />
      <dc:date>2011-09-07T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Current Date default to current quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244415#M93229</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;are you trying to get your whole application to limit down to the current quarter on open?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or just a specific chart to show only current quarter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can run an on load macro to just select current quarter for the first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it's just the chart, use the InQuarter function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your dimension would be for example&lt;/P&gt;&lt;P&gt;=if(InQuarter([your date field here],today(),0)=-1,[your dimension field here])&lt;/P&gt;&lt;P&gt;and supress nulls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 14:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244415#M93229</guid>
      <dc:creator />
      <dc:date>2011-09-07T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Current Date default to current quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244416#M93230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what it exactly is you want to accomplish, but you can load a field quarter based on the dates in your data. Either use that to set a selection using a trigger in the document by using the Max(Quarter) function. Or alternatively, in your charts/tables expression use set analysis like this:&lt;/P&gt;&lt;P&gt;{&amp;lt;Quarter={'$(=Max(Quarter))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has not much to do with the current date, but with the max date in your data. If the current date is not in your data, this would result in no data anyway, so should result to the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 14:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Current-Date-default-to-current-quarter/m-p/244416#M93230</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2011-09-07T14:59:24Z</dc:date>
    </item>
  </channel>
</rss>

