<?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 Analysis with multiple variables for one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1678063#M449878</link>
    <description>&lt;P&gt;Thank you for your reply. The case can be closed. It was a matter of a mistake I made expecting the data to be different than it actually was. This post can be closed and deleted, thank you.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Petter&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 14:11:14 GMT</pubDate>
    <dc:creator>PetterAhlin</dc:creator>
    <dc:date>2020-02-21T14:11:14Z</dc:date>
    <item>
      <title>Set Analysis with multiple variables for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1677936#M449871</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;//I have two variables assigned with YearMonth values in the load script.&lt;BR /&gt;vL.LastMonth //e.g. 202003&lt;BR /&gt;vL.StartMonth //e.g. 202001 or 202004&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I have a set analysis in an expression in a straight table chart. The set analysis is used to make sure the record I extract in the Only function is of last month but not earlier than given start month. I tried the different values in StartMonth to check if the set analysis works as I expected. A value should be returned for TargetField when assigning 202001 to vL.StartMonth. No value should be returned if 202004 is assigned to the variable.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;The following set analysis does NOT work for intended purpose:&lt;BR /&gt;=Only({1&amp;lt;YearMonthField={"=$(vL.LastMonth) &amp;gt;=$(vL.StartMonth)"}&amp;gt;} TargetField)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;However, if I define the set analysis the following way &lt;FONT&gt;(with two instances of same field name)&lt;/FONT&gt; it works fine:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;=Only({1&amp;lt;YearMonthField={"=$(vL.LastMonth)"}, YearMonthField={"&amp;gt;=$(vL.StartMonth)"}&amp;gt;} TargetField)&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;BR /&gt;I probably do some simple error, but can't understand what causes the first Set Analysis above to fail.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Kindly, Petter Ahlin&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1677936#M449871</guid>
      <dc:creator>PetterAhlin</dc:creator>
      <dc:date>2024-11-16T19:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with multiple variables for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1678036#M449877</link>
      <description>&lt;P&gt;What exactly is your condition here? I am not sure what exactly are you trying to do?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1678036#M449877</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-21T13:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with multiple variables for one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1678063#M449878</link>
      <description>&lt;P&gt;Thank you for your reply. The case can be closed. It was a matter of a mistake I made expecting the data to be different than it actually was. This post can be closed and deleted, thank you.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Petter&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-multiple-variables-for-one-field/m-p/1678063#M449878</guid>
      <dc:creator>PetterAhlin</dc:creator>
      <dc:date>2020-02-21T14:11:14Z</dc:date>
    </item>
  </channel>
</rss>

