<?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 Set Analysis on row level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-row-level/m-p/472497#M488163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QlikCommunity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I setup an app to do pricing simulations. For tracking/bugfixing reasons, I need to do the calculations on row level. The calculation requires nested ifs (see below example). The example is heavily simplified vs. the oringinal one, where I have more nesting and about 10m records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, wheter it makes sense / is possible to put such a calculation into set analysis on row level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;(i&lt;/STRONG&gt;)&lt;/STRONG&gt; The calculation on row level sits in a variable (&lt;SPAN style="color: #0000ff;"&gt;vSalesPriceSimIf&lt;/SPAN&gt;) --&amp;gt; works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if(TrxCat = 'Sales',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NumMin (vSalesMax, NumMax (vSalesMin, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;(if (QuantCl = 'be500', SalesQuant * vSalesBe500 / 10000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if (QuantCl = 'be1000', SalesQuant * vSalesBe1000 / 10000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if (QuantCl = 'ab1000', SalesQuant * vSalesAb1000 / 10000)))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ii)&lt;/STRONG&gt; From the variable I create different views / aggregations --&amp;gt; works fine&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;sum($(vSalesPriceSimIf))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(iii) &lt;/STRONG&gt;With Set Analysis, I could reach the following, also put into a variable (&lt;SPAN style="color: #0000ff;"&gt;vSalesPriceSimSet&lt;/SPAN&gt;) --&amp;gt; seems to work only with Sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;= (sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'be500'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesBe500 / 10000)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; + sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'be1000'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesBe1000 / 10000)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; + sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'ab1000'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesAb1000 / 10000))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; The question is, wheter it is possible withouth the Sum, respectively wheter it would bring any advantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 09:49:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-31T09:49:32Z</dc:date>
    <item>
      <title>Set Analysis on row level</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-row-level/m-p/472497#M488163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QlikCommunity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I setup an app to do pricing simulations. For tracking/bugfixing reasons, I need to do the calculations on row level. The calculation requires nested ifs (see below example). The example is heavily simplified vs. the oringinal one, where I have more nesting and about 10m records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, wheter it makes sense / is possible to put such a calculation into set analysis on row level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;(i&lt;/STRONG&gt;)&lt;/STRONG&gt; The calculation on row level sits in a variable (&lt;SPAN style="color: #0000ff;"&gt;vSalesPriceSimIf&lt;/SPAN&gt;) --&amp;gt; works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if(TrxCat = 'Sales',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NumMin (vSalesMax, NumMax (vSalesMin, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;(if (QuantCl = 'be500', SalesQuant * vSalesBe500 / 10000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if (QuantCl = 'be1000', SalesQuant * vSalesBe1000 / 10000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if (QuantCl = 'ab1000', SalesQuant * vSalesAb1000 / 10000)))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ii)&lt;/STRONG&gt; From the variable I create different views / aggregations --&amp;gt; works fine&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;sum($(vSalesPriceSimIf))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(iii) &lt;/STRONG&gt;With Set Analysis, I could reach the following, also put into a variable (&lt;SPAN style="color: #0000ff;"&gt;vSalesPriceSimSet&lt;/SPAN&gt;) --&amp;gt; seems to work only with Sum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;= (sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'be500'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesBe500 / 10000)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; + sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'be1000'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesBe1000 / 10000)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt; + sum ({$ &amp;lt;TrxCat = {'Sales'}, SalesQuantCl = {'ab1000'} &amp;gt;} NumMin (vSalesMax, NumMax (vSalesMin, SalesQuant * vSalesAb1000 / 10000))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; The question is, wheter it is possible withouth the Sum, respectively wheter it would bring any advantage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 09:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-on-row-level/m-p/472497#M488163</guid>
      <dc:creator />
      <dc:date>2012-12-31T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis on row level</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-row-level/m-p/472498#M488164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a qlik document with sample data that refelect the challenge??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-on-row-level/m-p/472498#M488164</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2014-10-22T18:02:09Z</dc:date>
    </item>
  </channel>
</rss>

