<?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: Is a set analysis workaround possible in this case? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047554#M352020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it is working. Let me test a little bit more before I flag this answer. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 12:11:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-04T12:11:15Z</dc:date>
    <item>
      <title>Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047550#M352016</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;I have a concatenated fact table which looks like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;OrderLineNumber&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DeliveryLineNumber&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;OrderLineValue&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DeliveryLineValue&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1|1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1|2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;2|1&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9001|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9001|2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9002|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have two other tables for orders and deliveries, which look like this:&lt;/P&gt;&lt;P&gt;- Orders:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;OrderLineNumber&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RequestedDeliveryDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04/04/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;04/04/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/05/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Deliveries:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DeliveryLineNumber&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;DeliveryLineStatus&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9001|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Shipped&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9001|2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Shipped&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;9002|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;InProcess&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I have a tab with a table which should look like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;OrderLineNumber&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;OrderLineValue&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sum({$&amp;lt;[DeliveryLineStatus]={'Shipped}&amp;gt;}DeliveryLineValue)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 13.3333px; text-align: center; background-color: #6690bc;"&gt;Sum({$&amp;lt;[DeliveryLineStatus]={'InProcess'}&amp;gt;}DeliveryLineValue)&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1|2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2|1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a listbox with the month number of the RequestedDeliveryDate you find in the orders table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when I select a month in the calendar I just mention, the last two columns in my tab show 0. I understand why, but can I work around this problem with a set analysis, or should I modify my fact table?&lt;/P&gt;&lt;P&gt;I'm looking into the p() function, but I'm not sure this is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047550#M352016</guid>
      <dc:creator />
      <dc:date>2016-04-04T11:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047551#M352017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt; {1&amp;lt;[DeliveryLineStatus]={'Shipped}, OrderLineNumber = p() &amp;gt;}&lt;/STRONG&gt; DeliveryLineValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047551#M352017</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T11:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047552#M352018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I'd put the OrderLineValue field in the Orders table together with the corresponding OrderLineNumber and RequestedDeliveryDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 11:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047552#M352018</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-04T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047553#M352019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... can I ask why you would do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047553#M352019</guid>
      <dc:creator />
      <dc:date>2016-04-04T12:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047554#M352020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it is working. Let me test a little bit more before I flag this answer. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047554#M352020</guid>
      <dc:creator />
      <dc:date>2016-04-04T12:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is a set analysis workaround possible in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047555#M352021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any reason why that field should be added to the fact table. That only seems to add extra rows to the fact table which then also cause the problem you now have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-a-set-analysis-workaround-possible-in-this-case/m-p/1047555#M352021</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-04T12:13:26Z</dc:date>
    </item>
  </channel>
</rss>

