<?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: Trouble with Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-analysis/m-p/1827922#M1214125</link>
    <description>&lt;P&gt;I seem to have been able to get the desired result using Total in the expression&amp;nbsp;&lt;SPAN&gt;count(TOTAL{1&amp;lt;Year=$::Year,Month=$::Month,Quarter=$::Quarter&amp;gt;}distinct YearWeek)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 09:44:06 GMT</pubDate>
    <dc:creator>jjbom1990</dc:creator>
    <dc:date>2021-08-11T09:44:06Z</dc:date>
    <item>
      <title>Trouble with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-analysis/m-p/1827611#M1214098</link>
      <description>&lt;P&gt;I tried finding solutions on the forum but I can't seem to find the same problem. I am having trouble with set analysis.&lt;/P&gt;&lt;P&gt;Probably because I am trying to count the weeks within a date selection. However de data is obviously linked to the facts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression to count weeks:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;count({1&amp;lt;Year=$::Year,Month=$::Month,Quarter=$::Quarter&amp;gt;}distinct YearWeek)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine without being put into a table with dimensions. In a text box it nicely displays 5 weeks voor August 2021.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However putting this into a table where there is only 1 order in 1 week it counts the weeks as 1 instead of 5.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Week&lt;/TD&gt;&lt;TD&gt;Order&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Order no.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The avg deliveries per week --&amp;gt; 1 /&amp;nbsp;count({1&amp;lt;Year=$::Year,Month=$::Month,Quarter=$::Quarter&amp;gt;}distinct YearWeek) = 1 instead of the expected 0.2. how to overcome this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 06:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-analysis/m-p/1827611#M1214098</guid>
      <dc:creator>jjbom1990</dc:creator>
      <dc:date>2021-08-10T06:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-analysis/m-p/1827922#M1214125</link>
      <description>&lt;P&gt;I seem to have been able to get the desired result using Total in the expression&amp;nbsp;&lt;SPAN&gt;count(TOTAL{1&amp;lt;Year=$::Year,Month=$::Month,Quarter=$::Quarter&amp;gt;}distinct YearWeek)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 09:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-analysis/m-p/1827922#M1214125</guid>
      <dc:creator>jjbom1990</dc:creator>
      <dc:date>2021-08-11T09:44:06Z</dc:date>
    </item>
  </channel>
</rss>

