<?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: In a set analysis, getting a month and the month before it. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74933#M4968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you create Month_Year like this in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(date), 'M/YYYY') as Month_Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffcc00;"&gt;Month_Year&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;= {&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;$(=&lt;SPAN style="color: #ff0000;"&gt;Date(&lt;/SPAN&gt;AddMonths(Max(Month_year), -1)&lt;SPAN style="color: #ff0000;"&gt;, 'M/YYYY')&lt;/SPAN&gt;)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffcc00;"&gt;ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you need to make sure that format within your set analysis matches with the format of your Month_Year field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 11:47:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-09T11:47:16Z</dc:date>
    <item>
      <title>In a set analysis, getting a month and the month before it.</title>
      <link>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74932#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello qlik community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that im suffering with and a senior of mine before me that struggled with it too. Currently on the April version im trying to do this in a set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that i have constructed a date to look like this: if this was a date "3/25/2018 10:10:10 AM" it turns it to "3/2018" so only the month and the year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KPI 1 (On this KPI i want to show the latest year and month in the data)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so im writing something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #800000;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #3366ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffcc00;"&gt;Month_Year&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;'$(=Max(Month_year))'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ffcc00;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) ----&amp;gt; this works&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KPI 2 (On this KPI i want to show the year and month prior to the selection in KPI 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and for this one i try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #800000;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffcc00;"&gt;Month_Year&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;'$(=Max(Month_year) -1)'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ffcc00;"&gt;ID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;) -----&amp;gt; this doesnt work&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #ffcc00;"&gt;Month_Year&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;'$(=AddMonths(Max(Month_year), -1) )'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="color: #ffcc00;"&gt;ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&amp;nbsp; -----&amp;gt; this doesnt work either&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;also any kind of month manipulation just doesn't work in set analysis. Note that these operations work in a Text/Image Chart and i verified that it can work. but in set analysis it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 07:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74932#M4967</guid>
      <dc:creator>M_Bilto</dc:creator>
      <dc:date>2018-05-09T07:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: In a set analysis, getting a month and the month before it.</title>
      <link>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74933#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you create Month_Year like this in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(date), 'M/YYYY') as Month_Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3366ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffcc00;"&gt;Month_Year&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;= {&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #339966;"&gt;$(=&lt;SPAN style="color: #ff0000;"&gt;Date(&lt;/SPAN&gt;AddMonths(Max(Month_year), -1)&lt;SPAN style="color: #ff0000;"&gt;, 'M/YYYY')&lt;/SPAN&gt;)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ffcc00;"&gt;ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you need to make sure that format within your set analysis matches with the format of your Month_Year field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 11:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74933#M4968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: In a set analysis, getting a month and the month before it.</title>
      <link>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74934#M4969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/In-a-set-analysis-getting-a-month-and-the-month-before-it/m-p/74934#M4969</guid>
      <dc:creator>M_Bilto</dc:creator>
      <dc:date>2018-05-09T12:08:39Z</dc:date>
    </item>
  </channel>
</rss>

