<?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: Previous month not working - Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495202#M185207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your month field isn't a number, but a dual value. That complicates things. One way is to use this expression:&lt;/P&gt;&lt;P&gt;count({&amp;lt;inLeveransDatumMonth={'&amp;gt;=$(=max(inLeveransDatumMonth)-1)&amp;lt;=$(=max(inLeveransDatumMonth)-1)'}&amp;gt;}Inlev_Radnummer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also create a numeric month field in the script and use that instead: &lt;EM&gt;autonumber(monthstart(MyDate),'MonthSerial') as MonthSerial&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 17:40:57 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-11-07T17:40:57Z</dc:date>
    <item>
      <title>Previous month not working - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495201#M185206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am attempting to show the previous month here, however it is not working according to plan.&lt;/P&gt;&lt;P&gt;the syntax seems correct however, so not sure if there is an underlying problem in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt; inLeveransDatumMonth = {$(=Max(inLeveransDatumMonth)-1)}&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Inlev_Radnummer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 17:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495201#M185206</guid>
      <dc:creator />
      <dc:date>2013-11-07T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month not working - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495202#M185207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your month field isn't a number, but a dual value. That complicates things. One way is to use this expression:&lt;/P&gt;&lt;P&gt;count({&amp;lt;inLeveransDatumMonth={'&amp;gt;=$(=max(inLeveransDatumMonth)-1)&amp;lt;=$(=max(inLeveransDatumMonth)-1)'}&amp;gt;}Inlev_Radnummer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also create a numeric month field in the script and use that instead: &lt;EM&gt;autonumber(monthstart(MyDate),'MonthSerial') as MonthSerial&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 17:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495202#M185207</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-07T17:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month not working - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495203#M185208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless there is a valid reason to use set analysis, this can work:&lt;/P&gt;&lt;P&gt;=Count(if(inLeveransDatumMonth = Max(all inLeveransDatumMonth)-1, Inlev_Radnummer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 17:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495203#M185208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month not working - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495204#M185209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this actually works, really cool i can perhaps use it in other places, thanks Michael your a star!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 18:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-not-working-Set-analysis/m-p/495204#M185209</guid>
      <dc:creator />
      <dc:date>2013-11-07T18:55:51Z</dc:date>
    </item>
  </channel>
</rss>

