<?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 Intersection Multiple fields w/alternative state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451179#M485958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;I am tring to get the count of current I_ITM's that have a matching item in the Alternative state&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;PriorPeriod &lt;SPAN style="color: #000000;"&gt;The individual calculations properly isolate the chart row either by family, or by Country but i need it to do both &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for one or the other &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;*=p({&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;}&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;)&amp;gt;}&lt;SPAN style="color: #993300;"&gt;I_ITM&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;*=p({&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;}&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;)&amp;gt;}&lt;SPAN style="color: #993300;"&gt;I_ITEM&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have not figured how to get BOTH in the same ..Count of items where the item was sold in the same country and also&amp;nbsp; in the same item family &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 15:37:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-18T15:37:03Z</dc:date>
    <item>
      <title>Intersection Multiple fields w/alternative state</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451179#M485958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;I am tring to get the count of current I_ITM's that have a matching item in the Alternative state&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;PriorPeriod &lt;SPAN style="color: #000000;"&gt;The individual calculations properly isolate the chart row either by family, or by Country but i need it to do both &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for one or the other &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;*=p({&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;}&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;)&amp;gt;}&lt;SPAN style="color: #993300;"&gt;I_ITM&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;*=p({&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;}&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;)&amp;gt;}&lt;SPAN style="color: #993300;"&gt;I_ITEM&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have not figured how to get BOTH in the same ..Count of items where the item was sold in the same country and also&amp;nbsp; in the same item family &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451179#M485958</guid>
      <dc:creator />
      <dc:date>2013-03-18T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection Multiple fields w/alternative state</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451180#M485959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For intersection try:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Family*=p({PriorPeriod}Family)&amp;gt;*&amp;lt;C_CNTRY_SLSCD*=p({PriorPeriod}C_CNTRY_SLSCD)&amp;gt;}I_ITEM)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451180#M485959</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-18T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection Multiple fields w/alternative state</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451181#M485960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&amp;nbsp; &lt;/P&gt;&lt;P&gt;For those who like the color codeing &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;COUNT&lt;SPAN style="color: #808080;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;*=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;)&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;*=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;I_ITEM&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only cavat i would add for people is when using alternative states be sure you are syncing up the right pieces. the Alt State syncronization &lt;/P&gt;&lt;P&gt;using the :: notation&lt;SPAN style="color: #333333;"&gt;&amp;nbsp; to syncronize pieces .. the example above is simplified. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451181#M485960</guid>
      <dc:creator />
      <dc:date>2013-03-19T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection Multiple fields w/alternative state</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451182#M485961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works perfectly for the count of current with match in previous but not in reverse: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;*=p({&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;gt; * &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;*=p({&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;C_CNTRY_SLSCD&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;gt;}&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;I_ITEM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reversing the Equation: &lt;/P&gt;&lt;P&gt;Does not work (gives zeros only) for Count in prior, where match in current: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;*=p({$}Family::Family)&amp;gt; * &amp;lt;C_CNTRY_SLSCD*=p({$}C_CNTRY_SLSCD::C_CNTRY_SLSCD)&amp;gt;}&lt;BR /&gt;I_ITEM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;Same result for:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;PriorPeriod&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Family&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;*=p({$}Family)&amp;gt; * &amp;lt;C_CNTRY_SLSCD*=p({$}C_CNTRY_SLSCD)&amp;gt;}&lt;BR /&gt;I_ITEM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; I assume its something i am doing wrong obviouly but the editor seems to think they are all ok &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 19:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-Multiple-fields-w-alternative-state/m-p/451182#M485961</guid>
      <dc:creator />
      <dc:date>2013-03-19T19:50:53Z</dc:date>
    </item>
  </channel>
</rss>

