<?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: Year-1 / Month -1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419616#M428461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Sum({$&amp;lt;[Posting Date]={"=max(Year([Posting Date]))-1"}, [Posting Date]={"=max(Month([Posting Date]))-1"}&amp;gt;}[Gross Sales Amount]) , '&lt;STRONG&gt;###0'&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 09:07:54 GMT</pubDate>
    <dc:creator>prma7799</dc:creator>
    <dc:date>2017-10-24T09:07:54Z</dc:date>
    <item>
      <title>Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419614#M428459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope all is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the value of month -1 (of the selected month), YEAR-1 of the expression bellow :&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;=num(sum( [Active Base] )&amp;nbsp; ,'# ##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fields are month of date, year of date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 08:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419614#M428459</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2017-10-24T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419615#M428460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num(Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;Year={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=max(Year)-1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, Month={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=max(Month)-1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Active Base]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) , '# ##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;tim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419615#M428460</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2017-10-24T09:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419616#M428461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Sum({$&amp;lt;[Posting Date]={"=max(Year([Posting Date]))-1"}, [Posting Date]={"=max(Month([Posting Date]))-1"}&amp;gt;}[Gross Sales Amount]) , '&lt;STRONG&gt;###0'&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419616#M428461</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-10-24T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419617#M428462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num((sum({&amp;lt;[month of date]={$(=Month(TODAY())-1)}&amp;gt;} [Active Base]) + sum({&amp;lt;[Year of date]={$(=Month(TODAY())-1)}&amp;gt;} [Active Base])),'# ##0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419617#M428462</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2017-10-24T09:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419618#M428463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way in Month use the Datefield&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; font-size: 13.3333px;"&gt;=num(sum( &lt;STRONG&gt;{&amp;lt;Year={"$(=Max(Year)-1)"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Month={"$(=Max(Month(DateField))-1)"}&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;}&lt;/STRONG&gt; [Active Base] )&amp;nbsp; ,'# ##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419618#M428463</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-24T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419619#M428464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One question how many date fields you have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419619#M428464</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-24T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419620#M428465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one works, but you need top assign dollar symbol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419620#M428465</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-24T10:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419621#M428466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't write like this, because Set analysis explorer miffed with only one field for one time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419621#M428466</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-24T10:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419622#M428467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your suggestion but could you please explain more. I didn't understand ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419622#M428467</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-10-24T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419623#M428468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is simple, you added [posting Date] as 2 times In the left hand side of degrade expression. That means qlikview doesn't capture for which option need to calculate so the only option is either used year and month calculation from field called date field. Does it likable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419623#M428468</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-24T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419624#M428469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Use Following Expression &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Year-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(=max(Year)-1)&amp;gt;}[FieldName])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Month-1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Month={$(=max(Month)-1)&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;[FieldName]&lt;/SPAN&gt;)&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;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vikas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419624#M428469</guid>
      <dc:creator>vikasdesai</dc:creator>
      <dc:date>2017-10-24T10:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Year-1 / Month -1</title>
      <link>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419625#M428470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better you can try this and change the format of the month field because as you posted you have only Year and Month fields for date fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Num( &lt;/SPAN&gt;Sum({&amp;lt;Year={"$(=Max(Year)-1)"},Month={"$(=Date(Date#(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Month&lt;/SPAN&gt;)-1,'MM'),'MMM'))"} &amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Active Base] &lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;,'# ##0')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 13:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-1-Month-1/m-p/1419625#M428470</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-24T13:28:26Z</dc:date>
    </item>
  </channel>
</rss>

