<?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 Convert this expression into set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377476#M817609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below expression is for calculating previous month.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;=date(AddMonths(date#(max([FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate previous month based on date filter. It should not affected by any other selection like product name and rep id.&lt;/P&gt;&lt;P&gt;Bu using above normal exp. previous month calculation is changing as per selection like product name and rep id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>anindya_manna</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Convert this expression into set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377476#M817609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below expression is for calculating previous month.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Segoe UI',sans-serif; font-size: 10pt;"&gt;=date(AddMonths(date#(max([FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate previous month based on date filter. It should not affected by any other selection like product name and rep id.&lt;/P&gt;&lt;P&gt;Bu using above normal exp. previous month calculation is changing as per selection like product name and rep id&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/Convert-this-expression-into-set-expression/m-p/1377476#M817609</guid>
      <dc:creator>anindya_manna</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert this expression into set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377477#M817610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;=date(AddMonths(date#(max( &lt;STRONG&gt;{&amp;lt;product, repid, anyotherfield&amp;gt;}&lt;/STRONG&gt; [FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;Note: If you want this to be unresponsive to&lt;STRONG&gt; any&lt;/STRONG&gt; selection, you could just use &lt;STRONG&gt;{1}, &lt;/STRONG&gt;like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;date(AddMonths(max( &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;{&amp;lt;1&amp;gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt; [FSPM Month Number]),-1),'YYYYMM')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Segoe UI', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'Segoe UI', sans-serif;"&gt;&lt;EM&gt;Note: Here date#() is redundant (assuming your expression was a working one).&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 11:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377477#M817610</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-24T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert this expression into set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377478#M817611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;[FSPM Month Number]={"$(=&lt;SPAN style="color: #000000; font-family: 'Segoe UI', sans-serif; font-size: 13.3333px;"&gt;date(AddMonths(date#(max([FSPM Month Number]),'YYYYMM'),-1),'YYYYMM')&lt;/SPAN&gt;)"}&amp;gt;} yourvaluefield)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 11:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377478#M817611</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-08-24T11:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert this expression into set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377479#M817612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it the same issue? &lt;A href="https://community.qlik.com/thread/272324"&gt;How to calculate previous month ignoring other selection&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 11:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-this-expression-into-set-expression/m-p/1377479#M817612</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-08-24T11:09:43Z</dc:date>
    </item>
  </channel>
</rss>

