<?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: Quarter variables not holding any data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000535#M649061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;first in your field of quarter you have a string Q1,Q2,..&lt;/P&gt;&lt;P&gt;and in your variables you only defined the number&lt;/P&gt;&lt;P&gt;you can add to your variable this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let vPreviousQtr ='Q' &amp;amp; if(Mod(fabs(vCurrentQtr-1),4)=0, 4, Mod(fabs(vCurrentQtr-1),4));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 12:43:15 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2015-09-22T12:43:15Z</dc:date>
    <item>
      <title>Quarter variables not holding any data</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000534#M649058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QlikComm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey guys, I'm having some difficulty with my quarter variables.&lt;/P&gt;&lt;P&gt;if I make a table with quarters I get the data fine, but when I define variables to compare the quarters I don't get any data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My quarters are filled with&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;'Q' &amp;amp; Ceil(Month(datum)/3) as&amp;nbsp; Quarter&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have defined the following variables:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Let vCurrentQtr = ceil(month(Today())/3);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Let vPreviousQtr = if(Mod(fabs(vCurrentQtr-1),4)=0, 4, Mod(fabs(vCurrentQtr-1),4));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;let vCurrentQuarterNumber = lookup( 'QuarterCounter', 'DateId', date(today(), 'DD/MM/YYYY'), 't1' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use the following expression to fill a table I get 0's&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(sum({&amp;lt;Quarter={'$(vPreviousQtr)'}&amp;gt;} HRM_Paginaweergaven))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why that is? Thanks... &lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000534#M649058</guid>
      <dc:creator />
      <dc:date>2015-09-22T12:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter variables not holding any data</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000535#M649061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;first in your field of quarter you have a string Q1,Q2,..&lt;/P&gt;&lt;P&gt;and in your variables you only defined the number&lt;/P&gt;&lt;P&gt;you can add to your variable this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let vPreviousQtr ='Q' &amp;amp; if(Mod(fabs(vCurrentQtr-1),4)=0, 4, Mod(fabs(vCurrentQtr-1),4));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000535#M649061</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-22T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter variables not holding any data</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000536#M649063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yess thnx, that seems to be the sollution for the vCurrenQtr, but the vPreviousQtr is still returning a 0.&lt;/P&gt;&lt;P&gt;I think I will have to try a different approach to the previousQtr. Thanks for the quick reply, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000536#M649063</guid>
      <dc:creator />
      <dc:date>2015-09-22T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter variables not holding any data</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000537#M649065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I'm still not able to get any data from the previous quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current quarter works fine: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vCurrentQtr = 'Q' &amp;amp; ceil(month(Today())/3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the previous Quarter returns a 0:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let vPreviousQtr ='Q' &amp;amp; if(Mod(fabs(vCurrentQtr-1),4)=0, 4, Mod(fabs(vCurrentQtr-1),4));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this is or does anyone have a alternative formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000537#M649065</guid>
      <dc:creator />
      <dc:date>2015-09-22T14:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter variables not holding any data</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000538#M649066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi robert&lt;/P&gt;&lt;P&gt;what i usually do in this cases i use the quarterstart function in my calendar &lt;/P&gt;&lt;P&gt;to create a field with the first date of the quarter for each date &lt;/P&gt;&lt;P&gt;then using the addmonths function it always works &lt;/P&gt;&lt;P&gt;in your case your variables will be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp; Let vCurrentQtr = quarterstart(Today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Let vPreviousQtr =addmonths(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;quarterstart(Today()),-3)&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;another advantage of this method , is it works between year no need for if statement&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 19:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-variables-not-holding-any-data/m-p/1000538#M649066</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-22T19:37:21Z</dc:date>
    </item>
  </channel>
</rss>

