<?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: Date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715618#M1076561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually my requirement is to calculate (LYTD) sum( same the month of last year AMOUNT).&lt;/P&gt;&lt;P&gt;I'm having TP_Month format like JAN,FEB,...&lt;/P&gt;&lt;P&gt;I'm not getting correct result when i used the above expression&lt;/P&gt;&lt;P&gt;Please guide me how to calculate with the given requrement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 08:36:50 GMT</pubDate>
    <dc:creator>krishna20</dc:creator>
    <dc:date>2014-07-21T08:36:50Z</dc:date>
    <item>
      <title>Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715610#M1076553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problem in date format.&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;TP_MONTH={$(=MAX(TP_MONTH)))-12)},TP_YEAR=,TP_MONTH=&amp;gt;}TP_GROSS)&lt;/P&gt;&lt;P&gt;I'm having in datamodelling TP_MONTH as JAN,FEB,MARCH,APR.....&lt;/P&gt;&lt;P&gt;How can i take in set analysis as 1,2,3..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one pls provide sample one..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 07:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715610#M1076553</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T07:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715611#M1076554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is better if you ormat the month in the script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 07:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715611#M1076554</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-21T07:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715612#M1076555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;=SUM({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt; = {'$(=Date(Max(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;)-12,'MMM'))'},&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_YEAR=,TP_MONTH=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_GROSS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 07:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715612#M1076555</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-21T07:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715613#M1076556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add one more month column in number format (1,2,3...) . Use that field&amp;nbsp; here ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TDP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715613#M1076556</guid>
      <dc:creator />
      <dc:date>2014-07-21T08:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715614#M1076557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the "monthnames" in the first set expressions in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='£#,##0.00;-£#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715614#M1076557</guid>
      <dc:creator />
      <dc:date>2014-07-21T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715615#M1076558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I cant the change in the data modelling script.I'm not accessible to it. I need to change in my expression itself.So please guide me how to get in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krirshna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715615#M1076558</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T08:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715616#M1076559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that if you write Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;TP_MONTH&lt;/SPAN&gt;) it will be the max of a string ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715616#M1076559</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-21T08:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715617#M1076560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just to understand, you have &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt; as Jan, Feb, March and you want to convert them into 1,2,3. In your script, you are subtracting 12 months from &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt; which will always give you either 0 or negative month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to subtract months from relevant date in set analysis script. for example below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;TP_DATE={"$(=AddMonths(Max(TP_DATE),-12))"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_GROSS&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715617#M1076560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T08:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715618#M1076561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually my requirement is to calculate (LYTD) sum( same the month of last year AMOUNT).&lt;/P&gt;&lt;P&gt;I'm having TP_Month format like JAN,FEB,...&lt;/P&gt;&lt;P&gt;I'm not getting correct result when i used the above expression&lt;/P&gt;&lt;P&gt;Please guide me how to calculate with the given requrement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715618#M1076561</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715619#M1076562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Actually my requirement is to calculate (LYTD) sum( same the month of last year AMOUNT).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm having TP_Month format like JAN,FEB,...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm not getting correct result when i used the above expression&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please guide me how to calculate with the given requrement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715619#M1076562</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T08:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715620#M1076563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Actually my requirement is to calculate (LYTD) sum( same the month of last year AMOUNT).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm having TP_Month format like JAN,FEB,...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm not getting correct result when i used the above expression&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please guide me how to calculate with the given requrement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715620#M1076563</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T08:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715621#M1076564</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;First of all, you have to convert &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt; in date format in backend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_YEAR&lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;, 'YYYYMMM')) as TP_DATE,&lt;/P&gt;&lt;P&gt;Month(Date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_YEAR&lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;, 'YYYYMMM')) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then for last year YTD you may try below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum ({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_YEAR={"$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_YEAR&lt;/SPAN&gt;)-1)"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;&lt;/SPAN&gt;={"&amp;lt;=$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_MONTH&lt;/SPAN&gt;))"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TP_GROSS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PS: There might be a typo error in the script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 08:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715621#M1076564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715622#M1076565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a field in date format?&lt;/P&gt;&lt;P&gt;if you have it try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum ({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_DATE={"(&amp;gt;=$(=date(yearstart(addyears(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_DATE&lt;/SPAN&gt;),-1)))) &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=date(addyears(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TP_DATE&lt;/SPAN&gt;),-1))) &lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TP_GROSS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;not tested maybe some ")" missing&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715622#M1076565</guid>
      <dc:creator />
      <dc:date>2014-07-21T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715623#M1076566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;Even i changed in the script ,i'm getting the same result.&lt;/P&gt;&lt;P&gt;what may be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715623#M1076566</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715624#M1076567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Share some sample data with app for quick resolution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715624#M1076567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715625#M1076568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayadev,&lt;/P&gt;&lt;P&gt;i have attached the file here.which not modified.Can u pls tell whether the LYTD which i done is right ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 09:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715625#M1076568</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T09:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715626#M1076569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I quickly checked your logic for LYTD Premium and it seems to be fine. Even the result you are getting is correct. As per below, if currency=3 and premium=2 than sum of previous year TP_NetPremium_LC_3 which is 83132.15. And this is what you are getting in your dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62783_data.PNG.png" style="width: 620px; height: 215px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715626#M1076569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T10:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715627#M1076570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting previous year figure is right.But i need to show the data for previous year for same month.i.e; july.&lt;/P&gt;&lt;P&gt;can u please modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715627#M1076570</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T10:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715628#M1076571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not correct, you are not doing a LYTD you're filtering the whole last year&lt;/P&gt;&lt;P&gt;I should use TP_APPR_DT field is a date but un number format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LYTD formula:&lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vOptionCurrency = 1 and vOptionPremium = 1, Sum({&amp;lt;TP_APPR_DT={"&amp;gt;=$(=num(yearstart(addyears(Max(TP_APPR_DT),-1)))) &amp;lt;=$(=num(addyears(Max(TP_APPR_DT),-1))) "}&amp;gt;}TP_NetPremium_LC_1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vOptionCurrency = 1 and vOptionPremium = 2, Sum({&amp;lt;TP_APPR_DT={"&amp;gt;=$(=num(yearstart(addyears(Max(TP_APPR_DT),-1)))) &amp;lt;=$(=num(addyears(Max(TP_APPR_DT),-1))) "}&amp;gt;}TP_GrossPremium_LC_1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vOptionCurrency = 3 and vOptionPremium = 1, Sum({&amp;lt;TP_APPR_DT={"&amp;gt;=$(=num(yearstart(addyears(Max(TP_APPR_DT),-1)))) &amp;lt;=$(=num(addyears(Max(TP_APPR_DT),-1))) "}&amp;gt;}TP_NetPremium_LC_3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vOptionCurrency = 3 and vOptionPremium = 2, Sum({&amp;lt;TP_APPR_DT={"&amp;gt;=$(=num(yearstart(addyears(Max(TP_APPR_DT),-1)))) &amp;lt;=$(=num(addyears(Max(TP_APPR_DT),-1))) "}&amp;gt;}TP_GrossPremium_LC_3)))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715628#M1076571</guid>
      <dc:creator />
      <dc:date>2014-07-21T10:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Date format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format/m-p/715629#M1076572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But u didn't compared the month date here.sorry,i'm new this concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format/m-p/715629#M1076572</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2014-07-21T10:47:03Z</dc:date>
    </item>
  </channel>
</rss>

