<?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 Result of expression between range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Result-of-expression-between-range/m-p/377008#M573429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with the result of an expression which does not understand, to put it in context of the situation, I have an asociative model for which there is a large fact table and some dimensions. There is also a draw isolated model in which there is a range qualification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is in a pivot table for which the result of an expression must be qualified according to the table of ranks. The rating makes this expression works well only for some ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression to evaluate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor ventas])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor presupuesto ciclico])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the expression to Qualify in ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;aggr(if( $(vCumplimientoPpto.)&amp;lt;=[Escalas compensacion mayoristas.Rango Max]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and $(vCumplimientoPpto.)&amp;gt;=[Escalas compensacion mayoristas.Rango Min] ,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&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; [Escalas compensacion mayoristas.Valor escala]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Escalas compensacion mayoristas.Valor escala],[Negocio compensacion])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where $(vCumplimientoPpto.) solve the formula that is contained in variable vCumplimientoPpto. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor ventas])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor presupuesto ciclico])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in the variable the formula are without "=" at begin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Pivot table result and Range Qualification Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pivot Table&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19758" class="jive-image-thumbnail jive-image" onclick="" alt="Pivot.png" src="https://community.qlik.com/legacyfs/online/19758_Pivot.png" width="450" /&gt; &lt;/P&gt;&lt;P&gt;Table of Qualification Ranges&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19759" class="jive-image-thumbnail jive-image" onclick="" alt="TableRanges.png" src="https://community.qlik.com/legacyfs/online/19759_TableRanges.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 13:59:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-10T13:59:59Z</dc:date>
    <item>
      <title>Result of expression between range</title>
      <link>https://community.qlik.com/t5/QlikView/Result-of-expression-between-range/m-p/377008#M573429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem with the result of an expression which does not understand, to put it in context of the situation, I have an asociative model for which there is a large fact table and some dimensions. There is also a draw isolated model in which there is a range qualification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is in a pivot table for which the result of an expression must be qualified according to the table of ranks. The rating makes this expression works well only for some ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression to evaluate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor ventas])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor presupuesto ciclico])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the expression to Qualify in ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;aggr(if( $(vCumplimientoPpto.)&amp;lt;=[Escalas compensacion mayoristas.Rango Max]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and $(vCumplimientoPpto.)&amp;gt;=[Escalas compensacion mayoristas.Rango Min] ,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&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; [Escalas compensacion mayoristas.Valor escala]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Escalas compensacion mayoristas.Valor escala],[Negocio compensacion])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where $(vCumplimientoPpto.) solve the formula that is contained in variable vCumplimientoPpto. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor ventas])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Sum({&amp;lt;Base={1}&amp;gt;} [Valor presupuesto ciclico])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in the variable the formula are without "=" at begin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Pivot table result and Range Qualification Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pivot Table&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19758" class="jive-image-thumbnail jive-image" onclick="" alt="Pivot.png" src="https://community.qlik.com/legacyfs/online/19758_Pivot.png" width="450" /&gt; &lt;/P&gt;&lt;P&gt;Table of Qualification Ranges&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19759" class="jive-image-thumbnail jive-image" onclick="" alt="TableRanges.png" src="https://community.qlik.com/legacyfs/online/19759_TableRanges.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Result-of-expression-between-range/m-p/377008#M573429</guid>
      <dc:creator />
      <dc:date>2012-08-10T13:59:59Z</dc:date>
    </item>
  </channel>
</rss>

