<?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: Count, Sum, Divide in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784346#M61133</link>
    <description>&lt;P&gt;In the Chart:&lt;/P&gt;&lt;P&gt;Sum(C2/C1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV07.PNG" style="width: 206px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49482iF0644A83C9BAF2C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV07.PNG" alt="commQV07.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 19:49:58 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-02-19T19:49:58Z</dc:date>
    <item>
      <title>Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784295#M61130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I hope someone will be able to help me&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kashia1122_0-1613752876847.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49460iAC3F03FDAB19DC09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kashia1122_0-1613752876847.png" alt="Kashia1122_0-1613752876847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with 4 columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kashia1122_1-1613752877068.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49461iC76DE88770AECE43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kashia1122_1-1613752877068.png" alt="Kashia1122_1-1613752877068.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id -&amp;gt; is the product number; Exp_1, Exp_2, Exp_3 is part of the product.&lt;/P&gt;&lt;P&gt;I need to present data in a table where there will be one column containing data from columns (Exp_1, Exp_2, Exp_3) and number of occurrences of values ​​from column Exp_1, Exp_2, Exp_3&lt;/P&gt;&lt;P&gt;for example, for one id in the Exp_1 column I have the value A and in the Exp_2 column I have the value A. My result for A in the new column should be 1 because I count the amount A in all columns for one id and divide by the number of non-empty columns fields for one id&lt;/P&gt;&lt;P&gt;for example, for an id of 4, C should be 0.5 and A 0.5.&lt;/P&gt;&lt;P&gt;finally I need the sum of the values ​​in the new column (number Exp)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kashia1122_2-1613752877082.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49462i3B6A8B9A0C668AF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kashia1122_2-1613752877082.png" alt="Kashia1122_2-1613752877082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 16:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784295#M61130</guid>
      <dc:creator>Kashia1122</dc:creator>
      <dc:date>2021-02-19T16:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784344#M61132</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    id, Exp1, Exp2, Exp3
    1, A, A, 
    2, B, , 
    3, A, B, A
    4, C, A, 
    5, A, C, B
    6, C, , 
];

tab1X:
CrossTable(Exp,Value)
LOAD * Resident tab1;

Left Join(tab1X)
LOAD id, Count(If(Len(Value)&amp;gt;0,Value)) As C1
Resident tab1X
Group By id;

Left Join(tab1X)
LOAD id, Value, Count(If(Len(Value)&amp;gt;0,Value)) As C2
Resident tab1X
Group By id, Value;

Drop Table tab1;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Feb 2021 19:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784344#M61132</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-19T19:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784346#M61133</link>
      <description>&lt;P&gt;In the Chart:&lt;/P&gt;&lt;P&gt;Sum(C2/C1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV07.PNG" style="width: 206px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49482iF0644A83C9BAF2C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV07.PNG" alt="commQV07.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 19:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784346#M61133</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-19T19:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784409#M61137</link>
      <description>&lt;P&gt;I think, I should use AGGR here. But please confirm the sum for A.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV09.PNG" style="width: 264px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49496i4A656AA35E5BF656/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV09.PNG" alt="commQV09.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 15:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784409#M61137</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-20T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784495#M61152</link>
      <description>&lt;P&gt;Thank you Saran7de &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it is working perfectly. This is what I needed. I used AGGR.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 18:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784495#M61152</guid>
      <dc:creator>Kashia1122</dc:creator>
      <dc:date>2021-02-21T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count, Sum, Divide</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784511#M61155</link>
      <description>&lt;P&gt;If it answered, please close the thread by selecting the solution&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 00:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Sum-Divide/m-p/1784511#M61155</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-22T00:07:29Z</dc:date>
    </item>
  </channel>
</rss>

