<?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 Set Analysis MTD SPLM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229855#M81736</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 have a problem with my set analysis formula:&lt;/P&gt;&lt;P&gt;my formula for MTD is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;[Date_Cost Year]={"=$(=max([Date_Cost Year]))"},[Date_Cost Month]={"=$(=max([Date_Cost Month]))"},[Date_Cost Week]=,Date_Cost = {"&amp;lt;=$(=max(Date_Cost))"}&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It works good, but my formula for SPLM (Same periode last month) and SPLY (Same period last Year) not works and I don't know why &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;[Date_Cost]={"&amp;gt;=$(=Addmonths(monthstart(max([Date_Cost])),-1)) &amp;lt;=$(=Addmonths(max([Date_Cost]),-1))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;[Date_Cost Year]=,[Date_Cost Month]={"=$(=addMonths(max([Date_Cost Month]),-1))"},[Date_Cost Week]=,Date_Cost=&lt;BR /&gt;[Date_Cost]={"&amp;gt;=$(=AddMonths(Monthstart(max([Date_Cost])),-12)) &amp;lt;=$(=AddMonths(max([Date_Cost]),-12))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can you help me please is very urgent [:S]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 16:12:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-06T16:12:53Z</dc:date>
    <item>
      <title>Set Analysis MTD SPLM</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229855#M81736</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 have a problem with my set analysis formula:&lt;/P&gt;&lt;P&gt;my formula for MTD is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;[Date_Cost Year]={"=$(=max([Date_Cost Year]))"},[Date_Cost Month]={"=$(=max([Date_Cost Month]))"},[Date_Cost Week]=,Date_Cost = {"&amp;lt;=$(=max(Date_Cost))"}&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It works good, but my formula for SPLM (Same periode last month) and SPLY (Same period last Year) not works and I don't know why &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;[Date_Cost]={"&amp;gt;=$(=Addmonths(monthstart(max([Date_Cost])),-1)) &amp;lt;=$(=Addmonths(max([Date_Cost]),-1))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;[Date_Cost Year]=,[Date_Cost Month]={"=$(=addMonths(max([Date_Cost Month]),-1))"},[Date_Cost Week]=,Date_Cost=&lt;BR /&gt;[Date_Cost]={"&amp;gt;=$(=AddMonths(Monthstart(max([Date_Cost])),-12)) &amp;lt;=$(=AddMonths(max([Date_Cost]),-12))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can you help me please is very urgent [:S]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229855#M81736</guid>
      <dc:creator />
      <dc:date>2010-10-06T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Set Analysis MTD SPLM</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229856#M81737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing the AddMonths function is messing with the date formats. It's a common problem in Set Analysis. You probably need to use Date() to format the date after the AddMonths functions.&lt;/P&gt;&lt;P&gt;A good way to test it is to put your expressions into a straight table chart, but don't give them a label. Then when the chart is rendered, the label will be the set analysis expression with the dollar sign expansions evaluated. This will probably show you that the date formats are different than your first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;...={"&amp;gt;=$(=Date(Addmonths(monthstart(max([Date_Cost])),-1)), 'MM/DD/YYYY')...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;or whatever your actual date format is. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229856#M81737</guid>
      <dc:creator />
      <dc:date>2010-10-06T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: Set Analysis MTD SPLM</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229857#M81738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's working, Set analysis formulas are very complicate but when it works , it's very usefull &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;MTD [Date_Cost Year]={"=$(=max([Date_Cost Year]))"},[Date_Cost Month]={"=$(=max([Date_Cost Month]))"},[Date_Cost Week]=,Date_Cost = {"&amp;lt;=$(=max(Date_Cost))"}&lt;BR /&gt;SPLM Date_Cost={"&amp;gt;=$(=Date(AddMonths(min(Date_Cost),-1),'YYYY-MM-DD')) &amp;lt;=$(=Date(AddMonths(max(Date_Cost),-1),'YYYY-MM-DD'))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;SPLY Date_Cost={"&amp;gt;=$(=Date(AddMonths(min(Date_Cost),-12),'YYYY-MM-DD')) &amp;lt;=$(=Date(AddMonths(max(Date_Cost),-12),'YYYY-MM-DD'))"}, [Date_Cost Week]=,[Date_Cost Month]= ,[Date_Cost Year]=&lt;BR /&gt;&lt;BR /&gt;YTD [Date_Cost Year]={"=$(=max([Date_Cost Year]))"},[Date_Cost Month]=,[Date_Cost Week]=,Date_Cost = {"&amp;lt;=$(=max(Date_Cost))"}&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 13:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-MTD-SPLM/m-p/229857#M81738</guid>
      <dc:creator />
      <dc:date>2010-10-07T13:43:25Z</dc:date>
    </item>
  </channel>
</rss>

