<?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 question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864905#M995796</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 the following expression.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SMI_Position01.BusinessDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPreviousBusinessDate)'}&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BusinessDates_Final.PreviousBusDate&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;SPAN style="font-size: 8pt;"&gt;vPreviousBusinessDate is a date which is storing a date field. I can see that the vPreviousBusinessDate has the correct value in another windows, but I am not sure if the {'$(vPreviousBusinessDate)'}&amp;nbsp; is the correct expression, I have tried different variations but I don't get a value, stays 0. Also I am looking for historic data, so I assume it's correct to have 1 and not $.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Panos.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 17:48:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-01T17:48:11Z</dc:date>
    <item>
      <title>set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864905#M995796</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 the following expression.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SMI_Position01.BusinessDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPreviousBusinessDate)'}&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BusinessDates_Final.PreviousBusDate&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;SPAN style="font-size: 8pt;"&gt;vPreviousBusinessDate is a date which is storing a date field. I can see that the vPreviousBusinessDate has the correct value in another windows, but I am not sure if the {'$(vPreviousBusinessDate)'}&amp;nbsp; is the correct expression, I have tried different variations but I don't get a value, stays 0. Also I am looking for historic data, so I assume it's correct to have 1 and not $.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Panos.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 17:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864905#M995796</guid>
      <dc:creator />
      <dc:date>2015-07-01T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864906#M995797</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;if&amp;nbsp; the variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;vPreviousBusinessDate&lt;/SPAN&gt;&amp;nbsp; holds another expression to be evaluated then you have to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;{'$(=vPreviousBusinessDate)'}&amp;nbsp; in the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;vPreviousBusinessDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; is just a value then your expression seems to be legit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Coming to the 'Value is 0' check if there are any other expressions or triggers on the sheet which changes the variable value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;krishna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 17:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864906#M995797</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-07-01T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864907#M995798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you need to format the date&lt;/P&gt;&lt;P&gt;count({1&amp;lt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;SMI_Position01.BusinessDate&lt;/SPAN&gt; = {'$(=date($(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;vPreviousBusinessDate&lt;/SPAN&gt;)))'}&amp;nbsp; &amp;gt;}&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;BusinessDates_Final.PreviousBusDate&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add your expression in a chart (it's ok also withoud dims), remove the label and look at the date as in image; it should be as &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;SMI_Position01.BusinessDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91529_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 18:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864907#M995798</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-01T18:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864908#M995799</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;That works thank you! however I am now facing another issue. As i am using&amp;nbsp; count({&lt;SPAN style="text-decoration: underline;"&gt;1&lt;/SPAN&gt;&amp;lt; that means i am selecting the whole book and i think that it ignores current selections made on the book. Is there a way to include the current selection a user makes within the set analysis calculation somehow. The data I need is always for previous business date if makes any simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Panos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 10:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/864908#M995799</guid>
      <dc:creator />
      <dc:date>2015-07-02T10:46:41Z</dc:date>
    </item>
  </channel>
</rss>

