<?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: problem with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439118#M798302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on what you require, this is the only way... not sure I understand the reason to avoid this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2017 15:22:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-06T15:22:46Z</dc:date>
    <item>
      <title>problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439111#M798295</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 am trying to calculate the amount of ID that entered in Source "online" in the last 90 days from the maximum date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, In the example attached,&lt;/P&gt;&lt;P&gt;if the user selects in the month filter - October.&lt;/P&gt;&lt;P&gt;so the maximum date will be - '2017-10-19 15:00:00'&lt;/P&gt;&lt;P&gt;The last 90 days &lt;SPAN style="font-size: 13.3333px;"&gt;will be&lt;/SPAN&gt;- '2017-07-22 15:00:00'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the calculation will be - the amount of ID's that entered online from &lt;SPAN style="font-size: 13.3333px;"&gt;2017-10-19 15:00:00' till &lt;SPAN style="font-size: 13.3333px;"&gt;'2017-07-22 15:00:00'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried the following calculation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=count({&amp;lt;source=,source={"Online"},SaleDatenum={"&amp;gt;=$((Vlast90days))&amp;lt;=$((VmaxDate))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I know I can add the dimension Month, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=count({&amp;lt;SaleDateMonth=, source=,source={"Online"},SaleDatenum={"&amp;gt;=$((Vlast90days))&amp;lt;=$((VmaxDate))"}&amp;gt;}ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And the problem will be solved, but is there another way? Like add $ or 1 .... I do not really know what they're doing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439111#M798295</guid>
      <dc:creator>ttal7878</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439112#M798296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you need is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;SaleDateMonth, source = {"Online"}, SaleDatenum = {"&amp;gt;=$(=Num(Vlast90days))&amp;lt;=$(=Num(VmaxDate))"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Count({1&amp;lt;source = {"Online"}, SaleDatenum = {"&amp;gt;=$(=Num(Vlast90days))&amp;lt;=$(=Num(VmaxDate))"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 13:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439112#M798296</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439113#M798297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tal Tal, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SaleDateMonth= equals ignoring the selection on that field. So when you don't add SaleDateMonth= you're datarange is limited by the dates linked to the selection of SaleDateMonth. That's why you'll need to add SaleDateMonth. Btw same for SaleDateYear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are otherways to ignore the SaleDateMonth selection by using alternate states and pull the selection from one alternate state into another one. But that is unnecessarily complicated. So no need for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw Source= and Source={"Online"} is a bit double. The first one ignores the selection on Source and the second one ignores the selection and sets it to online. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 13:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439113#M798297</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2017-12-06T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439114#M798298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439114#M798298</guid>
      <dc:creator>ttal7878</dc:creator>
      <dc:date>2017-12-06T14:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439115#M798299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;But when you add 1 - it means it will ignore all selected dimensions.&lt;/P&gt;&lt;P&gt;If for example in my example there is another dimension,"City" and the user will select a city - the result will not be affected by the measure.&lt;/P&gt;&lt;P&gt;But this is not my intention, I want the result not to be affected only by the source dimension and of course the date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439115#M798299</guid>
      <dc:creator>ttal7878</dc:creator>
      <dc:date>2017-12-06T15:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439116#M798300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({&amp;lt;SaleDateMonth, source = {"Online"}, SaleDatenum = {"&amp;gt;=$(=Num(Vlast90days))&amp;lt;=$(=Num(VmaxDate))"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439116#M798300</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439117#M798301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK ... I wanted to avoid this... but if there is no other choice then okay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439117#M798301</guid>
      <dc:creator>ttal7878</dc:creator>
      <dc:date>2017-12-06T15:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with variable</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439118#M798302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on what you require, this is the only way... not sure I understand the reason to avoid this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 15:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-variable/m-p/1439118#M798302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-06T15:22:46Z</dc:date>
    </item>
  </channel>
</rss>

