<?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: Set Analysis Greater than variable from row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788140#M1210265</link>
    <description>&lt;P&gt;You cannot create a set using row values. The set is calculated once for the chart. To do row by row processing you must use if(). In your case:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;sum({$&amp;lt;[Ciclo= &amp;gt;}if([Phase.NUM] &amp;gt; Right(NewCiclo,4)&amp;amp; Left(NewCiclo,2), Total))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 04:29:32 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2021-03-04T04:29:32Z</dc:date>
    <item>
      <title>Set Analysis Greater than variable from row</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788100#M1210261</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I am trying to achieve seems very easy, but I am facing some troubles.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I Have basically 3 dimensions:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Phase.NUM= Is a number (yyyymm),&amp;nbsp;&lt;BR /&gt;Ciclo = Cycle (number) (myyyy),&lt;/P&gt;&lt;P&gt;NewCiclo = Cycle as text (mm yyyy),&lt;/P&gt;&lt;P&gt;I am trying to get a table with the Sum of a "Total" only if my "Phase.NUM" is greater than my "NewCiclo", which need to be adjusted to the same format as Phase. Additionally, I have a filter applied on this page for Cycle Field that &lt;U&gt;should be ignored&amp;nbsp;for this table.&amp;nbsp;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;I could achieve partially with the code bellow, however, its not dynamically calculating based on every row of my table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part&amp;nbsp;&lt;EM&gt;{"&amp;gt;$(=Right(NewCiclo,4)&amp;amp;Left(NewCiclo,2))"}&lt;/EM&gt; is bringing a fixed value following the filter selected not the "NewCiclo" value from each row.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Code:&lt;/P&gt;&lt;P&gt;SUM( {1}&lt;BR /&gt;aggr({1}&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;sum({$&amp;lt;[Phase.NUM]={"&amp;gt;$(=Right(NewCiclo,4)&amp;amp;Left(NewCiclo,2))"}, Ciclo &amp;gt;}Total)&lt;/P&gt;&lt;P&gt;material, Ciclo&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The expected result should be something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucasD_0-1614807594463.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50396i5F3FBC848272FF52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucasD_0-1614807594463.png" alt="LucasD_0-1614807594463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Aggregating without "Phase.NUM" should get this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucasD_1-1614807994667.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50398iF345D925CEE9BE6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucasD_1-1614807994667.png" alt="LucasD_1-1614807994667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 21:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788100#M1210261</guid>
      <dc:creator>LucasD</dc:creator>
      <dc:date>2021-03-03T21:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Greater than variable from row</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788140#M1210265</link>
      <description>&lt;P&gt;You cannot create a set using row values. The set is calculated once for the chart. To do row by row processing you must use if(). In your case:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;sum({$&amp;lt;[Ciclo= &amp;gt;}if([Phase.NUM] &amp;gt; Right(NewCiclo,4)&amp;amp; Left(NewCiclo,2), Total))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 04:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788140#M1210265</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-03-04T04:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Greater than variable from row</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788316#M1210280</link>
      <description>&lt;P&gt;Thanks a lot, it worked!!!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Another tricky question... I need to do the same for the same row, based on a value from other row just like the table below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried analogous with the previous solution, but no success.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;(sum({$&amp;lt;Ciclo={'Actual'}&amp;gt;} if([Phase.NUM] &amp;gt;= Right(NewCiclo,4)&amp;amp; Left(NewCiclo,2), Total) + Sum({1} 0)))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What is getting complex, I guess, is that for this code the Phase.NUM parameter that I need is from rows which "NewCiclo = Actual" and the NewCiclo parameter is from the current row, I'm mixing up the things a little bit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucasD_1-1614862440132.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50444iD7B391A8669C2663/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucasD_1-1614862440132.png" alt="LucasD_1-1614862440132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The idea afterwards is to achieve this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucasD_2-1614862710149.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/50445i4F6D37EBA57B4D05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucasD_2-1614862710149.png" alt="LucasD_2-1614862710149.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 13:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788316#M1210280</guid>
      <dc:creator>LucasD</dc:creator>
      <dc:date>2021-03-04T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Greater than variable from row</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788449#M1210292</link>
      <description>&lt;P&gt;You'll need to use the TOTAL modifier to reference rows "outside your dimension"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/sum.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/sum.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than-variable-from-row/m-p/1788449#M1210292</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-03-04T16:35:00Z</dc:date>
    </item>
  </channel>
</rss>

