<?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: need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572533#M1107409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dushan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this expressions&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;For Previous Year YTM:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;Date={'&amp;gt;=$(=YearStart(Today(), -1, 4))&amp;lt;=$(=AddMonths(Today(), -12))'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P&gt;&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;For Current Year YTM:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;Date={'&amp;gt;=$(=YearStart(Today(), 0, 4))&amp;lt;=$(=Today())'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 08:55:47 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-03-14T08:55:47Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572513#M1107382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to get last year saleQty and the this year saleQty by selecting a year and a month. Financial year begins from April. i m getting last year saleQty for a month like this.&lt;/P&gt;&lt;P&gt;Num((SUM({&amp;lt;year = {'$(=Max(year)-1)'}&amp;gt;}saleQty)),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now i want to get saleQty for a period(April to this month) for last year and this year. pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 12:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572513#M1107382</guid>
      <dc:creator />
      <dc:date>2014-03-13T12:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572514#M1107386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is anyone have a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572514#M1107386</guid>
      <dc:creator />
      <dc:date>2014-03-13T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572515#M1107388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dushan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have date field in your data model then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Year:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Month=, Quarter=, Year=, Date={'&amp;gt;=$(=YearStart(Today(), -1, 4))&amp;lt;=$(=YearEnd(Today(), -1, 4))'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Year:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Month=, Quarter=, Year=, Date={'&amp;gt;=$(=YearStart(Today(), 0, 4))&amp;lt;=$(=YearEnd(Today(), 0, 4))'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572515#M1107388</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T02:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572516#M1107389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, I only have year and month field in my model&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 02:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572516#M1107389</guid>
      <dc:creator />
      <dc:date>2014-03-14T02:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572517#M1107390</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;Arrive the Date field like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;MakeDate(Year, Month) AS DateFieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 03:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572517#M1107390</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T03:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572518#M1107391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jagan, expression is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 03:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572518#M1107391</guid>
      <dc:creator />
      <dc:date>2014-03-14T03:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572519#M1107393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Try this&lt;/P&gt;&lt;P&gt;For YTD&lt;/P&gt;&lt;P&gt;Sum({&amp;lt; Datefield = {'&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))'},FiscalYear=,Month= &amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;saleQty &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;here my two variable&lt;/P&gt;&lt;P&gt; vStartDate =MonthStart(Date(min(Datefield)))&lt;/P&gt;&lt;P&gt;vEndDate =Date(Max(Datefield))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for LYTD&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Datefield={'&amp;gt;=$(vPYStartDate)&amp;lt;=$(vPYEndDate)'},FiscalYear=, Month=&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;saleQty &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;here my two variable&lt;/P&gt;&lt;P&gt;vPYStartDate =AddMonths('$(vStartDate)',-12)&lt;/P&gt;&lt;P&gt;vPYEndDate =AddMonths('$(vEndDate)',-12)&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>Fri, 14 Mar 2014 04:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572519#M1107393</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-03-14T04:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572520#M1107394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, I need YTM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 04:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572520#M1107394</guid>
      <dc:creator />
      <dc:date>2014-03-14T04:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572521#M1107396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have year, month and Sum(saleQty) columns only. I want to get YTM and LYTM from April(bcoz it s the first month of financial year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 04:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572521#M1107396</guid>
      <dc:creator />
      <dc:date>2014-03-14T04:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572522#M1107398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohit, How can I change this to YTM and LYTM. because I only have year and month columns , no date column in my database. pls tell me how can i do this using year and month &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 04:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572522#M1107398</guid>
      <dc:creator />
      <dc:date>2014-03-14T04:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572523#M1107399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dushan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach some sample data in file, so that it would be easier to give solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572523#M1107399</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T05:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572524#M1107400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select the year '2010', month 'Feb', the below expression will give you the result for "Sum of the sales in month of Feb in both the years 2010 &amp;amp; 2009"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=Year),$(=Year-1)},Month={$(=Month)}&amp;gt;}Sales) &lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572524#M1107400</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2014-03-14T05:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572525#M1107401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;pls find the attached copy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572525#M1107401</guid>
      <dc:creator />
      <dc:date>2014-03-14T07:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572526#M1107402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls find the attached copy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572526#M1107402</guid>
      <dc:creator />
      <dc:date>2014-03-14T07:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572527#M1107403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned by Jagan, you could create date using month &amp;amp; year available in your model. Once date field is available then it is easy to make any kind of selections. You can even create flags in data model for YTM &amp;amp; LYTM, which will be helpfull in making charts.&lt;/P&gt;&lt;P&gt;Using InMonth() fn of Qlikview, you can create YTM,LYTM etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572527#M1107403</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-03-14T07:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572528#M1107404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to create one Date Field without That&amp;nbsp; not make it work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Date Field&amp;nbsp; like these and use in expression as of&amp;nbsp; jagan&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date(month) as Date&lt;/P&gt;&lt;P&gt;resident tablename;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572528#M1107404</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-14T07:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572529#M1107405</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;Use this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sale:&lt;/P&gt;&lt;P&gt;LOAD SALAMDDDT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALAMDTIME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALAMDUCD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALCAT as category, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALDDT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALDM, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALFLG, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALGWRQTY as growthQty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALGWRVAL as growthVal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALMON as month, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALQTY as saleQty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALQUOSALQTY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALQUOSALVAL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALRGN, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALRMARK, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALRUTID as location2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALSITE as location1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALSYSTGQTY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALSYSTGVAL, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTGCALDDT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTGCALTIME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTGCALUSD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTGQTY as targetQty, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTGVAL as targetVal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALTWN, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALUPR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALVAL as saleVal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALYEAR as year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(SALYEAR, SALMON) AS SalDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Left(SALSITE,1)='S' or Left(SALSITE,1)='M','Retail','WholeSale') as mainChannel&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use the above expressions.&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;For Previous Year YTM:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;month=,&amp;nbsp; year=, Date={'&amp;gt;=$(=YearStart(Today(), -1, 4))&amp;lt;=$(=AddMonths(Today(), -12))'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P&gt;&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;For Current Year YTM:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;month&lt;/SPAN&gt;=,&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;year&lt;/SPAN&gt;=, Date={'&amp;gt;=$(=YearStart(Today(), 0, 4))&amp;lt;=$(=Today())'}&amp;gt;}saleQty)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572529#M1107405</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-14T07:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572530#M1107406</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;Addition to the this script create Fiscal Year&lt;/P&gt;&lt;P&gt;use this in your script&lt;/P&gt;&lt;P&gt;if(num(Month(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;))&amp;lt;=3,Year(TempDate)-1,Year(TempDate)) as FiscalYear,&lt;/P&gt;&lt;P&gt;and the use this expression &lt;/P&gt;&lt;P&gt;CY YTM:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;={"$(=MonthName(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;)))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;LY YTM:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;={"$(=MonthName(addYears(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;),-1)))"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572530#M1107406</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-14T07:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572531#M1107407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;change this to above &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(num(Month(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SalDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))&amp;lt;=3,Year(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;)-1,Year(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SalDate&lt;/SPAN&gt;)) as FiscalYear&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572531#M1107407</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-14T07:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: need help</title>
      <link>https://community.qlik.com/t5/QlikView/need-help/m-p/572532#M1107408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jagan, your method is working. but when I select a year and month figure should change to selecting year and month. pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 08:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help/m-p/572532#M1107408</guid>
      <dc:creator />
      <dc:date>2014-03-14T08:51:26Z</dc:date>
    </item>
  </channel>
</rss>

