<?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: Where Clause in Script based on calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892389#M996297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need to aggregate the Market Value? If not, you can just use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;where (Risk Level &amp;gt; 2) and (Asset Class = 'Cash') and (Market Value &amp;gt; 1000000)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 21:25:07 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-07-06T21:25:07Z</dc:date>
    <item>
      <title>Where Clause in Script based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892388#M996296</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;&lt;/P&gt;&lt;P&gt;I have a table as attached, where there are 10 clients, with Risk Level, Asset Class and Market Value.&lt;/P&gt;&lt;P&gt;I am trying to create a sub list of clients (in script) with the following two criteria:&lt;/P&gt;&lt;P&gt;1) Risk Level should be higher than 2&lt;/P&gt;&lt;P&gt;2) Market value of Cash should be higher than 1,000,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that Risk Level higher than 2 is relative easy to realize in where clause. However, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Market value of Cash should be higher than 1,000,000 is tricky. I tried below, but does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;list_table:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;ER&lt;/P&gt;&lt;P&gt;Resident ER_IOS&lt;/P&gt;&lt;P&gt;where (Risk Level &amp;gt; 2) and (sum{&amp;lt;Asset Class = {'Cash'}&amp;gt;}(Market Value));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 20:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892388#M996296</guid>
      <dc:creator />
      <dc:date>2015-07-06T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Script based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892389#M996297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need to aggregate the Market Value? If not, you can just use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;where (Risk Level &amp;gt; 2) and (Asset Class = 'Cash') and (Market Value &amp;gt; 1000000)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 21:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892389#M996297</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-06T21:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Script based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892390#M996298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sinan. The problem here is that it should be Market Value for the asset class "Cash" to be &amp;gt; 1000000.&lt;/P&gt;&lt;P&gt;As there are different asset classes for each client.&lt;/P&gt;&lt;P&gt;Any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 08:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892390#M996298</guid>
      <dc:creator />
      <dc:date>2015-07-07T08:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Script based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892391#M996299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understood your requirements. You want to keep all other asset types that their risk levels &amp;gt; 2 and also asset type of Cash that market value &amp;gt; 1000000. If so, the below script should do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92126_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, the first table [All Assets] has every asset type that risk level is greater 2 and asset class &amp;lt;&amp;gt; 'Cash' so we have other types of assets. In the second table Cash, I only focused on the asset class of Cash and market value &amp;gt; 1,000,000. The data model will look like the below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92127_Capture.PNG" style="height: 352px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 13:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892391#M996299</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Script based on calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892392#M996300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 15:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-Script-based-on-calculation/m-p/892392#M996300</guid>
      <dc:creator />
      <dc:date>2015-07-07T15:46:27Z</dc:date>
    </item>
  </channel>
</rss>

