<?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 year start in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147281#M630563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not able to open QVWs at the moment. Maybe someone else can help you with your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 18:01:43 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-09-05T18:01:43Z</dc:date>
    <item>
      <title>Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147276#M630558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a field called month and in that the data like Jan-15,Feb-15.....May-16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now first thing i needed is I need to get Jan-16..If&amp;nbsp; i select May-16 i am getting as Jan-16 by writing the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearStart(S5_Month2) and for monthend i have given like this MonthEnd(S5_Month2)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to write an expression like sum(if(S5_Month2&amp;gt;='1/1/2016', if(S5_Month2&amp;lt;='5/1/2016',([S5_Leads])))) without hard coding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147276#M630558</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147277#M630559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert your S5_Month2 to a date file using Date#() function, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S5_Month2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monthstart(Date#(S5_Month2,'MMM-YY')) as S5_Month2_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;Sum(If( S5_Month2_Date &amp;gt;= Yearstart(Today()) and S5_Month2_Date &amp;lt;= /*how you derived '5/1/2016' */ , [S5_Leads]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147277#M630559</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-05T17:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147278#M630560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot stefan.. i have almost done but i needed slight help when i selecting the filter of May-16 by giving the following expression as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearStart(S5_Month2) then i am getting as Jan-16 but can you pls tell me how can i achieve Jan-15..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because by hard coding i have written the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(if(S5_Month2&amp;gt;='1/1/2016', if(S5_Month2&amp;lt;='5/1/2016',([S5_Leads]))))-sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='5/1/2015',([S5_Leads])))))/sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='5/1/2015',([S5_Leads]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is if i select filter of month the values should display according the filter i selected in month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if i select Apr in the filter then the expression should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=(sum(if(S5_Month2&amp;gt;='1/1/2016', if(S5_Month2&amp;lt;='4/1/2016',([S5_Leads]))))-sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='4/1/2015',([S5_Leads])))))/sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='4/1/2015',([S5_Leads]))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I explained you by hard coding but now i want to remove hard coding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kindly suggest..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you require anything more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147278#M630560</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147279#M630561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the second argument to yearstart() function to get the previous year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;YearStart(&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;date[, period_no[, first_month_of_year]]&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;=Yearstart(Today(), -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to apply set analysis to be able to access records outside your current selections, though (depending on which field you make active selections and how this field is linked to your S5 fields):&lt;/P&gt;&lt;P&gt;&lt;A href="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting" title="http://aftersync.com/blog/the-magic-of-set-analysis-point-in-time-reporting"&gt;The Magic of Set Analysis - Point In Time Reporting • Blog • AfterSync&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147279#M630561</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-05T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147280#M630562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the qvw ... pls have a look and kindly suggest.. i m bit confused.. Pls tell me how can i achieve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147280#M630562</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T18:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147281#M630563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am not able to open QVWs at the moment. Maybe someone else can help you with your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147281#M630563</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-05T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147282#M630564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem..But i have given the following expression as suggested by you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(If( S5_Month2 &amp;gt;= Yearstart(Today()) , if(S5_Month2 &amp;lt;=MonthEnd(S5_Month2) , [S5_Leads])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the right total and i m getting just total of the selected month..not all the 5 months total..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147282#M630564</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147283#M630565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;S5_Month2={"&amp;gt;=$(=Date(vMonthStart,'MMM-YY'))&amp;lt;=$(=Date(vMonthEnd,'MMM-YY'))"}&amp;gt;}[S5_Leads])&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147283#M630565</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-09-05T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147284#M630566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Settu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.. this is what i needed for one expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for other expression i need to get Jan-15 to May-15 if i select may-16 filter.. kindly help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147284#M630566</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147285#M630567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with AddYear(Date,-1)&amp;nbsp; or AddMonths(Date,-12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;sum({&amp;lt;S5_Month2={"&amp;gt;=$(=Date(AddYears(vMonthStart,-1),'MMM-YY'))&amp;lt;=$(=Date(AddYears(vMonthEnd,-1),'MMM-YY'))"}&amp;gt;}[S5_Leads])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147285#M630567</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-09-05T18:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147286#M630568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have given the following hard coding expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(if(S5_Month2&amp;gt;='1/1/2016', if(S5_Month2&amp;lt;='5/1/2016',([S5_Leads]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='5/1/2015',([S5_Leads])))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='5/1/2015',([S5_Leads]))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your help i have completed the first expression i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=(sum(if(S5_Month2&amp;gt;='1/1/2016', if(S5_Month2&amp;lt;='5/1/2016',([S5_Leads]))))..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now i need to achieve the second expression i.e.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-sum(if(S5_Month2&amp;gt;='1/1/2015', if(S5_Month2&amp;lt;='5/1/2015',([S5_Leads])))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If&amp;nbsp; i give add months and in the filter if i select May-2016 it is showing as May-15 but i need to get Jan-15 if i select May-2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147286#M630568</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T18:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147287#M630569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried, what i have given for 2015? it is working for me..&lt;/P&gt;&lt;P&gt;and, do you still need if condition?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136480_Capture.JPG" style="height: 101px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147287#M630569</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-09-05T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need year start</title>
      <link>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147288#M630570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot...Sorry My bad didn't check... thank u so much...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 19:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-year-start/m-p/1147288#M630570</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2016-09-05T19:03:16Z</dc:date>
    </item>
  </channel>
</rss>

