<?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: Help needed with max YEAR MONTH -1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239863#M862685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing how you have created YEAR_MONTH in the script, I am making an assumption that it is created using something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(TempDate), 'YYYY-MMM') as YEAR_Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is true, then you can try 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; font-size: 13px;"&gt;&lt;STRONG&gt;=Num(Count({&amp;lt;YEAR_MONTH = {"$(=Date(AddMonths(Max(YEAR_MONTH), -1), 'YYYY-MMM'))"}&amp;gt;}DISTINCT email), '###,###.')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 14:08:40 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-12T14:08:40Z</dc:date>
    <item>
      <title>Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239862#M862684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I want to show in a straight table the total count of emails and then in another column the total count of emails -1 month.&lt;/P&gt;&lt;P&gt;This way I can show the growth vs the previous month.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Right now to achieve the max total I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(count( distinct(email)), '###,###.') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar attached to my data too so I want something like the expression above -1 YEAR_MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any further info to help me.&lt;/P&gt;&lt;P&gt;I am trying to get this simple formula done today.&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Harry&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/Help-needed-with-max-YEAR-MONTH-1/m-p/1239862#M862684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239863#M862685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing how you have created YEAR_MONTH in the script, I am making an assumption that it is created using something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(TempDate), 'YYYY-MMM') as YEAR_Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is true, then you can try 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; font-size: 13px;"&gt;&lt;STRONG&gt;=Num(Count({&amp;lt;YEAR_MONTH = {"$(=Date(AddMonths(Max(YEAR_MONTH), -1), 'YYYY-MMM'))"}&amp;gt;}DISTINCT email), '###,###.')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239863#M862685</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-12T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239864#M862686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;The YEAR_MONTH was created with MMM_YYYY.&amp;nbsp; I know it should be called Month Year.&amp;nbsp; It's just the master calendar I am using.&lt;/P&gt;&lt;P&gt;I did change your formula to that code and got the totals for the previous month.&amp;nbsp; Not the overall total up until that month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my total now is 100,000 in Jan, I want to show that in Dec it was 90,000&lt;/P&gt;&lt;P&gt;Therefore it went up 10,000 this month.&amp;nbsp; Once Feb hits it should show a total of like 105,000 then I can use the -1 to compare to the 100,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you assist in changing to that? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239864#M862686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-12T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239865#M862687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are looking for cumulative value? Also, where exactly are you looking to view this information? Straight table or pivot table or text box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239865#M862687</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-12T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239866#M862688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe just add a numeric search:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Count({&amp;lt;YEAR_MONTH = {"&lt;SPAN style="font-size: 12pt;"&gt;&amp;lt;=&lt;/SPAN&gt;$(=Date(AddMonths(Max(YEAR_MONTH), -1), 'YYYY-MMM'))"}&amp;gt;}DISTINCT email), '###,###.')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Count({&amp;lt;YEAR_MONTH = {"&lt;SPAN style="font-size: 12pt;"&gt;&amp;lt;=&lt;/SPAN&gt;$(=Num(AddMonths(Max(YEAR_MONTH), -1)))"}&amp;gt;}DISTINCT email), '###,###.')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239866#M862688</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-12T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with max YEAR MONTH -1</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239867#M862689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Count({&amp;lt;YEAR_MONTH = {"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;lt;=&lt;/SPAN&gt;$(=Num(AddMonths(Max(YEAR_MONTH), -1)))"}&amp;gt;}DISTINCT email), '###,###.')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Worked perfectly for me in my straight table.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 15:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-max-YEAR-MONTH-1/m-p/1239867#M862689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-12T15:06:33Z</dc:date>
    </item>
  </channel>
</rss>

