<?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 and Charting question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532473#M198931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;I have the following data structure where "Data" is linked to my Calendar via "CallDate" and also I hava e a data island called "SupplData" that has a field called "TerminalPeriod" which is of the same format as "Period" in Calendar which is a date field of the type YYYY-MM (e.g. 2013-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50051__delete.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Below you can see 3 charts - the one on the left is a chart of the data in DATA where:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;: Period&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expression:&lt;/EM&gt; = &lt;EM&gt;count ({$}DISTINCT TID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;The one on the right is the data in the data island and defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;TerminalPeriod&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expression:&lt;/EM&gt; = &lt;EM&gt;sum({$&amp;lt;[TerminalPeriod] = {'$(eSelectedPeriod)'}&amp;gt;} TIPRecordNo)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;where "eSelectedPeriod" is a variable that has the definition of &lt;STRONG&gt;Year &amp;amp; '-' &amp;amp; num(Month)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Year and Month are fields from the Calendar and are presented as Listboxes for the user to choose from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;MY REQUIREMENT is to display the 2 measures together in the same chart. The bottom chart is just that and it uses the above expressions, i.e.:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;: Period&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expressions:&lt;/EM&gt; (for DATA)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;EM&gt;count ({$}DISTINCT TID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expressions:&lt;/EM&gt; (for SUPPL DATA) = &lt;EM&gt;sum({$&amp;lt;[TerminalPeriod] = {'$(eSelectedPeriod)'}&amp;gt;} TIPRecordNo)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50053__delete.jpg" style="width: 620px; height: 464px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;When a specific month is chosen (as is the case above) everything works fine but I am more interested to see these pairs across a range of dates. Deselecting the month I get the following where the "combined chart" at the bottom does not show any figures for SUPPL DATA which we know exist as we can see thm on the chart below right. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Any ideas how I can achieve the correct pairing here... I tried things like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt; = sum({$&amp;lt;[TerminalPeriod] = {[Period]}&amp;gt;} TIPRecordNo) etc .. and lots of other variations. The solution has to work for both a specific month (or months) as it works above and also for no selection in which case it will show the entire date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Alexis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50054__delete.jpg" style="width: 620px; height: 455px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 13:42:25 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2013-12-05T13:42:25Z</dc:date>
    <item>
      <title>Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532473#M198931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;I have the following data structure where "Data" is linked to my Calendar via "CallDate" and also I hava e a data island called "SupplData" that has a field called "TerminalPeriod" which is of the same format as "Period" in Calendar which is a date field of the type YYYY-MM (e.g. 2013-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50051__delete.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Below you can see 3 charts - the one on the left is a chart of the data in DATA where:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;: Period&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expression:&lt;/EM&gt; = &lt;EM&gt;count ({$}DISTINCT TID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;The one on the right is the data in the data island and defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;TerminalPeriod&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expression:&lt;/EM&gt; = &lt;EM&gt;sum({$&amp;lt;[TerminalPeriod] = {'$(eSelectedPeriod)'}&amp;gt;} TIPRecordNo)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;where "eSelectedPeriod" is a variable that has the definition of &lt;STRONG&gt;Year &amp;amp; '-' &amp;amp; num(Month)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Year and Month are fields from the Calendar and are presented as Listboxes for the user to choose from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;MY REQUIREMENT is to display the 2 measures together in the same chart. The bottom chart is just that and it uses the above expressions, i.e.:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Dimension&lt;/EM&gt;: Period&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expressions:&lt;/EM&gt; (for DATA)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;EM&gt;count ({$}DISTINCT TID)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;EM&gt;Expressions:&lt;/EM&gt; (for SUPPL DATA) = &lt;EM&gt;sum({$&amp;lt;[TerminalPeriod] = {'$(eSelectedPeriod)'}&amp;gt;} TIPRecordNo)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50053__delete.jpg" style="width: 620px; height: 464px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;When a specific month is chosen (as is the case above) everything works fine but I am more interested to see these pairs across a range of dates. Deselecting the month I get the following where the "combined chart" at the bottom does not show any figures for SUPPL DATA which we know exist as we can see thm on the chart below right. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Any ideas how I can achieve the correct pairing here... I tried things like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt; = sum({$&amp;lt;[TerminalPeriod] = {[Period]}&amp;gt;} TIPRecordNo) etc .. and lots of other variations. The solution has to work for both a specific month (or months) as it works above and also for no selection in which case it will show the entire date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;Alexis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva;"&gt;&lt;IMG alt="_delete.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50054__delete.jpg" style="width: 620px; height: 455px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532473#M198931</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-12-05T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532474#M198932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am not wrong, you want to see your data/graph based on two different dates selection.&lt;/P&gt;&lt;P&gt;Please check below video on youtube...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting Arbitrary Date Ranges...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.youtube.com/watch?v=UTDyO68BYL8" title="http://www.youtube.com/watch?v=UTDyO68BYL8"&gt;Selecting Arbitrary Date Ranges - YouTube&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532474#M198932</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-12-05T13:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532475#M198933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason why TerminalPeriod cannot be renamed to Period so your tables are associated properly? That way you don't have to deal with cartesian products as you have to now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 14:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532475#M198933</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-05T14:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532476#M198934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above example is just an extract from a more complex application. The main reason is that of granularity - it's a little like the classic Sales/Budgets scenario where the latter may only be available monthly and sales daily. For all the obvious reasons the two cannot be joined using the sales date in Calendar. Something similar is happening here. I am always open to other suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for responding&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 17:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532476#M198934</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-12-05T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532477#M198935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at all obvious if you're using Qlikview: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity" style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Fact Table with Mixed Granularity&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 18:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532477#M198935</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-05T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532478#M198936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish. This is an interesting video but it is not relevant to the problem that I described &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 07:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532478#M198936</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-12-06T07:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Charting question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532479#M198937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert &lt;/P&gt;&lt;P&gt;Thank you for the reply - The "Generic keys" approach is very interesting and I have used it elsewhere to very good effect, but I think in this instance might be overkill - all I want to achieve here is to map the 2 sets that have values of the same type (Period and Terminal Period) on the same chart and I am sure can be solved using Set Analysis. &lt;/P&gt;&lt;P&gt;Thank you for feedback&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 08:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-Charting-question/m-p/532479#M198937</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-12-06T08:03:59Z</dc:date>
    </item>
  </channel>
</rss>

