<?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 condition on variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938844#M323949</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 this variable : vtodaymonth=MonthName(today())&lt;/P&gt;&lt;P&gt;And I want to create another variable that would count the non null date field given that these date's month match the current one. &lt;/P&gt;&lt;P&gt;So I created :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vdate1=count(distinct{&amp;lt;[monthDate1]={'=$(vDOtodaymonth)'}, [monthDate1]={'*'}-{''} &amp;gt;} [Report])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't get any relevent results. Could you please help me?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 13:10:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-31T13:10:46Z</dc:date>
    <item>
      <title>Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938844#M323949</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 this variable : vtodaymonth=MonthName(today())&lt;/P&gt;&lt;P&gt;And I want to create another variable that would count the non null date field given that these date's month match the current one. &lt;/P&gt;&lt;P&gt;So I created :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vdate1=count(distinct{&amp;lt;[monthDate1]={'=$(vDOtodaymonth)'}, [monthDate1]={'*'}-{''} &amp;gt;} [Report])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't get any relevent results. Could you please help me?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 13:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938844#M323949</guid>
      <dc:creator />
      <dc:date>2015-08-31T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938845#M323950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what the first part of the set analysis is doing, but to handle the non null part, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vdate1=count(distinct{&amp;lt;[monthDate1]={'=$(vDOtodaymonth)'}, &lt;STRONG&gt;[monthDate1]={'*?'}&lt;/STRONG&gt;&amp;gt;} [Report])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938845#M323950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-31T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938846#M323951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response Sunny T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first part I just wanted to add a condition : only count the existing dates conditional on their months being the current one. Ex :if&amp;nbsp; today is Sep 31st , vDOtodaymonth would be equal to "September" so I should be counting all date1 from September. Unfortunately QV doesn't seem to understand when I try to match a specific field value with a variable's result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 07:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938846#M323951</guid>
      <dc:creator />
      <dc:date>2015-09-01T07:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938847#M323952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format of your variable and the field needs to match in order for the set analysis to filter results. Does there format match-&amp;gt; monthDate1 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vDOtodaymonth?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 07:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938847#M323952</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-01T07:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938848#M323953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be honst I have no idea. I just know that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vDOtodaymonth give me"sept." now and monthDate1 's value for september is also sept. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Does it necessary means their format match? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938848#M323953</guid>
      <dc:creator />
      <dc:date>2015-09-01T08:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938849#M323954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may still not match if one of the two is a dual format month and other one is text. Can you share the script for where you create monthDate1 field in the script and also the variable definition for vDOtodaymonth? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938849#M323954</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-01T08:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938850#M323955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where I created monthdate1 in the simplest way: &lt;/P&gt;&lt;P&gt;Report:&lt;/P&gt;&lt;P&gt;LOAD Month([D1]) as monthDate1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[0_OSR Global_20150706.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is PA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the variable I just used the variable wizard and wrote =Month(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should I add a fomat condition on the variable vDOtodaymonth ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938850#M323955</guid>
      <dc:creator />
      <dc:date>2015-09-01T08:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938851#M323956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the format must match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change your variable value&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;vtodaymonth=MonthName(today())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(today(),'MMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938851#M323956</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-01T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938852#M323957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the first part of the set analysis work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;[monthDate1]={'$(vDOtodaymonth)'}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;gt;} [Report])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938852#M323957</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-01T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938853#M323958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;isnt your second part ,overriding the first part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[monthDate1]={'*'}-{''}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your telling qlikview to select everything except blanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938853#M323958</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-01T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938854#M323959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha I never saw that the two fields are the same. Good catch &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 08:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938854#M323959</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-01T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938855#M323960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly now! thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 09:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938855#M323960</guid>
      <dc:creator />
      <dc:date>2015-09-01T09:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis condition on variables</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938856#M323961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, please select correct and any helpful answers and mark this thread closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 09:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-condition-on-variables/m-p/938856#M323961</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-01T09:13:28Z</dc:date>
    </item>
  </channel>
</rss>

