<?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: Set clear state on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008003#M342280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have quarter codes there like 2015Q4 and 2016Q1, whit this data value i'm deriving the current qtr and previous qtr from that(using set analysis)..now I have to take max of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 15:46:04 GMT</pubDate>
    <dc:creator>mishraamit2485</dc:creator>
    <dc:date>2015-10-19T15:46:04Z</dc:date>
    <item>
      <title>Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007984#M342261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, Can we set a clear state on a button the action behind that button action behind that button is to select current month out of all the months.&lt;/P&gt;&lt;P&gt;Suppose I'm hitting clear button so this month its should go on Oct next month it should go on Nov.&lt;/P&gt;&lt;P&gt;Currently what is happening it is storing this month(Oct) when i'm setting the clear state where as next month also it is Oct only...i want something where it selects dynamic selection(Oct this month Nove next), instead of static (Stores Oct) only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007984#M342261</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T11:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007985#M342262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about&amp;nbsp; a Trigger as yourmonthfield "=month(today())" on your button object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007985#M342262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T11:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007986#M342263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this:&lt;/P&gt;&lt;P&gt;vVariable = Month(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will store the current month. Use Select in Field action on clear button. &lt;/P&gt;&lt;P&gt;Field is your Month Filed and condition will be : =Month = &lt;SPAN style="font-size: 13.3333px;"&gt;Month(Today())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007986#M342263</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-10-19T11:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007987#M342264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data is not driving from the system date, I have to use that data which is coming from backend, it might be yesterdays data on today's date, i have to use that only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007987#M342264</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T11:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007988#M342265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to compare this date with your script data date. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007988#M342265</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-10-19T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007989#M342266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add trigger . On open add action&amp;gt;Select in field&amp;gt;, your field name and in search string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007989#M342266</guid>
      <dc:creator>neha_sri</dc:creator>
      <dc:date>2015-10-19T12:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007990#M342267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached the sample app, instead of Month i need to select quarter, and that too the numbers we are getting from the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007990#M342267</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007991#M342268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha, attached the sample app, please check..instead of month i need to select latest qtr which i coming from db&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007991#M342268</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007992#M342269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please define a trigger on open document like below&lt;/P&gt;&lt;P&gt;= max({1}Qtr) -&amp;gt; if you want the latest quarter to be selected&lt;/P&gt;&lt;P&gt;be aware if you have more than 1 year you Need to select last year first&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102428_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007992#M342269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T12:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007993#M342270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want this on clear not on open document , when i hit the clear button it should go on the current qtr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007993#M342270</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007994#M342271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you need to do the following steps&lt;/P&gt;&lt;P&gt;1) provide a short macro: (press strg+M)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub DefineClearState&lt;BR /&gt; ActiveDocument.SetClearState&lt;BR /&gt; End Sub &lt;/P&gt;&lt;P&gt;2) define a Trigger on your sheet with Action run macro and define macro "DefineClearState"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007994#M342271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007995#M342272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the dead end , i can not use macro n all....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007995#M342272</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007996#M342273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then try this:&lt;/P&gt;&lt;P&gt;- unselect month, quarter etc.&lt;/P&gt;&lt;P&gt;- use Trigger as mentioned in my Image on open document&lt;/P&gt;&lt;P&gt;- save doc&lt;/P&gt;&lt;P&gt;- when you open it will select latest quarter. if you Change to other quarter and press "clear" the latest quarter will be selected again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007996#M342273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007997#M342274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried the way you are telling, its going to 2nd qtr only..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007997#M342274</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007998#M342275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;curious, when I follow your instructions Step1 and 2 I see quarter 3 after clear button???&lt;/P&gt;&lt;P&gt;upps, not allowed to upload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007998#M342275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007999#M342276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How i'm doing do the step 1, set the clear state on max qtr(which is 2 in this case), now follow the step 3 reload the doc, when you open 3rd qtr will be selected now select any month in (4,5,6) hit clear it will go to 2nd qtr only..&lt;/P&gt;&lt;P&gt;I have setup trigger on open &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max({1}Qtr)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1007999#M342276</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008000#M342277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attached app, when I follow your steps I get correct result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008000#M342277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008001#M342278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange...where is the attached app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 13:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008001#M342278</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008002#M342279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Load a Quarter field with the following script.&lt;/P&gt;&lt;P&gt;'Q'&amp;amp;(FLOOR(NUM(MONTH(date Filed from DB)-1)/3)+1) AS Quarter,&lt;/P&gt;&lt;P&gt;and then in front end On clear Button set action&lt;/P&gt;&lt;P&gt;Select In Field--&amp;gt;Quarter&lt;/P&gt;&lt;P&gt;and in search string give this --&amp;gt; ='Q'&amp;amp;(FLOOR(NUM(MONTH(max(&lt;SPAN style="font-size: 13.3333px;"&gt;date Filed from DB&lt;/SPAN&gt;))-1)/3)+1)&lt;/P&gt;&lt;P&gt;It will select the latest quarter&amp;nbsp; in Quarter field based on Date field from DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 14:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008002#M342279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-19T14:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set clear state on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008003#M342280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have quarter codes there like 2015Q4 and 2016Q1, whit this data value i'm deriving the current qtr and previous qtr from that(using set analysis)..now I have to take max of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 15:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-clear-state-on-a-variable/m-p/1008003#M342280</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-19T15:46:04Z</dc:date>
    </item>
  </channel>
</rss>

