<?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: Replicating table &amp;quot;Totals&amp;quot; in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577075#M42039</link>
    <description>&lt;P&gt;Thank you for the swift reply!&lt;/P&gt;&lt;P&gt;I believe this may have summed the actual values instead of the counts. I attached a pic of my visualization (and just noticed I spelled "unique" wrong). Disregarding the middle 2 fields, you can see the counts by segment_id. A user could be across all of these, and I need the 11,041 to show up in the KPI. I keep getting ~5400 since it is giving me unique across the board, and not summing the totals like the visualization is. The formula you sent is giving me ~1.2 million, which is why I think it is summing the values (segment_id?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 17:59:20 GMT</pubDate>
    <dc:creator>BPetosa</dc:creator>
    <dc:date>2019-05-06T17:59:20Z</dc:date>
    <item>
      <title>Replicating table "Totals" in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577068#M42037</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am having issues replicating the sum from the "Totals" section of a table visualization into a KPI. The "Total" defaults to the value I keep getting in the KPI, but I am trying to get the value I get when I change the Totals function to "sum".&amp;nbsp; I am counting distinct users (user_id) over a particular dimension (segment_id). The KPI keeps returning the distinct count across all the segment_id's, so if someone was in multiple, in only counts them once. The visualization sums per segment_id, so I get the desired total. I am pretty sure a pretty basic AGGR should solve this, but I can't get it to work. Here is the measure I am using for the user_id count:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({&amp;lt;TestType={2}&amp;gt;} distinct user_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried this and it gives me the same output:&lt;/P&gt;&lt;P&gt;aggr(count({&amp;lt;TestType={2}&amp;gt;}total distinct user_id),segment_id)&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 17:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577068#M42037</guid>
      <dc:creator>BPetosa</dc:creator>
      <dc:date>2019-05-06T17:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating table "Totals" in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577071#M42038</link>
      <description>try sum( aggr(count({&amp;lt;TestType={2}&amp;gt;}total distinct user_id),segment_id) )</description>
      <pubDate>Mon, 06 May 2019 17:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577071#M42038</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-06T17:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating table "Totals" in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577075#M42039</link>
      <description>&lt;P&gt;Thank you for the swift reply!&lt;/P&gt;&lt;P&gt;I believe this may have summed the actual values instead of the counts. I attached a pic of my visualization (and just noticed I spelled "unique" wrong). Disregarding the middle 2 fields, you can see the counts by segment_id. A user could be across all of these, and I need the 11,041 to show up in the KPI. I keep getting ~5400 since it is giving me unique across the board, and not summing the totals like the visualization is. The formula you sent is giving me ~1.2 million, which is why I think it is summing the values (segment_id?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 17:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-table-quot-Totals-quot-in-KPI/m-p/1577075#M42039</guid>
      <dc:creator>BPetosa</dc:creator>
      <dc:date>2019-05-06T17:59:20Z</dc:date>
    </item>
  </channel>
</rss>

