<?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 YTD calculation using GetFieldSelection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406123#M151110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some reports that populate the data within them by using the Get Field Selection function.&amp;nbsp; For example the user must select a month and year, and then the report will populate that dates selected units:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;detailmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(detailmonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;detailyear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(detailyear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;units&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;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;This works great for getting month selected units, prior month, month over month comparision, prior year, and year over year comparison.&amp;nbsp; Now I need to get the YTD based on the month selected.&amp;nbsp; Meaning if they selected month 5&amp;nbsp; and year 2012 that it would sum months 1-5 for 2012, or if month 8 then sum months 1-8.&amp;nbsp; Anybody have suggestions on how to do this? I'm drawing a blank based on current design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Rebecca&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 16:16:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-04T16:16:53Z</dc:date>
    <item>
      <title>YTD calculation using GetFieldSelection</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406123#M151110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some reports that populate the data within them by using the Get Field Selection function.&amp;nbsp; For example the user must select a month and year, and then the report will populate that dates selected units:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;detailmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(detailmonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;detailyear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=GetFieldSelections(detailyear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;units&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;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;This works great for getting month selected units, prior month, month over month comparision, prior year, and year over year comparison.&amp;nbsp; Now I need to get the YTD based on the month selected.&amp;nbsp; Meaning if they selected month 5&amp;nbsp; and year 2012 that it would sum months 1-5 for 2012, or if month 8 then sum months 1-8.&amp;nbsp; Anybody have suggestions on how to do this? I'm drawing a blank based on current design.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Rebecca&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 16:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406123#M151110</guid>
      <dc:creator />
      <dc:date>2012-12-04T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation using GetFieldSelection</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406124#M151111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MonthField=,YearField=,DateField={"&amp;gt;=$(=YearStart(Max(DateField)))&amp;lt;=$(=MonthEnd(Max(DateField)))"}&amp;gt;} FieldName)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 17:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406124#M151111</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-04T17:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation using GetFieldSelection</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406125#M151112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; Thank you Mayil!&amp;nbsp; I was putting the &amp;lt;= in the wrong place.&amp;nbsp; I appreciate your help!!&amp;nbsp; Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 17:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-using-GetFieldSelection/m-p/406125#M151112</guid>
      <dc:creator />
      <dc:date>2012-12-04T17:48:12Z</dc:date>
    </item>
  </channel>
</rss>

