<?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 Data model for values of different granularity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-model-for-values-of-different-granularity/m-p/256728#M97109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have an application which takes into account data of various granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody encountered a similar situation and what would be the best data model for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the following dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Product (id, segment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Market (id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Period (year, month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have a measure &lt;STRONG&gt;Registrations&lt;/STRONG&gt; which is defined per each intersection of &lt;STRONG&gt;Product, Market, Period&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;And we have a measure &lt;STRONG&gt;Industry&lt;/STRONG&gt; which is defined only per &lt;STRONG&gt;Segment&lt;/STRONG&gt; of each product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when we load the data first we get the warning about the loops:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Loop.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8867_Loop.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We change the name of the Segment field in the Industry table and resolve the loop problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="NoLoop.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8868_NoLoop.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, we can't use this data model. When we have a chart with Industry and Month in dimension, the data change whenever a Product is selected. Our client wants Industry charts which completely ignore any product selection and react only on Segment change. &lt;/P&gt;&lt;P&gt;With quite a bit of Set Expressions this goal is achievable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since Registrations are related to Product and to Industry, this relation impacts the results of the Industry chart anyway. It happens when a product was not sold on a certain market (no Registrations records). When selected, its excluded market limits the Industry records and therefore impacts the final value of the Industry expression in the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried a workaround and unlinked the Product table from Registrations and Industry:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UnLinked.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8869_UnLinked.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this creates another problem we seem to unable to solve as for now: how to combine Segment and Product fields in a chart with a Registrations (or Industry) expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments on this topic would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Valeriy Shylin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2011 12:53:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-25T12:53:22Z</dc:date>
    <item>
      <title>Data model for values of different granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-values-of-different-granularity/m-p/256728#M97109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have an application which takes into account data of various granularity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody encountered a similar situation and what would be the best data model for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the following dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Product (id, segment)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Market (id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Period (year, month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have a measure &lt;STRONG&gt;Registrations&lt;/STRONG&gt; which is defined per each intersection of &lt;STRONG&gt;Product, Market, Period&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;And we have a measure &lt;STRONG&gt;Industry&lt;/STRONG&gt; which is defined only per &lt;STRONG&gt;Segment&lt;/STRONG&gt; of each product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when we load the data first we get the warning about the loops:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Loop.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8867_Loop.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We change the name of the Segment field in the Industry table and resolve the loop problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="NoLoop.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8868_NoLoop.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, we can't use this data model. When we have a chart with Industry and Month in dimension, the data change whenever a Product is selected. Our client wants Industry charts which completely ignore any product selection and react only on Segment change. &lt;/P&gt;&lt;P&gt;With quite a bit of Set Expressions this goal is achievable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since Registrations are related to Product and to Industry, this relation impacts the results of the Industry chart anyway. It happens when a product was not sold on a certain market (no Registrations records). When selected, its excluded market limits the Industry records and therefore impacts the final value of the Industry expression in the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried a workaround and unlinked the Product table from Registrations and Industry:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UnLinked.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8869_UnLinked.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this creates another problem we seem to unable to solve as for now: how to combine Segment and Product fields in a chart with a Registrations (or Industry) expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments on this topic would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Valeriy Shylin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 12:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-values-of-different-granularity/m-p/256728#M97109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-25T12:53:22Z</dc:date>
    </item>
  </channel>
</rss>

