<?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 Help with calculated dimension / quarters map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension-quarters-map/m-p/950004#M967887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set of data containing the following dimensions: CustomerNames, StartYear, StartQuarter, EndYear, EndQuarter which tells me when cases have been opened and closed for these customers.&amp;nbsp; I want to create a report that for any given time (two input fields/variables as "SelectedYear and SelectedQuarter), it will tell me how many "OPEN" cases there were.&amp;nbsp; An "OPEN" case is defined as a count of customer for which the StartYear/Quarter is less than the SelectedYear/Quarter but the EndYear/Quarter is greater than Selected Year/Quarter.&amp;nbsp; My Expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedQuarter&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedQuarter&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerNames&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This gives me the correct results. However, it will only give me one bar in the chart which shows the result for my two variable input, i.e. 2015 2.&amp;nbsp; I want to show the selected variable as well as 4 previous quarters. How do I do this?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Note I don't have any dates or a master calendar or quarter mapping.&amp;nbsp; One problem that I've encountered is qlikview doesn't recognize year quarter sequence - for instance if I try and use SelectedYear&amp;amp;SelectedQuarter - 3, and I've chosen 2015 3, it will result in 2015 0 instead of 2014 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carlo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 13:35:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-28T13:35:10Z</dc:date>
    <item>
      <title>Help with calculated dimension / quarters map</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension-quarters-map/m-p/950004#M967887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set of data containing the following dimensions: CustomerNames, StartYear, StartQuarter, EndYear, EndQuarter which tells me when cases have been opened and closed for these customers.&amp;nbsp; I want to create a report that for any given time (two input fields/variables as "SelectedYear and SelectedQuarter), it will tell me how many "OPEN" cases there were.&amp;nbsp; An "OPEN" case is defined as a count of customer for which the StartYear/Quarter is less than the SelectedYear/Quarter but the EndYear/Quarter is greater than Selected Year/Quarter.&amp;nbsp; My Expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StartQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedQuarter&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EndQuarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedYear&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;SelectedQuarter&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustomerNames&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This gives me the correct results. However, it will only give me one bar in the chart which shows the result for my two variable input, i.e. 2015 2.&amp;nbsp; I want to show the selected variable as well as 4 previous quarters. How do I do this?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Note I don't have any dates or a master calendar or quarter mapping.&amp;nbsp; One problem that I've encountered is qlikview doesn't recognize year quarter sequence - for instance if I try and use SelectedYear&amp;amp;SelectedQuarter - 3, and I've chosen 2015 3, it will result in 2015 0 instead of 2014 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carlo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension-quarters-map/m-p/950004#M967887</guid>
      <dc:creator />
      <dc:date>2015-09-28T13:35:10Z</dc:date>
    </item>
  </channel>
</rss>

