<?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 Set Analysis using a Master Calendar over Start and End Dates without loading row by row facts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718301#M451715</link>
    <description>&lt;P&gt;This may be a hard one, for all you set analysis gurus&lt;/P&gt;&lt;P&gt;I have a Contract table:&lt;/P&gt;&lt;P&gt;[Contract Number]&lt;/P&gt;&lt;P&gt;[ Contract Start Date]&lt;/P&gt;&lt;P&gt;[Contract End Date]&lt;/P&gt;&lt;P&gt;[Number of Months]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= End Date - Start Date in months&lt;/P&gt;&lt;P&gt;[Monthly Contract Value]&amp;nbsp; &amp;nbsp; &amp;nbsp; = the value of the contract each month, goes out into future&lt;/P&gt;&lt;P&gt;I have implemented a Master Calendar with a DateKey, &lt;STRONG&gt;Date&lt;/STRONG&gt;, Year, Month, MonthYear, etc........&amp;nbsp; &amp;nbsp; lots of columns.&amp;nbsp; I am expert at creating a Master Calendar Design.&lt;/P&gt;&lt;P&gt;I wish to create a measure:&amp;nbsp; sum([Monthly Contract Value]), that reacts to Date Range selections in my Master Calendar.&lt;/P&gt;&lt;P&gt;I wish to avoid creating an exploded table with each contract period in a separate row, rows going from start to end date - &lt;STRONG&gt;I am doing that now, works fine, but bloats the data model&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So.....&lt;/P&gt;&lt;P&gt;I started going down the road of set analysis with : (&lt;STRONG&gt;Date&lt;/STRONG&gt; is a column in the Master Calendar)&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Contract Number]={"Date&amp;gt;=$(=max([Contract Start Date]))&amp;lt;=$(=max([Contract End Date]))"}&amp;gt;}[Monthly Contract Value])&lt;/P&gt;&lt;P&gt;While this is is syntactically fine, since there is no direct association between Contract to MasterCalendar, date selections&amp;nbsp; on the Master Calendar do nothing.&lt;/P&gt;&lt;P&gt;Is there a way to accomplish this where I can avoid the inclusion of an exploded out table?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:29:26 GMT</pubDate>
    <dc:creator>dadumas</dc:creator>
    <dc:date>2024-11-16T00:29:26Z</dc:date>
    <item>
      <title>Set Analysis using a Master Calendar over Start and End Dates without loading row by row facts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718301#M451715</link>
      <description>&lt;P&gt;This may be a hard one, for all you set analysis gurus&lt;/P&gt;&lt;P&gt;I have a Contract table:&lt;/P&gt;&lt;P&gt;[Contract Number]&lt;/P&gt;&lt;P&gt;[ Contract Start Date]&lt;/P&gt;&lt;P&gt;[Contract End Date]&lt;/P&gt;&lt;P&gt;[Number of Months]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= End Date - Start Date in months&lt;/P&gt;&lt;P&gt;[Monthly Contract Value]&amp;nbsp; &amp;nbsp; &amp;nbsp; = the value of the contract each month, goes out into future&lt;/P&gt;&lt;P&gt;I have implemented a Master Calendar with a DateKey, &lt;STRONG&gt;Date&lt;/STRONG&gt;, Year, Month, MonthYear, etc........&amp;nbsp; &amp;nbsp; lots of columns.&amp;nbsp; I am expert at creating a Master Calendar Design.&lt;/P&gt;&lt;P&gt;I wish to create a measure:&amp;nbsp; sum([Monthly Contract Value]), that reacts to Date Range selections in my Master Calendar.&lt;/P&gt;&lt;P&gt;I wish to avoid creating an exploded table with each contract period in a separate row, rows going from start to end date - &lt;STRONG&gt;I am doing that now, works fine, but bloats the data model&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So.....&lt;/P&gt;&lt;P&gt;I started going down the road of set analysis with : (&lt;STRONG&gt;Date&lt;/STRONG&gt; is a column in the Master Calendar)&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Contract Number]={"Date&amp;gt;=$(=max([Contract Start Date]))&amp;lt;=$(=max([Contract End Date]))"}&amp;gt;}[Monthly Contract Value])&lt;/P&gt;&lt;P&gt;While this is is syntactically fine, since there is no direct association between Contract to MasterCalendar, date selections&amp;nbsp; on the Master Calendar do nothing.&lt;/P&gt;&lt;P&gt;Is there a way to accomplish this where I can avoid the inclusion of an exploded out table?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718301#M451715</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2024-11-16T00:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using a Master Calendar over Start and End Dates without loading row by row facts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718338#M451717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According to my understanding of your question, this is how I would process this.&lt;/P&gt;&lt;P&gt;Create a table based on&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Creating-Reference-Dates-for-Intervals/ba-p/1463944" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Creating-Reference-Dates-for-Intervals/ba-p/1463944&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This table would be different from your master calendar&lt;/P&gt;&lt;P&gt;In the expression, I would use the reference date, something like&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Reference_Date=P(Date)&lt;SPAN&gt;&amp;gt;}Amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718338#M451717</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-12T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using a Master Calendar over Start and End Dates without loading row by row facts</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718396#M451721</link>
      <description>&lt;P&gt;That is what I am currently doing and works fine.&amp;nbsp; However, this extra table adds many millions of rows to my table design.&lt;/P&gt;&lt;P&gt;Example 100,000 contracts X 60 months each = 6 million rows.&amp;nbsp; These rows serve no purpose other than to connect an "exploded" contract period date to a date dimension.&lt;/P&gt;&lt;P&gt;I am hoping for a better way, such that I do not need the intermediary table with the 6M rows.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 17:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-a-Master-Calendar-over-Start-and-End-Dates/m-p/1718396#M451721</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-06-12T17:49:58Z</dc:date>
    </item>
  </channel>
</rss>

