<?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: KPI If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1726222#M723428</link>
    <description>&lt;P&gt;Hi, &lt;SPAN&gt;Maybe you only need to set $(vCountYears) outside the aggr but it's hard to say where the issue can be because each $(expression) can have anything inside.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try adding different expressions with each part of the global expression to try to detect what is failing, ie, add one expression with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;(($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-(IF($(vBlendedRate_Paralegal)&amp;gt;200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ($(vNumberOfHours_Fees_Paralegal)/$(vCountYears))*200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;STRONG&gt;,Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Another with just:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;(($(vSpendTotalInvoiceUSD_Fees_Paralegal)&lt;/SPAN&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;STRONG&gt;,Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other with:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;$(vCountYears),&lt;STRONG&gt;Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 17:58:07 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-07-08T17:58:07Z</dc:date>
    <item>
      <title>KPI If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1725756#M723425</link>
      <description>&lt;P&gt;POST DELETED&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1725756#M723425</guid>
      <dc:creator>win_anthony</dc:creator>
      <dc:date>2024-11-16T00:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: KPI If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1725790#M723426</link>
      <description>&lt;P&gt;Hi, maybe usign an aggr to calculate vendor data for each vendor individually and a rangesum to sum all vendors values:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;num(&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;(($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-(IF($(vBlendedRate_Paralegal)&amp;gt;200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ($(vNumberOfHours_Fees_Paralegal)/$(vCountYears))*200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;STRONG&gt;,Vendor))&lt;/STRONG&gt;/($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'#.##0%')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 16:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1725790#M723426</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-07-07T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: KPI If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1726179#M723427</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp; thank you! I tried the expression provided but the overall output is still 0. However if I make a vendor selection, it is correctly displaying the savings percentage for the selected vendor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other minor adjustments to this expression that I can make to have the KPI reflect the overall savings percentage? FYI...I had to remove the contents of the post even though the information posted was anonymous. If you need more context, I will be happy to send a private message.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1726179#M723427</guid>
      <dc:creator>win_anthony</dc:creator>
      <dc:date>2020-07-08T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: KPI If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1726222#M723428</link>
      <description>&lt;P&gt;Hi, &lt;SPAN&gt;Maybe you only need to set $(vCountYears) outside the aggr but it's hard to say where the issue can be because each $(expression) can have anything inside.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try adding different expressions with each part of the global expression to try to detect what is failing, ie, add one expression with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;(($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-(IF($(vBlendedRate_Paralegal)&amp;gt;200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ($(vNumberOfHours_Fees_Paralegal)/$(vCountYears))*200,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;($(vSpendTotalInvoiceUSD_Fees_Paralegal)/$(vCountYears))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;STRONG&gt;,Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Another with just:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;(($(vSpendTotalInvoiceUSD_Fees_Paralegal)&lt;/SPAN&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;STRONG&gt;,Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other with:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;RangeSum(Aggr(&lt;/STRONG&gt;$(vCountYears),&lt;STRONG&gt;Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/KPI-If-Statement/m-p/1726222#M723428</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-07-08T17:58:07Z</dc:date>
    </item>
  </channel>
</rss>

