<?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: WTD_PRVWTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17248#M786618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so.&lt;/P&gt;&lt;P&gt;In the backend, dates are essentially numbers. The way date and time work in RDBMS or Qlik or Excel is, The fraction part is your date and the decimal part is your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the time in India now is 43158.6506944444&lt;/P&gt;&lt;P&gt;Where 43158 is the date i.e. 02/27/2018 &amp;amp; the decimal part 6506944444 is the time which is 15:39.&lt;BR /&gt;So be it a number or a date format, it should not matter. It is just formatting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 10:10:12 GMT</pubDate>
    <dc:creator>siddharth_s3</dc:creator>
    <dc:date>2018-02-27T10:10:12Z</dc:date>
    <item>
      <title>WTD_PRVWTD</title>
      <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17247#M786617</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 am currently finding the WTD and Previous year WTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the formula as mentioned below&lt;/P&gt;&lt;P&gt;Current Year WTD:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;ISSUEDT_YEAR=, ISSUEDT_MONTH=, ISSUEDT=, DateKey={"&amp;gt;=$(=Num(WeekStart(Max(DateKey)))) &amp;lt;=$(=Max(DateKey))"}&amp;gt;}PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Year WTD:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;ISSUEDT_YEAR=, ISSUEDT_MONTH=, ISSUEDT=,&lt;/SPAN&gt;DateKey={"&amp;gt;=$(=Num(WeekStart(Max(DateKey), -52)))&amp;lt;=$(=WeekEnd(AddYears(Max(DateKey), -1)))"}&amp;gt;} PREMIUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concern is we are changing the weekstart into numerical format but we are leaving the weekend to calculate as date format, how is the formula picking up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Year WTD is calculating current year premium. Is there anything I need to change in the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Karthik&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/WTD-PRVWTD/m-p/17247#M786617</guid>
      <dc:creator>karthikoffi27se</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: WTD_PRVWTD</title>
      <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17248#M786618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so.&lt;/P&gt;&lt;P&gt;In the backend, dates are essentially numbers. The way date and time work in RDBMS or Qlik or Excel is, The fraction part is your date and the decimal part is your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the time in India now is 43158.6506944444&lt;/P&gt;&lt;P&gt;Where 43158 is the date i.e. 02/27/2018 &amp;amp; the decimal part 6506944444 is the time which is 15:39.&lt;BR /&gt;So be it a number or a date format, it should not matter. It is just formatting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17248#M786618</guid>
      <dc:creator>siddharth_s3</dc:creator>
      <dc:date>2018-02-27T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: WTD_PRVWTD</title>
      <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17249#M786619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;ISSUEDT_YEAR=, ISSUEDT_MONTH=, ISSUEDT=, DateKey={"&amp;gt;=$(=Num(WeekStart(AddYears(Max(DateKey), -1))))&amp;lt;=$(=Floor(WeekEnd(AddYears(Max(DateKey), -1))))"}&amp;gt;} PREMIUM)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17249#M786619</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-27T10:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: WTD_PRVWTD</title>
      <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17250#M786620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below &lt;/P&gt;&lt;P&gt;Previous Year WTD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;ISSUEDT_YEAR=, ISSUEDT_MONTH=, ISSUEDT=,DateKey={"&amp;gt;=$(=Num(WeekStart(AddYears(Max(DateKey), -1))))&amp;lt;=$(=Num(WeekEnd(AddYears(Max(DateKey), -1))))"}&amp;gt;} PREMIUM)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17250#M786620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T12:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: WTD_PRVWTD</title>
      <link>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17251#M786621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WTD-PRVWTD/m-p/17251#M786621</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2018-02-27T19:31:11Z</dc:date>
    </item>
  </channel>
</rss>

