<?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 Doing Expression Calculation in the Script and using aggregation table(using resident) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223897#M76368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;How to do the below calculation in the script level which I am doing it in the expression? I am trying to do this as the performance is poor when I am doing it in the front end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SUM(IF(StartDate&amp;lt;=date AND EndDate&amp;gt;=date,1))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For your information, Fields ImplStart and ImplEnd are loaded from table 'Data' and 'date' is getting loaded from another table called 'Calendar'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I thought of creating the aggregation table but the problem is data is getting loaded from two tables. So I dont know how to use the 'Resident' to load data from two tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2011 11:23:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-20T11:23:06Z</dc:date>
    <item>
      <title>Doing Expression Calculation in the Script and using aggregation table(using resident)</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223897#M76368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;How to do the below calculation in the script level which I am doing it in the expression? I am trying to do this as the performance is poor when I am doing it in the front end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SUM(IF(StartDate&amp;lt;=date AND EndDate&amp;gt;=date,1))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For your information, Fields ImplStart and ImplEnd are loaded from table 'Data' and 'date' is getting loaded from another table called 'Calendar'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I thought of creating the aggregation table but the problem is data is getting loaded from two tables. So I dont know how to use the 'Resident' to load data from two tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 11:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223897#M76368</guid>
      <dc:creator />
      <dc:date>2011-04-20T11:23:06Z</dc:date>
    </item>
    <item>
      <title>Doing Expression Calculation in the Script and using aggregation table(using resident)</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223898#M76369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Two options are there:&lt;/P&gt;&lt;P&gt;1. you have to JOIN the two tables and then you can use the same expression, OR&lt;/P&gt;&lt;P&gt;2. you can use APPLYMAP function without joining them&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223898#M76369</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-04-20T12:13:11Z</dc:date>
    </item>
    <item>
      <title>Doing Expression Calculation in the Script and using aggregation table(using resident)</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223899#M76370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco&lt;/P&gt;&lt;P&gt;Thanks for your suggestion dear!&lt;/P&gt;&lt;P&gt;But the problem here is I cannot use Join/ApplyMap as there is no key field through which I can Join/ApplyMap between the two tables. I will be thankful to you if you can do the required change in the application which is there in the below post.&lt;/P&gt;&lt;P&gt;I don't know how I am going to join both the tables in to one without any key fields between them.&lt;/P&gt;&lt;P&gt;Please do reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 13:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223899#M76370</guid>
      <dc:creator />
      <dc:date>2011-04-28T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Doing Expression Calculation in the Script and using aggregation table(using resident)</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223900#M76371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you post a sample of your qvw it would be much easier to figure this out b/c as is I'm pretty confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-Expression-Calculation-in-the-Script-and-using-aggregation/m-p/223900#M76371</guid>
      <dc:creator />
      <dc:date>2011-04-28T15:19:54Z</dc:date>
    </item>
  </channel>
</rss>

