<?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 Compare same variable in two alternate states in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1672520#M455962</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have two alternate states:&amp;nbsp;"OG_20172018+0" and the following year&amp;nbsp;"OG_20172018+1".&amp;nbsp; In a chart/pivot table, which is set to be in the alternate state&amp;nbsp;"OG_20172018+1", I have the following expression:&lt;/P&gt;&lt;P&gt;=(count({&amp;lt;&lt;BR /&gt;Rnr = P({"OG_20172018+0"&amp;lt;Lvl = {1}&amp;gt;}),&lt;BR /&gt;Group -= {"I", "U", "X"},&lt;BR /&gt;Lvl-= {"&amp;gt;1"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;DISTINCT if((Standardfilter = 1 or Standardfilter_2prioritet =1),&lt;BR /&gt;Rnr)))&lt;/P&gt;&lt;P&gt;Where Rnr is an reference number for each person,&amp;nbsp;Lvl is a numeric variable indication which level each person are at,&amp;nbsp;Group indicates which group the person are in, and Standardfilter and&amp;nbsp;Standardfilter_2prioritet&amp;nbsp; is [0,1]-indicators.&lt;/P&gt;&lt;P&gt;So far, so good. I get a list of 215 uniqe Rnr's. These Rnr's are in both states and they have the features in the expression.&lt;/P&gt;&lt;P&gt;Then i have another variable "Category" which is a text variable. For each of the 215 Rnr's i want to check if the Category-variable are identical in both states , and I want&amp;nbsp; count these Rnr's.&lt;/P&gt;&lt;P&gt;I have tried to find post in the community to help me, but I am still stuck! Please, can anybody help me?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:20:59 GMT</pubDate>
    <dc:creator>Mr_small_t</dc:creator>
    <dc:date>2024-11-16T01:20:59Z</dc:date>
    <item>
      <title>Compare same variable in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1672520#M455962</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have two alternate states:&amp;nbsp;"OG_20172018+0" and the following year&amp;nbsp;"OG_20172018+1".&amp;nbsp; In a chart/pivot table, which is set to be in the alternate state&amp;nbsp;"OG_20172018+1", I have the following expression:&lt;/P&gt;&lt;P&gt;=(count({&amp;lt;&lt;BR /&gt;Rnr = P({"OG_20172018+0"&amp;lt;Lvl = {1}&amp;gt;}),&lt;BR /&gt;Group -= {"I", "U", "X"},&lt;BR /&gt;Lvl-= {"&amp;gt;1"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;DISTINCT if((Standardfilter = 1 or Standardfilter_2prioritet =1),&lt;BR /&gt;Rnr)))&lt;/P&gt;&lt;P&gt;Where Rnr is an reference number for each person,&amp;nbsp;Lvl is a numeric variable indication which level each person are at,&amp;nbsp;Group indicates which group the person are in, and Standardfilter and&amp;nbsp;Standardfilter_2prioritet&amp;nbsp; is [0,1]-indicators.&lt;/P&gt;&lt;P&gt;So far, so good. I get a list of 215 uniqe Rnr's. These Rnr's are in both states and they have the features in the expression.&lt;/P&gt;&lt;P&gt;Then i have another variable "Category" which is a text variable. For each of the 215 Rnr's i want to check if the Category-variable are identical in both states , and I want&amp;nbsp; count these Rnr's.&lt;/P&gt;&lt;P&gt;I have tried to find post in the community to help me, but I am still stuck! Please, can anybody help me?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1672520#M455962</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2024-11-16T01:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare same variable in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1672971#M455963</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=(count({&amp;lt;
Rnr = P({"OG_20172018+0"&amp;lt;Lvl = {1}&amp;gt;}) * {"=Only({"OG_20172018+0"} Category) = Only({"OG_20172018+1"} Category)"},
Group -= {"I", "U", "X"},
Lvl-= {"&amp;gt;1"}
&amp;gt;}
DISTINCT if((Standardfilter = 1 or Standardfilter_2prioritet =1),
Rnr)))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1672971#M455963</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-06T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare same variable in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1673231#M455964</link>
      <description>&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;thanks for your reply! I see what you are trying. But it did not work ("Errors in expression") and I have not been able to "adjust" it to make it run.&amp;nbsp; And suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Torbjørn&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1673231#M455964</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-02-07T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare same variable in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1673372#M455965</link>
      <description>&lt;P&gt;My bad, try this instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=(count({&amp;lt;
Rnr = P({"OG_20172018+0"&amp;lt;Lvl = {1}&amp;gt;}) * {"=Only({[OG_20172018+0]} Category) = Only({[OG_20172018+1]} Category)"},
Group -= {"I", "U", "X"},
Lvl-= {"&amp;gt;1"}
&amp;gt;}
DISTINCT if((Standardfilter = 1 or Standardfilter_2prioritet =1),
Rnr)))&lt;/LI-CODE&gt;&lt;P&gt;Changed the double quotes around the state name to []. The reason is that we already have a "" used in the set.....&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 14:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1673372#M455965</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-07T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Compare same variable in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1674670#M455966</link>
      <description>&lt;P&gt;That one works brilliant! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 07:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-same-variable-in-two-alternate-states/m-p/1674670#M455966</guid>
      <dc:creator>Mr_small_t</dc:creator>
      <dc:date>2020-02-12T07:49:40Z</dc:date>
    </item>
  </channel>
</rss>

