<?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: Total in KPI depend on dimension in table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894542#M73799</link>
    <description>&lt;P&gt;Your 'IF' expression set 'Null()' if the anwser is not the same in the column "Main Account" and "Acount".&amp;nbsp; It´s a syntax error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If( Truth you are searching for, If its Right Result, If it´s wrong result)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I could not understand what you want with that ''IF'' expression. Maybe if you need to show the revenue in the front, you could use the a simple SUM in the KPI.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SUM({&amp;lt;"Main Account"="Account"&amp;gt;}Revenue)&lt;BR /&gt;&lt;BR /&gt;And the result '100' is right actually.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 20:37:43 GMT</pubDate>
    <dc:creator>GabrielFonsecaz</dc:creator>
    <dc:date>2022-02-17T20:37:43Z</dc:date>
    <item>
      <title>Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894480#M73792</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;Please check my print screen below.&lt;BR /&gt;The first table is a table with the data without any manipulation.&lt;BR /&gt;In the second table I have a column with IF statement&amp;nbsp; :&lt;BR /&gt;IF(Main Account = Account , Campaign , Null() ) &lt;BR /&gt;And based on this "if", the SUN(Revenue) changes from 300$ to 100$ (I'm filtering nulls out of the table therefore I'm getting only the 100$ row).&lt;BR /&gt;&lt;BR /&gt;I need to show in KPI object the SUM(Revenue) as shown in the second table = 100$.&lt;/P&gt;
&lt;P&gt;How can I do that?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chloe_0-1645119630273.png" style="width: 515px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72558iFA7FC7EA6543037F/image-dimensions/515x183?v=v2" width="515" height="183" role="button" title="chloe_0-1645119630273.png" alt="chloe_0-1645119630273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank,&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 17:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894480#M73792</guid>
      <dc:creator>chloe</dc:creator>
      <dc:date>2022-02-17T17:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894502#M73796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Feels like this should do it,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(IF([Main Account] = Account , Revenue))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not sure if it should need an AGGR, can you try?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Chris.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 18:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894502#M73796</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2022-02-17T18:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894506#M73797</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not working.&lt;BR /&gt;I tried :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(IF([Main Account] = Account , Revenue))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and also:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(aggr(Sum(IF([Main Account] = Account , Revenue),Campaign))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any other idea? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 19:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894506#M73797</guid>
      <dc:creator>chloe</dc:creator>
      <dc:date>2022-02-17T19:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894538#M73798</link>
      <description>&lt;P&gt;not sure but the sample data you shared, the expression by&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28968"&gt;@chrismarlow&lt;/a&gt;&amp;nbsp;looks okay&lt;/P&gt;
&lt;P&gt;Pl share better sample if its not working.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Digvijay_Singh_0-1645129767943.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72570iA0735B74F92EB095/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Digvijay_Singh_0-1645129767943.png" alt="Digvijay_Singh_0-1645129767943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894538#M73798</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-02-17T20:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894542#M73799</link>
      <description>&lt;P&gt;Your 'IF' expression set 'Null()' if the anwser is not the same in the column "Main Account" and "Acount".&amp;nbsp; It´s a syntax error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If( Truth you are searching for, If its Right Result, If it´s wrong result)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I could not understand what you want with that ''IF'' expression. Maybe if you need to show the revenue in the front, you could use the a simple SUM in the KPI.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SUM({&amp;lt;"Main Account"="Account"&amp;gt;}Revenue)&lt;BR /&gt;&lt;BR /&gt;And the result '100' is right actually.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1894542#M73799</guid>
      <dc:creator>GabrielFonsecaz</dc:creator>
      <dc:date>2022-02-17T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Total in KPI depend on dimension in table</title>
      <link>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1896943#M74021</link>
      <description>&lt;P&gt;Thank you all for your help.&lt;/P&gt;
&lt;P&gt;I solved it using&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28968"&gt;@chrismarlow&lt;/a&gt;&amp;nbsp;idea but instead of AGGR by Campaign , I used Account :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr(sum(if(&lt;SPAN&gt;[Main Account] = Account&lt;/SPAN&gt; ,Revenue))),&lt;SPAN&gt;Account&lt;/SPAN&gt;))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-in-KPI-depend-on-dimension-in-table/m-p/1896943#M74021</guid>
      <dc:creator>chloe</dc:creator>
      <dc:date>2022-02-24T08:12:01Z</dc:date>
    </item>
  </channel>
</rss>

