<?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: YTD in a Pivot Table, Per Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872239#M304901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you put an = character in front of the expression in the variable then the value will be calculated outside the context of the chart. &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;vMinFiscalStartDate:&amp;nbsp; =MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[TB MO Case DT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 15:41:56 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-07-02T15:41:56Z</dc:date>
    <item>
      <title>YTD in a Pivot Table, Per Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872238#M304900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We send out surveys to clients, and I've been asked to create a chart that will show, per survey, the number of responses we received per Fiscal Quarter, and the percent of responses that were 'positive'.&amp;nbsp; Then additionally per Fiscal Quarter, they want to see a Fiscal Year to Date total/percent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could try and use Set Analysis to get the cumulative FYTD score per quarter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable that returns the minimum date received:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;vMinFiscalStartDate = MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Case DT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Then in my pivot table, the expression to calculate postive responses I'm trying is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Case DT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(vMinFiscalStartDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Number Indicator NBR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, that is only returning the number for each quarter, not FYTD.&amp;nbsp;&amp;nbsp; Then I tried the below as the expression (using 1 instead of $), but I'm getting a total of zero for each quarter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Case DT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=&lt;STRONG&gt;{1}&lt;/STRONG&gt;(vMinFiscalStartDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Number Indicator NBR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone have any suggestions on how to calculate a minimum date outside the chart, and then reference that within a chart?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;IMG alt="Untitled.bmp" class="jive-image image-1" height="75" src="https://community.qlik.com/legacyfs/online/91682_Untitled.bmp" width="741" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 14:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872238#M304900</guid>
      <dc:creator>almalecha</dc:creator>
      <dc:date>2015-07-02T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: YTD in a Pivot Table, Per Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872239#M304901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you put an = character in front of the expression in the variable then the value will be calculated outside the context of the chart. &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;vMinFiscalStartDate:&amp;nbsp; =MIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[TB MO Case DT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 15:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872239#M304901</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-02T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: YTD in a Pivot Table, Per Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872240#M304902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I was able to change the variable, and when putting it in a text box, it remained constant even when I filtered.&lt;/P&gt;&lt;P&gt;My pivot table was still not calculating correctly, so that helped me realize my expression syntax was incorrect, and I ended up using something similiar to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Number Indicator NBR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TB MO Number Indicator NBR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you again for your reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 19:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Pivot-Table-Per-Quarter/m-p/872240#M304902</guid>
      <dc:creator>almalecha</dc:creator>
      <dc:date>2015-07-03T19:55:18Z</dc:date>
    </item>
  </channel>
</rss>

