<?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: Finding shared values in different alternate states. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1704079#M592287</link>
    <description>&lt;P&gt;No one?&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 07:04:40 GMT</pubDate>
    <dc:creator>Remco</dc:creator>
    <dc:date>2020-05-21T07:04:40Z</dc:date>
    <item>
      <title>Finding shared values in different alternate states.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703715#M592283</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;I have a table with many records that uses the 'Forecast' column to define to what set of data they belong. With alternate status I can show the difference counts, totals, averages etc. for each set. There are many different 'Forecasts'.&lt;/P&gt;&lt;P&gt;Now, lets imagine I select a Forecast 'X' in alternate state A and for state B the selection is on Forecast 'Y'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 710px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34021i073E5E67EA98186E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is that in the table fore alternate state A there will be a dimension that splits up the results between values found only in state A and values found in both state A and state B. These values to search on are a concat of 2 fields called [CountryCode] and [IdContract].&lt;/P&gt;&lt;P&gt;Then, in the output table for state B, I want to see the opposite so, the same dimension that splits up the results for records (the same concat) found both in state A en B and on the other hand, records only found in B.&lt;/P&gt;&lt;P&gt;The 'Count' of A en B will be the same number. I imagine this should be solved by using IF in combination with an 'IN' or 'Match' function but I am not able to figure it out. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703715#M592283</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2020-05-20T07:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding shared values in different alternate states.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703719#M592284</link>
      <description>&lt;P&gt;You should be able to achieve this using set analysis operators ( + - / * ). For example:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;SetAnalysisForState1 * AnalysisForState2)&amp;gt;} ForecastAmount)&lt;/P&gt;&lt;P&gt;Should get only the cases that are in both sets (intersect). + would get both sets (union), - would get only records which appear in the first but not in the second, and / would return the XOR - values which appear in one set but not the other.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703719#M592284</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2020-05-20T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Finding shared values in different alternate states.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703721#M592285</link>
      <description>&lt;P&gt;Sounds reasonably simple, i´ll give it a try. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703721#M592285</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2020-05-20T07:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding shared values in different alternate states.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703728#M592286</link>
      <description>&lt;P&gt;It does not work out, it adds, subtracts etc. but it is not doing what I need. I need to investigate if the combination of CountryCode &amp;amp; IdContract exists in either state A and B. Distinguish with a dimension within the table and with the existing measure return the values.&lt;/P&gt;&lt;P&gt;So, it should create a dimension with an IF function that returns 'Only in A', 'Both in A &amp;amp; B' and 'Only in B'. In SQL I would do something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Case when CountryCode + IdContract in (Select&amp;nbsp;CountryCode + IdContract from B) then 'Both in A and B' Else 'Only in A' from A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;for the second table that would be something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Case when CountryCode + IdContract in (Select&amp;nbsp;CountryCode + IdContract from A) then 'Both in A and B' Else 'Only in B' from B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is, how can I create this dimension?&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 09:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1703728#M592286</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2020-05-20T09:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding shared values in different alternate states.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1704079#M592287</link>
      <description>&lt;P&gt;No one?&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 07:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-shared-values-in-different-alternate-states/m-p/1704079#M592287</guid>
      <dc:creator>Remco</dc:creator>
      <dc:date>2020-05-21T07:04:40Z</dc:date>
    </item>
  </channel>
</rss>

