<?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 Calculated Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733715#M262839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem but my capacity on qlikView are too light to solve it myself and I need the community help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table Entities (representing Companies), each company have a contract with a begin date and a duration.&lt;/P&gt;&lt;P&gt;For Exemple I have the company MEGATRON with a contract starting in 2012-02-01 and 12 month period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this company we have 3 contracts :&lt;/P&gt;&lt;P&gt;2012-02-01 to 2013-01-31 (Period 1)&lt;/P&gt;&lt;P&gt;2013-02-01 to 2014-01-31 (Period 2)&lt;/P&gt;&lt;P&gt;2014-01-31 to today (Period 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my user select 2012-05-20 I need to compute the data for the period 1, but if my user select 2013-04-06 I need to compute the data for the period&amp;nbsp; 2013-02-01 to 2014-01-31 (Period 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 09:46:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T09:46:17Z</dc:date>
    <item>
      <title>Calculated Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733715#M262839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem but my capacity on qlikView are too light to solve it myself and I need the community help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table Entities (representing Companies), each company have a contract with a begin date and a duration.&lt;/P&gt;&lt;P&gt;For Exemple I have the company MEGATRON with a contract starting in 2012-02-01 and 12 month period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this company we have 3 contracts :&lt;/P&gt;&lt;P&gt;2012-02-01 to 2013-01-31 (Period 1)&lt;/P&gt;&lt;P&gt;2013-02-01 to 2014-01-31 (Period 2)&lt;/P&gt;&lt;P&gt;2014-01-31 to today (Period 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my user select 2012-05-20 I need to compute the data for the period 1, but if my user select 2013-04-06 I need to compute the data for the period&amp;nbsp; 2013-02-01 to 2014-01-31 (Period 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733715#M262839</guid>
      <dc:creator />
      <dc:date>2014-06-24T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733716#M262840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly. There are several ways. You could use the intervalmatch function. See this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;IntervalMatch&lt;/A&gt;. But perhaps creating reference dates with a loop is easier. See this blog post for more information: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/12/reference-dates" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733716#M262840</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-24T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733717#M262841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer, I think "Reference Dates for Interval" is the good answer, but I need a little more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table "Contracts", doesn't contain all contract, just the first one, how I can extrapolate the 2 next ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my previous example, the table contracts contains :&lt;/P&gt;&lt;P&gt;ContractID 105&lt;/P&gt;&lt;P&gt;EntityID 3&lt;/P&gt;&lt;P&gt;StartDate 2012-02-01&lt;/P&gt;&lt;P&gt;Periodicity 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So I don't know how to generate each period to fit the data in the &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/12/reference-dates" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Creating Reference Dates for Intervals&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks again !&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Variable/m-p/733717#M262841</guid>
      <dc:creator />
      <dc:date>2014-06-24T13:17:43Z</dc:date>
    </item>
  </channel>
</rss>

