<?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 using set analysis or YTD function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527639#M197177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use only set analysis then consider using the &lt;A href="https://code.google.com/p/qlikview-components/"&gt;Qlikview Components library&lt;/A&gt; to create your calendars and get a lot of very handy set modifiers for free. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have very large amounts of data then an AsOf table created in the script might be a better option to keep performance at an acceptable level. If you haven't found it already have a look at this document for an explanation and example qvws: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 16:15:51 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-10-08T16:15:51Z</dc:date>
    <item>
      <title>YTD using set analysis or YTD function?</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527637#M197175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to determine a common or proven YTD expression, but was not sure if it conforms to best practices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is not to do accumulation or RangeSum.&amp;nbsp; I realize many do this in the script via flags, but I prefer in this case to use Set Analysis. But if flags are really the only way then I'm open to see sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better/simpler way using the YTD function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: arial, helvetica, sans-serif;"&gt;Date=is a standard date mm/dd/yyyy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"$(='&amp;gt;=' &amp;amp; YearStart(max({$} Date)) &amp;amp; '&amp;lt;=' &amp;amp; max({$} Today() ) )"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;TotalRevenue&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527637#M197175</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2013-10-08T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: YTD using set analysis or YTD function?</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527638#M197176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; you could look at &lt;A href="https://community.qlik.com/docs/DOC-4821"&gt;Simply create YTD, moving totals and comparisons versus Year Ago&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527638#M197176</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-08T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD using set analysis or YTD function?</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527639#M197177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use only set analysis then consider using the &lt;A href="https://code.google.com/p/qlikview-components/"&gt;Qlikview Components library&lt;/A&gt; to create your calendars and get a lot of very handy set modifiers for free. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have very large amounts of data then an AsOf table created in the script might be a better option to keep performance at an acceptable level. If you haven't found it already have a look at this document for an explanation and example qvws: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527639#M197177</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-08T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: YTD using set analysis or YTD function?</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527640#M197178</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;I would do it like this:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13812499216219835" jivemacro_uid="_13812499216219835" modifiedtitle="true"&gt;
&lt;P&gt;sum([$&amp;lt;Date = {"&amp;gt;=$(=YearStart(max(all Date))) &amp;lt;= $(=max(today()))"}&amp;gt;} TotalRevenue)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's simpler and you avoid confusion when using to many special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-using-set-analysis-or-YTD-function/m-p/527640#M197178</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-10-08T16:31:07Z</dc:date>
    </item>
  </channel>
</rss>

