<?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 Time Dimension Collapsing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133412#M509412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been wrangling with this nasty little problem for the past few hours but didn't manage to solve without going back into the script.&lt;/P&gt;&lt;P&gt;My data basically looks like in the example. There's sales numbers for different products by calendar weeks. If I select some weeks I get beautiful average sales for all the different products. If, however, I also select a product , which doesn't have sales in every month, the time dimension collapses and I'm dividing by the wrong number of weeks.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;I almost got there with variables and triggers but not quite...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 15:57:28 GMT</pubDate>
    <dc:creator>sbartelh</dc:creator>
    <dc:date>2018-08-29T15:57:28Z</dc:date>
    <item>
      <title>Time Dimension Collapsing</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133412#M509412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been wrangling with this nasty little problem for the past few hours but didn't manage to solve without going back into the script.&lt;/P&gt;&lt;P&gt;My data basically looks like in the example. There's sales numbers for different products by calendar weeks. If I select some weeks I get beautiful average sales for all the different products. If, however, I also select a product , which doesn't have sales in every month, the time dimension collapses and I'm dividing by the wrong number of weeks.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;I almost got there with variables and triggers but not quite...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133412#M509412</guid>
      <dc:creator>sbartelh</dc:creator>
      <dc:date>2018-08-29T15:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension Collapsing</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133413#M509413</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;Assuming you are adding a count distinct/total to get the weeks you can add set analysis to ignore the product selection;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Prod=&amp;gt;}DISTINCT TOTAL Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached the QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133413#M509413</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-08-29T16:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension Collapsing</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133414#M509414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;For some reason the expression didn't work in the table and produced different counts in different rows although it was supposed to ignore the only dimension: product. Putting the expression into a variable first, however, did the trick...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 07:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension-Collapsing/m-p/133414#M509414</guid>
      <dc:creator>sbartelh</dc:creator>
      <dc:date>2018-08-30T07:35:05Z</dc:date>
    </item>
  </channel>
</rss>

