<?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: Conditional dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439111#M1163659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi klangley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is in my load script, and I'm then adding the ContractMonth as a dimension in the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you suggesting using EndDate as the dimension with the logic you posted? That doesn't seem to to the trick unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 07:58:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-23T07:58:50Z</dc:date>
    <item>
      <title>Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439107#M1163655</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;I have a bar chart which shows active contract for the 6 previous months. The thing is there are fictitious end dates for some of the active contracts causing one of the months to be for the year 2099. These contracts still need to be counted, but should be grouped with the current month instead of June 2099.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have in my load script to create my dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AddMonths(MonthStart(StartDate),iterno()-1) as ContractMonth&lt;/P&gt;&lt;P&gt;While MonthStart(EndDate) &amp;gt;= AddMonths(MonthStart(StartDate),iterno()-1); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Company = {'24'}, Status = {A}&amp;gt;} CustomerNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439107#M1163655</guid>
      <dc:creator />
      <dc:date>2012-10-22T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439108#M1163656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I personally would handle this in the load script vs in a calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace EndDate with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(EndDate &amp;gt; now() , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(now()) &amp;amp; ' ' &amp;amp; year(now())&amp;nbsp; //or Whatever logice you use for current month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,EndDate) as EndDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439108#M1163656</guid>
      <dc:creator />
      <dc:date>2012-10-22T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439109#M1163657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the while loop to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;While MonthStart(&lt;STRONG&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Min(&lt;/SPAN&gt;EndDate&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;,Today())&lt;/SPAN&gt;&lt;/STRONG&gt;) &amp;gt;= AddMonths(MonthStart(StartDate),iterno()-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439109#M1163657</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-22T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439110#M1163658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This causes the script to fail and I'm promted to reload old dato (yes/no). Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 07:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439110#M1163658</guid>
      <dc:creator />
      <dc:date>2012-10-23T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439111#M1163659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi klangley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above is in my load script, and I'm then adding the ContractMonth as a dimension in the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you suggesting using EndDate as the dimension with the logic you posted? That doesn't seem to to the trick unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 07:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439111#M1163659</guid>
      <dc:creator />
      <dc:date>2012-10-23T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439112#M1163660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its my mistake&lt;/P&gt;&lt;P&gt;Check with this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;While MonthStart(&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #737373; font-family: Arial;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Min(&lt;/SPAN&gt;EndDate&lt;SPAN style="background-color: #ffffff;"&gt;,Today())&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;) &amp;gt;= AddMonths(MonthStart(StartDate),iterno()-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439112#M1163660</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-23T12:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439113#M1163661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That solved the issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439113#M1163661</guid>
      <dc:creator />
      <dc:date>2012-10-23T13:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439114#M1163663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wanted to say thanks for this! Works like charm in a Type 2 table I have where End-Dates are set to '31-DEC-9999'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-dimension/m-p/439114#M1163663</guid>
      <dc:creator>natebrunner</dc:creator>
      <dc:date>2014-12-10T19:06:40Z</dc:date>
    </item>
  </channel>
</rss>

