<?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 - using values of a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315215#M116324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Steven,&lt;BR /&gt;Not sure I got the problem right, anyway, did you try this:&lt;BR /&gt; count( {1&amp;lt;CustomerStore = TransactionStore&amp;gt;} NewCustomer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2012 00:49:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-24T00:49:03Z</dc:date>
    <item>
      <title>Set Analysis - using values of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315214#M116323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to incorporate values - of a dimension of the report - using set analysis without&lt;/P&gt;&lt;P&gt;calling them out explicitly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let's suppose that we have 2 different "Store" fields - (1) Customer Store &amp;amp; (2) Transaction Store - &lt;/P&gt;&lt;P&gt;in the dashboard. They contain more or less the same set of values, yet they serve different&lt;/P&gt;&lt;P&gt;purposes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer Store is the default store for each customer, as defined in the customer master;&lt;/P&gt;&lt;P&gt;Transaction Store is the store listed on an actual transaction line, so if a customer has shopped at more than 1 location/store, there&lt;/P&gt;&lt;P&gt;would be multiple Transaction Stores for that customer.&amp;nbsp; Customer Store is in the customer table, Transaction Store is in the transaction details table. &lt;/P&gt;&lt;P&gt;These two tables are linked by the customer ID/code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We can only use "Transaction Store" as the dimension of a straight table, reason being that sales, cost, margin, etc need to be analyzed by the stores&lt;/P&gt;&lt;P&gt;in which the transactions actually occurred.&amp;nbsp; However, in this same report, we also want to capture various customer retention statistics by looking at the &lt;/P&gt;&lt;P&gt;"Customer Store". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know that we can call out the values explicitly in set analysis, as in the example below:&lt;/P&gt;&lt;P&gt;count( {1&amp;lt;CustomerStore = {“Store A”}&amp;gt;} NewCustomer )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to go a step further, is it possible to make this comparison dynamic?&amp;nbsp; For each line of the report, we would like&lt;/P&gt;&lt;P&gt;the calculation look at the value of the TransactionStore and grab the corresponding CustomerStore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting expression would essentially display identical results as the following individual calculations:&lt;/P&gt;&lt;P&gt;Row 1: count( {1&amp;lt;CustomerStore = {“Store A”}&amp;gt;} NewCustomer )&lt;/P&gt;&lt;P&gt;Row 2: count( {1&amp;lt;CustomerStore = {“Store B”}&amp;gt;} NewCustomer )&lt;/P&gt;&lt;P&gt;Row 3: count( {1&amp;lt;CustomerStore = {“Store C”}&amp;gt;} NewCustomer )&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 00:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315214#M116323</guid>
      <dc:creator />
      <dc:date>2012-02-24T00:22:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - using values of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315215#M116324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Steven,&lt;BR /&gt;Not sure I got the problem right, anyway, did you try this:&lt;BR /&gt; count( {1&amp;lt;CustomerStore = TransactionStore&amp;gt;} NewCustomer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 00:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315215#M116324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-24T00:49:03Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - using values of a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315216#M116325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of placing this in the Expression and thus having to have 1 expression for each store, why don't you place CustomerStore in the Dimensions then use the Pivot Table option in Charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i've got this totally wrong I apologise, maybe a demo QV file might help us understand whats going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 02:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-values-of-a-dimension/m-p/315216#M116325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-24T02:49:38Z</dc:date>
    </item>
  </channel>
</rss>

