<?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: Set analysis, month Shift in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383795#M143258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rajni.batra&amp;nbsp; I have done that it work. It Give me the month before Min(Implementation_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@whiteline thank you for your answer, I tried to put the date function to change the format dut it doesn't work.&lt;/P&gt;&lt;P&gt; Year_Months is at the format 'MMM - YYYY'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2012 11:16:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-04T11:16:25Z</dc:date>
    <item>
      <title>Set analysis, month Shift</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383792#M143255</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;I m working on a chart which start at one specified month (implementation date), but I would like to change it in order to start my graph one month earlier.&lt;/P&gt;&lt;P&gt;but when I change it doesn t work, and in the frame I have, "no data to display"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following formula work:&lt;/P&gt;&lt;P&gt;= Sum({$*1&amp;lt;Implementation_Dates ={'&amp;lt;&amp;gt;'''}, Year_Months={'&amp;gt;=$(=Min(Implementation_Dates))'}&amp;gt;}IF(Price_Evolution &amp;gt; 0.03, (Gross_Quantities))) *100&lt;/P&gt;&lt;P&gt;/ Sum({$*1&amp;lt;Implementation_Dates ={'&amp;lt;&amp;gt;'''}, Year_Months={'$(=Min(Implementation_Dates))'}&amp;gt;}TOTAL IF(Price_Evolution &amp;gt; 0.03, (Gross_Quantities)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to start one month earlier than "min(implementation date", then I tried the following formula, but it s not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum({$*1&amp;lt;Implementation_Dates ={'&amp;lt;&amp;gt;'''}, Year_Months={'&amp;gt;=$(=Addmonth(Min(Implementation_Dates),-1))'}&amp;gt;}IF(Price_Evolution &amp;gt; 0.03, (Gross_Quantities))) *100&lt;/P&gt;&lt;P&gt;/ Sum({$*1&amp;lt;Implementation_Dates ={'&amp;lt;&amp;gt;'''}, Year_Months={'$(=Addmonth(Min(Implementation_Dates),-1))'}&amp;gt;}TOTAL IF(Price_Evolution &amp;gt; 0.03, (Gross_Quantities)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried with a variable in the set analysis:&amp;nbsp;&amp;nbsp; ....Year_Months={'$(=implemoins1)'}...with implemoins1 = addmonths(min(Implementation_Dates),-1) it s not working either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me if someone have an idea to figure out this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383792#M143255</guid>
      <dc:creator />
      <dc:date>2012-09-04T10:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis, month Shift</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383793#M143256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;first check it in a ttext object &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;addmonths(min(Implementation_Dates),-1) i dont think it will return any value, from minimum value it self how it will calculate previous monthyear&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383793#M143256</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-09-04T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis, month Shift</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383794#M143257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is function Addmonth (in contrast to the min/max) returns date in a &lt;SPAN style="text-decoration: underline;"&gt;numeric&lt;/SPAN&gt; format.&lt;/P&gt;&lt;P&gt;So you have to transform the format manualy with the date() function.&lt;/P&gt;&lt;P&gt;Don't know the date format you're using so cann't&amp;nbsp; provide an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 10:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383794#M143257</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis, month Shift</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383795#M143258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rajni.batra&amp;nbsp; I have done that it work. It Give me the month before Min(Implementation_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@whiteline thank you for your answer, I tried to put the date function to change the format dut it doesn't work.&lt;/P&gt;&lt;P&gt; Year_Months is at the format 'MMM - YYYY'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 11:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383795#M143258</guid>
      <dc:creator />
      <dc:date>2012-09-04T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis, month Shift</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383796#M143259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could try to place this expression into a variable:&lt;/P&gt;&lt;P&gt;=Date(Addmonth(Min(Implementation_Dates),-1), 'MMM - YYYY')&lt;/P&gt;&lt;P&gt;And then use it with $() in your expresison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 12:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-month-Shift/m-p/383796#M143259</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T12:55:59Z</dc:date>
    </item>
  </channel>
</rss>

