<?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: Aggr with Above using if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1843467#M1215371</link>
    <description>&lt;P&gt;In few words I'm trying to show the amount of expired items over time.&lt;BR /&gt;To calculate it I need to process each item ( "Movimenti Scadenze" table) to check if its amount ( [Movimenti Scadenze.ImportoSCA] field )&amp;nbsp; is expired or not evaluating the below condition:&lt;BR /&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;Partite_CHIUSE.DataOperazione&amp;lt;%DataRegistrazione, 0, if( [Movimenti Scadenze.DataScadenzaSCA]&amp;lt;%DataRegistrazione, [Movimenti Scadenze.ImportoSCA], 0 ) )&lt;/P&gt;&lt;P&gt;CGMOV03L :&amp;nbsp; accounting entry table&lt;/P&gt;&lt;P&gt;The "Expired Amount"&amp;nbsp; &lt;STRONG&gt;MUST BE&lt;/STRONG&gt;&amp;nbsp; less or equal&amp;nbsp; to "Open Amount"&amp;nbsp; over time.&lt;/P&gt;&lt;P&gt;Payments are stored in "Partite_Chiuse" table,&amp;nbsp; where "Partite_CHIUSE.DataOperazione" field contains the payment date.&lt;/P&gt;&lt;P&gt;Items and Payments are linked with the field named "%ChiaveScadenzaPagata".&lt;/P&gt;&lt;P&gt;[Movimenti Scadenze.DataScadenzaSCA] : item expire date field&lt;/P&gt;&lt;P&gt;%DataRegistrazione : accounting entry date field&lt;/P&gt;&lt;P&gt;Please tell me if you need more informations.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 10:14:51 GMT</pubDate>
    <dc:creator>agigliotti</dc:creator>
    <dc:date>2021-10-07T10:14:51Z</dc:date>
    <item>
      <title>Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841578#M1215315</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm in troubles with the below expression:&lt;/P&gt;&lt;P&gt;=sum(&lt;BR /&gt;aggr(&lt;BR /&gt;RangeSum(&lt;BR /&gt;above(&lt;BR /&gt;sum(&lt;BR /&gt;if(&lt;BR /&gt;Partite_CHIUSE.DataOperazione&amp;lt;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;, 0, if( [Movimenti Scadenze.DataScadenzaSCA]&amp;lt;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;, [Movimenti Scadenze.ImportoSCA], 0 ) )&lt;BR /&gt;)&lt;BR /&gt;, 0, RowNo(TOTAL) ) )&lt;BR /&gt;, &lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;, %ChiaveScadenzaPagata )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;in a straight table using&amp;nbsp;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt; as dimension.&lt;/P&gt;&lt;P&gt;I need to compare the two fields Partite_CHIUSE.DataOperazione and [Movimenti Scadenze.DataScadenzaSCA] with &lt;STRONG&gt;%DataRegistrazione&amp;nbsp; of the current row&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;for all&amp;nbsp; above rows.&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;Could anybody help me to achieve it?&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6748"&gt;@stevedark&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5400"&gt;@Thiago_Justen_&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28684"&gt;@kaushiknsolanki&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks in advance for your time.&lt;/P&gt;&lt;P&gt;Best Regards and Take Care&lt;BR /&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 08:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841578#M1215315</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-10-07T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841640#M1215316</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;
&lt;P&gt;Thanks for the question. What is the result of this formula? Do you get an error message?&lt;/P&gt;
&lt;P&gt;It is difficult to test the formula without the data, but did you try to check each single part of it separately? it will be easier for you to find where it fails. For example, you could create a variable for the If() and verify that it shows the correct values. You can then use directly the variable in the formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 15:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841640#M1215316</guid>
      <dc:creator>Andrea_Bertazzo</dc:creator>
      <dc:date>2021-10-04T15:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841653#M1215318</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;I'm pretty sure that the problem is due to the value of&amp;nbsp;&lt;STRONG&gt;%DataRegistrazione &lt;/STRONG&gt;field used to compare the two fields value&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;I'd need to use the value of the current row even when processed inside the Above function for all previous rows.&lt;BR /&gt;I really hope now is more clear.&lt;BR /&gt;Thanks.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 15:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841653#M1215318</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-10-04T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841957#M1215328</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;
&lt;P&gt;It is difficult to troubleshoot this without the data. Check that the fields you are comparing are both in numeric format. It may be necessary that you convert them by using the num() funtion, e.g.: num(Partite_CHIUSE.DataOperazione)&amp;lt;num(&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;).&lt;/P&gt;
&lt;P&gt;I would do step by step tests on the formula. What happens if you evaluate just the comparisons, for example by putting the expression in a Text object in the Sense app: Partite_CHIUSE.DataOperazione&amp;lt;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;Are you getting the expected result? &lt;BR /&gt;Then you can proceed evaluating the rest of the formula step by step. This helps to understand where the problems are.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 07:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1841957#M1215328</guid>
      <dc:creator>Andrea_Bertazzo</dc:creator>
      <dc:date>2021-10-05T07:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842037#M1215332</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;I just attached a QVW document where you can see the actual and the expected result.&lt;/P&gt;&lt;P&gt;I hope it will be useful to understand what I'm trying to do.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 09:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842037#M1215332</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-10-05T09:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842194#M1215340</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;
&lt;P&gt;I had a look at your QVW. Selecting the 30th of June as date, I see that the values of the fields are the following:&lt;/P&gt;
&lt;P&gt;Partite_CHIUSE.DataOperazione=06/08/2021&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%DataRegistrazione=&lt;/STRONG&gt;30/0672021&lt;/P&gt;
&lt;P&gt;[Movimenti Scadenze.DataScadenzaSCA]=10/09/2021&lt;/P&gt;
&lt;P&gt;So, the if() give 0 as result as expected. Therefore, the Above() and the RangeSum() are also throwing 0 as result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842194#M1215340</guid>
      <dc:creator>Andrea_Bertazzo</dc:creator>
      <dc:date>2021-10-05T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842210#M1215341</link>
      <description>&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;In that table it's correctly showed the "Open Amount" over time.&lt;/P&gt;&lt;P&gt;What I'm trying to achieve is to get the "Expired Amount" that is part of the open amount.&lt;/P&gt;&lt;P&gt;ex. for 30th of June as date (with no selections) the expired amount should be about&amp;nbsp; of&amp;nbsp; 15.289,04&amp;nbsp; (that is necessary less than open amount of&amp;nbsp;18.771,04 ).&lt;/P&gt;&lt;P&gt;The user should not make any selections within the table otherwise data does not make sense.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842210#M1215341</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-10-05T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842939#M1215354</link>
      <description>&lt;P&gt;May be create a test straight table with the separate expression for -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Partite_CHIUSE.DataOperazione&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;&lt;SPAN&gt;, 0, if( [Movimenti Scadenze.DataScadenzaSCA]&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;%DataRegistrazione&lt;/STRONG&gt;&lt;SPAN&gt;, [Movimenti Scadenze.ImportoSCA], 0 ) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and then try to identify manually the final result and then compare with the results of final expression having above..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1842939#M1215354</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2021-10-06T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1843431#M1215370</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;, could you please explain your expression/logic (what you are trying to achieve) in words?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1843431#M1215370</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-10-07T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1843467#M1215371</link>
      <description>&lt;P&gt;In few words I'm trying to show the amount of expired items over time.&lt;BR /&gt;To calculate it I need to process each item ( "Movimenti Scadenze" table) to check if its amount ( [Movimenti Scadenze.ImportoSCA] field )&amp;nbsp; is expired or not evaluating the below condition:&lt;BR /&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;Partite_CHIUSE.DataOperazione&amp;lt;%DataRegistrazione, 0, if( [Movimenti Scadenze.DataScadenzaSCA]&amp;lt;%DataRegistrazione, [Movimenti Scadenze.ImportoSCA], 0 ) )&lt;/P&gt;&lt;P&gt;CGMOV03L :&amp;nbsp; accounting entry table&lt;/P&gt;&lt;P&gt;The "Expired Amount"&amp;nbsp; &lt;STRONG&gt;MUST BE&lt;/STRONG&gt;&amp;nbsp; less or equal&amp;nbsp; to "Open Amount"&amp;nbsp; over time.&lt;/P&gt;&lt;P&gt;Payments are stored in "Partite_Chiuse" table,&amp;nbsp; where "Partite_CHIUSE.DataOperazione" field contains the payment date.&lt;/P&gt;&lt;P&gt;Items and Payments are linked with the field named "%ChiaveScadenzaPagata".&lt;/P&gt;&lt;P&gt;[Movimenti Scadenze.DataScadenzaSCA] : item expire date field&lt;/P&gt;&lt;P&gt;%DataRegistrazione : accounting entry date field&lt;/P&gt;&lt;P&gt;Please tell me if you need more informations.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1843467#M1215371</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-10-07T10:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr with Above using if condition</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1854054#M1215808</link>
      <description>&lt;P&gt;It's much clear now, Do you have any dashboard which demon the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 08:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-with-Above-using-if-condition/m-p/1854054#M1215808</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-11-01T08:16:07Z</dc:date>
    </item>
  </channel>
</rss>

