<?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: Dimension Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953746#M957324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if (dsc_mes&amp;lt;=Num(month(Today())) and dsc_mes &amp;gt;= Num(addmonth(today(),-2)), dsc_mes , null)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check the "suppress when value is null" box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me knoew&lt;/P&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="144" width="144"&gt;&lt;PARAM name="_Version" value="720916" /&gt;&lt;PARAM name="_ExtentX" value="3810" /&gt;&lt;PARAM name="_ExtentY" value="3810" /&gt;&lt;PARAM name="_StockProps" value="0" /&gt;&lt;PARAM name="DocName" value="E:\QlikSource\Test\TEST_WeekOfSupply.qvw" /&gt;&lt;PARAM name="UserName" value="" /&gt;&lt;PARAM name="Password" value="" /&gt;&lt;PARAM name="Publisher" value="" /&gt;&lt;PARAM name="AccessMode" value="0" /&gt;&lt;PARAM name="AllowDialog" value="1" /&gt;&lt;PARAM name="SRC" value="" /&gt;&lt;PARAM name="AutoScan" value="1" /&gt;&lt;PARAM name="ProductLevel" value="455114628" /&gt;&lt;PARAM name="ObjectID" value="Document\TX126" /&gt;&lt;PARAM name="DocName" value="E:\QlikSource\Test\TEST_WeekOfSupply.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\TX126" /&gt;&lt;/OBJECT&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 15:53:38 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2015-11-06T15:53:38Z</dc:date>
    <item>
      <title>Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953745#M957323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;i need some help with my dimension Month.&lt;/P&gt;&lt;P&gt;The thing is that i want to limit my dimension month only to the one selected and the 2 before that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have something like this but is something wrong&lt;/P&gt;&lt;P&gt;if (dsc_mes = {&amp;gt;=$(=max(dsc_mes),-3)&amp;lt;=$(=max(dsc_mes))&amp;gt;}, dsc_mes, ' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Simão Ribeiro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953745#M957323</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2015-11-06T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953746#M957324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if (dsc_mes&amp;lt;=Num(month(Today())) and dsc_mes &amp;gt;= Num(addmonth(today(),-2)), dsc_mes , null)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check the "suppress when value is null" box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me knoew&lt;/P&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="144" width="144"&gt;&lt;PARAM name="_Version" value="720916" /&gt;&lt;PARAM name="_ExtentX" value="3810" /&gt;&lt;PARAM name="_ExtentY" value="3810" /&gt;&lt;PARAM name="_StockProps" value="0" /&gt;&lt;PARAM name="DocName" value="E:\QlikSource\Test\TEST_WeekOfSupply.qvw" /&gt;&lt;PARAM name="UserName" value="" /&gt;&lt;PARAM name="Password" value="" /&gt;&lt;PARAM name="Publisher" value="" /&gt;&lt;PARAM name="AccessMode" value="0" /&gt;&lt;PARAM name="AllowDialog" value="1" /&gt;&lt;PARAM name="SRC" value="" /&gt;&lt;PARAM name="AutoScan" value="1" /&gt;&lt;PARAM name="ProductLevel" value="455114628" /&gt;&lt;PARAM name="ObjectID" value="Document\TX126" /&gt;&lt;PARAM name="DocName" value="E:\QlikSource\Test\TEST_WeekOfSupply.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\TX126" /&gt;&lt;/OBJECT&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953746#M957324</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-11-06T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953747#M957325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think instead of doing this on Month itself, you should try doing this on MonthYear field. May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Only({1&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthYear = {"$(='&amp;gt;=' &amp;amp; MonthName(AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthYear&lt;/SPAN&gt;), -2)) &amp;amp; '&amp;lt;=' &amp;amp; MonthName(Max(MonthYear)))"}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dsc_mes&lt;/SPAN&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dsc_mes&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where MonthYear field is created in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthName(DateField) as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953747#M957325</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-06T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953748#M957326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to use your condition in your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953748#M957326</guid>
      <dc:creator>syukyo_zhu</dc:creator>
      <dc:date>2015-11-06T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953749#M957327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot use set Analysis without an Aggregation function&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;if (dsc_mes &amp;gt;=addmonths(max(dsc_mes),-3) and dsc_mes&amp;lt;=max(dsc_mes), dsc_mes, null())&lt;/P&gt;&lt;P&gt;maybe this doesnot work&lt;/P&gt;&lt;P&gt;then you can define a variable with vMaxMonth = max(dsc_mes) and use variable in your calculated Dimension&lt;/P&gt;&lt;P&gt;if (dsc_mes &amp;gt;=addmonths(vMaxMonth),-3) and dsc_mes&amp;lt;=vMaxMonth,dsc_mes, null())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953749#M957327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T15:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Month</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953750#M957328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this can help you:&lt;/P&gt;&lt;P&gt;1. With this select for example the sales of currently month:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Month = {$(=Only(Month))}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;2. With this select the sales for the previous month in relation to the current selection:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Month= {$(=Only(Month)-1)}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Month/m-p/953750#M957328</guid>
      <dc:creator />
      <dc:date>2015-11-06T16:03:25Z</dc:date>
    </item>
  </channel>
</rss>

