<?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 Clear State in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281983#M104849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excluding a specific value from selection at all times sounds like a very strange need... If you never need that date, why not exclude it from the data load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you explained your business need in more detail, perhaps we could find better solutions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 May 2011 03:31:36 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-05-07T03:31:36Z</dc:date>
    <item>
      <title>Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281982#M104848</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;I have a question about Set clear state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have few dates in my multibox&lt;/P&gt;&lt;P&gt;1/1/2011&lt;/P&gt;&lt;P&gt;1/2/2011&lt;/P&gt;&lt;P&gt;1/3/2011&lt;/P&gt;&lt;P&gt;1/4/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks clear, then the data is equalent to selecting all dates.&lt;/P&gt;&lt;P&gt;I want 1/1/2011 to be excluded from selection all the times, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my current work around is to select all dates other than 1/1/2011 and set clear state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I load data everyday, so everyday the dates in the multibox are going to grow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This being the case, after each data load/reload I dont want to go and explicitly select dates and set cleat state in order to just ignore one date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 22:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281982#M104848</guid>
      <dc:creator />
      <dc:date>2011-05-06T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281983#M104849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excluding a specific value from selection at all times sounds like a very strange need... If you never need that date, why not exclude it from the data load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you explained your business need in more detail, perhaps we could find better solutions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 03:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281983#M104849</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-05-07T03:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281984#M104850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using&amp;nbsp; this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Button,&amp;gt;&amp;gt; Actions&amp;gt;&amp;gt;&amp;nbsp; Select In field &amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Field :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;Search string :&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;1/1/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;use an Expression in your charts :&amp;nbsp; sum({&amp;lt;Date=-{'1/1/2011'}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope This works....Else let me know...!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 11:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281984#M104850</guid>
      <dc:creator />
      <dc:date>2011-05-07T11:53:08Z</dc:date>
    </item>
    <item>
      <title>Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281985#M104851</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;This is what am trying to achive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the date 1/1/2011 is a base date, which is used to compute value for the subsequent date, and so on.&lt;/P&gt;&lt;P&gt;so I dont want 1/1/2011 to be selected or shown at anytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my straighttable I have date as my dimension, and using expression I have made sure that 1/1/2011 is not displayed. however when I click clear, 1/1/2011 data still appears, which I dont want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I want 1/1/2011 to be deselected always and hence decided to do set clear, how ever since new data is being loaded everyday, I dont want to keep resetting clear every time I load data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance&lt;/P&gt;&lt;P&gt;my current dates could be&lt;/P&gt;&lt;P&gt;1/1/2011&lt;/P&gt;&lt;P&gt;1/2/2011&lt;/P&gt;&lt;P&gt;1/3/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i do a set clear state selecting 1/2/2011 and 1/3/2011.&lt;/P&gt;&lt;P&gt;But tomorrow when I load data for 1/4/2011 then again I have to reset clear state by selecting 1/2/2011,1/3/2011 and 1/4/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which I dont want to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This there a better way? I dont want to add any new objects to the sheet either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 23:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281985#M104851</guid>
      <dc:creator />
      <dc:date>2011-05-07T23:34:38Z</dc:date>
    </item>
    <item>
      <title>Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281986#M104852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of the 1/1/2011?&lt;/P&gt;&lt;P&gt;If only needed for calculation-purpose, it might be better to choose a (calculated or fixed) variable (in the script, or via Input-box)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 08:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281986#M104852</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-05-08T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281987#M104853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Oleg, if you don't want the date, remove all the registers in the script. &lt;/P&gt;&lt;P&gt;If you need to keep it and really just want to adjust the clear state, you can use a macro like this: &lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;sub resetClearState&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("DATE").Unlock&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("DATE").Select "01/01/2011"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("DATE").SelectExcluded&lt;/P&gt;&lt;P&gt;'ActiveDocument.Fields("DATE").Lock 'You can lock it after initial selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearState&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Triiger this onOpen and onPostReload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I include an attachment as an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 16:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281987#M104853</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-08T16:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Clear State</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281988#M104854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the same scenario which is ending up with the same issue, I do not want to use Marco to do that...is there any work around you have.&lt;/P&gt;&lt;P&gt;Its difficult to set clear state after every load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 02:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Clear-State/m-p/281988#M104854</guid>
      <dc:creator>mishraamit2485</dc:creator>
      <dc:date>2015-10-21T02:38:51Z</dc:date>
    </item>
  </channel>
</rss>

