<?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: Previous Year on Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220177#M866321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below link for CYTD and LYTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6163"&gt;YTQ, QTD, MTD and WTD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 10:37:55 GMT</pubDate>
    <dc:creator>neha_shirsath</dc:creator>
    <dc:date>2016-12-22T10:37:55Z</dc:date>
    <item>
      <title>Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220170#M866314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone explain how to get the previous ytd based on a year/month selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on Dec.2016. I'm getting the entire month of Dec 2015 instead of YTD&lt;/P&gt;&lt;P&gt;The code is below for current and previous&lt;IMG alt="Cap1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147329_Cap1.PNG" style="height: 52px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I greatly appreciate it&lt;/P&gt;&lt;P&gt;Jim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220170#M866314</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220171#M866315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using a calendar script in your dashboard. ? Can you share a sample app if possible ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220171#M866315</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-21T21:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220172#M866316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i'm not using a calendar script. i took a field within a data base called IHIDAT and separated it into month/year/day&lt;/P&gt;&lt;P&gt;using the qlikview functions(month,year,day). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220172#M866316</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-21T21:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220173#M866317</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;If you dont want the other selections make changes to your data use 1 in the set analysis. Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;IDPAGR={'MECH'},Year={"$(=max(Year)-1)")}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you forget to use "" in the YTD sentence "$(=max(Year)-1)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220173#M866317</guid>
      <dc:creator>joseduque</dc:creator>
      <dc:date>2016-12-21T21:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220174#M866318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expected output for YTD here? Can you share a sample app with some scrambled data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 21:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220174#M866318</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-21T21:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220175#M866319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible try the script attached with this and let me know how it works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 22:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220175#M866319</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-21T22:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220176#M866320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For YTD, you have to give a date range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 03:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220176#M866320</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-12-22T03:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220177#M866321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below link for CYTD and LYTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6163"&gt;YTQ, QTD, MTD and WTD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 10:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220177#M866321</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2016-12-22T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220178#M866322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim, find the qlikview components (&lt;A href="https://github.com/RobWunderlich/Qlikview-Components" title="https://github.com/RobWunderlich/Qlikview-Components"&gt;GitHub - RobWunderlich/Qlikview-Components: A library for common Qlikview Scripting tasks&lt;/A&gt;) on the internet and use the calendar generation script from there. Besides a default calendar it can also generate the set analysis statements you need for selecting specific time frames.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220178#M866322</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2016-12-22T11:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year on Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220179#M866323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha,&lt;/P&gt;&lt;P&gt;I tried using the formulas from this post. which are listed below. The CYTD works,but the PYTD is not giving me totals and show the dates from CYTD.&lt;/P&gt;&lt;P&gt;IHIDAT is in format YYYYMMDD and the Dateformat in the script is also set to YYYYMMDD. Does this make a difference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;CYTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Sum({&amp;lt;IDPAGR = {'EQUP'},OrderType-={'TI'}, Year=, Month=, IHIDAT={"&amp;gt;=$(=Num(YearStart(Max(IHIDAT))))&amp;lt;=$(=Max(IHIDAT))"},NOAGRP-={'INTR'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PYTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Sum({&amp;lt;IDPAGR = {'EQUP'},OrderType-={'TI'}, Year=, Month=, IHIDAT={"&amp;gt;=$(=Num(YearStart(Max(IHIDAT),-1)))&amp;lt;=$(=AddYear(Max(IHIDAT),-1)"},NOAGRP-={'INTR'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 13:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-on-Straight-table/m-p/1220179#M866323</guid>
      <dc:creator>jjking58</dc:creator>
      <dc:date>2016-12-22T13:44:47Z</dc:date>
    </item>
  </channel>
</rss>

