<?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: set analysis in multi-layer fact table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76629#M771237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are exactly trying to achieve. To hint - why this doesn't work: since you use 'stock' as type operation fixed in expression, the expression would not return any value when for selections that don't have 'stock' data. I.e. for your feb and jan selection there is no 'stock' in available data, hence it returns nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 05:34:43 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-05-23T05:34:43Z</dc:date>
    <item>
      <title>set analysis in multi-layer fact table</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76628#M771236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Need bit of help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is such a multi-layer fact table, in which the sales history and the current balance (stock) are combined.&lt;/P&gt;&lt;P&gt;I Need to calculate the balance (stock) of supplier 1 in house 1 for sales in different months.&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;January sales: sales of brand 1 supplier 1 in house 1,&lt;/P&gt;&lt;P&gt;result when January is selected: stock = 3&lt;/P&gt;&lt;P&gt;Example 2:&lt;/P&gt;&lt;P&gt;sales: sales of brand 2 supplier 2 in the house 2,&lt;/P&gt;&lt;P&gt;result when you select February: remainder = 15&lt;/P&gt;&lt;P&gt;In my case, it only works if I choose the current month.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have tried many different ways of writing the set analysis but can't seem to get the correct syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="map_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203146_map_1.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="map_2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/203153_map_2.jpg" style="height: 340px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the expression in the chart: &lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Type_operation={'stock'}&amp;gt;} if(Brand_id = property_supplier2 AND property_house1 = property_supplier1 , Amount, 0))&lt;/P&gt;&lt;P&gt;but only works when selecting March&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76628#M771236</guid>
      <dc:creator>markovalexsey</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis in multi-layer fact table</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76629#M771237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure what you are exactly trying to achieve. To hint - why this doesn't work: since you use 'stock' as type operation fixed in expression, the expression would not return any value when for selections that don't have 'stock' data. I.e. for your feb and jan selection there is no 'stock' in available data, hence it returns nothing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 05:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76629#M771237</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-05-23T05:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis in multi-layer fact table</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76630#M771238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, you are right, choosing January, operations with the 'stock' outside the selected period, &lt;/P&gt;&lt;P&gt;but it is necessary that the operations were checked in January, and displayed amount 'stock' and in any case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 05:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76630#M771238</guid>
      <dc:creator>markovalexsey</dc:creator>
      <dc:date>2018-05-23T05:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis in multi-layer fact table</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76631#M771239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is still not very clear to me. However, I guess you might try using p().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 05:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-in-multi-layer-fact-table/m-p/76631#M771239</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-05-23T05:57:31Z</dc:date>
    </item>
  </channel>
</rss>

