<?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: Expression/script help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530344#M198228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If by active today you mean Ended is not blanc try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Renewed={1},Ended=Ended-{1}&amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way If i have to create flags I will populate the nulls with 0 in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2014 21:38:01 GMT</pubDate>
    <dc:creator>iktrayanov</dc:creator>
    <dc:date>2014-01-17T21:38:01Z</dc:date>
    <item>
      <title>Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530342#M198226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with dimension orders and month end date (aggregation of all month dates). Also we have several flags representing is an order new, ended or renewed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ended&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cancelled&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Renewed&lt;/P&gt;&lt;P&gt;31/01/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;31/12/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to calculate so that it will only count the renewed orders if the order is still active today?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530342#M198226</guid>
      <dc:creator />
      <dc:date>2014-01-17T21:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530343#M198227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use this &lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Renewed={1},Date={"&amp;gt;$(=Today()) "}&amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530343#M198227</guid>
      <dc:creator />
      <dc:date>2014-01-17T21:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530344#M198228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If by active today you mean Ended is not blanc try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Renewed={1},Ended=Ended-{1}&amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way If i have to create flags I will populate the nulls with 0 in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530344#M198228</guid>
      <dc:creator>iktrayanov</dc:creator>
      <dc:date>2014-01-17T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530345#M198229</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;Unforuntately doesnt seem to work.. If the orderID has has an eded flag status between the renewed and today it should be subscracted from the renew base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression doesnt seem to work for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530345#M198229</guid>
      <dc:creator />
      <dc:date>2014-01-17T21:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530346#M198230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason it should be populated with 0 instead of Null? Performance wise?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530346#M198230</guid>
      <dc:creator />
      <dc:date>2014-01-17T21:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530347#M198231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be easier to work with 0 than trying to select nulls in set analysis. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 21:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530347#M198231</guid>
      <dc:creator>iktrayanov</dc:creator>
      <dc:date>2014-01-17T21:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530348#M198232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally, how do you know which Order is still Active or not ? is based on date or any flag ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 02:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530348#M198232</guid>
      <dc:creator />
      <dc:date>2014-01-18T02:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530349#M198233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;IF(I&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;F(ISNULL(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Ended&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;,&lt;SPAN style="color: #000000;"&gt;0&lt;/SPAN&gt;,Ended)&lt;/SPAN&gt; + &lt;SPAN style="color: #ff0000;"&gt;Renewed&lt;/SPAN&gt;) = 1 , 'Active Renew' , 'Ended Renew')&lt;SPAN style="color: #0000ff;"&gt; as&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;[_Active or Ended Renew]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any order ID does not equal 1 than it has ended since Ended flag is 1 and Renewed flag is 1 so 1+1=2 which means its has been renewed and then ended.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 05:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530349#M198233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-18T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Expression/script help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530350#M198234</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;if the order begin date is smaller and the end date is larger than the comparison date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 09:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-script-help/m-p/530350#M198234</guid>
      <dc:creator />
      <dc:date>2014-01-18T09:19:15Z</dc:date>
    </item>
  </channel>
</rss>

