<?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: Logic help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375853#M817933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have Date field to define the latest transaction,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the below expression, and it is working only if we select any case references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;aggr(sum({&amp;lt;Date={"$(=Max(&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Date))"} &amp;gt;}Secure),&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Reference)+sum(TotalPaid&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;please suggest&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Ganesh&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 07:43:15 GMT</pubDate>
    <dc:creator>ganeshreddy</dc:creator>
    <dc:date>2017-08-24T07:43:15Z</dc:date>
    <item>
      <title>Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375851#M817931</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 style="color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;When we calculate the case total at the same grain it works fine.&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;If we calculate case total at case reference level it does not working, this is because of all case secure are added together(case total = case secure + case settled)&lt;/P&gt;&lt;P style="margin: 10px 0 0; color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;For total at case reference level we need to take the latest case secure and add it to the sum of all the paid amount for that case reference.&lt;/P&gt;&lt;P style="margin: 10px 0 0; color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;Please find attached spread sheet, and can anyone suggest how to achieve/calculate '&lt;SPAN style="color: #c00000; font-size: 14.6667px; font-weight: bold;"&gt;Total for the case (latest case secure + total paid)' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375851#M817931</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375852#M817932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a field/logic to define which transaction is latest ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375852#M817932</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-24T07:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375853#M817933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have Date field to define the latest transaction,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the below expression, and it is working only if we select any case references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;aggr(sum({&amp;lt;Date={"$(=Max(&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Date))"} &amp;gt;}Secure),&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Reference)+sum(TotalPaid&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;please suggest&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Ganesh&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375853#M817933</guid>
      <dc:creator>ganeshreddy</dc:creator>
      <dc:date>2017-08-24T07:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375854#M817934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have a time field to decide the recentness and the load order defines the same, you could create a new field like: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174477_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and then at UI use firstsortedvalue() like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174478_Capture.PNG" style="height: 235px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375854#M817934</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-24T07:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375855#M817935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.8px; font-family: arial, sans-serif; color: #222222;"&gt;&lt;STRONG&gt;&lt;EM&gt;Rangesum&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;(Firstsortedvalue(Secure&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;, -Date), sum(TotalPaid&lt;/EM&gt;&lt;SPAN style="font-size: 12.8px; font-family: arial, sans-serif; color: #222222;"&gt;&lt;EM&gt;))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375855#M817935</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-24T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Logic help</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375856#M817936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As set analysis works once per chart, this can't be done using set analysis, use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(Date =max(total &amp;lt;Reference&amp;gt; Date),&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Secure),&lt;SPAN style="font-size: 13.3333px;"&gt;Reference))+&lt;SPAN style="font-size: 12.8px; font-family: arial, sans-serif; color: #222222;"&gt;sum(TotalPaid&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8px; font-family: arial, sans-serif; color: #222222;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-help/m-p/1375856#M817936</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-24T09:07:23Z</dc:date>
    </item>
  </channel>
</rss>

