<?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 Displaying a count in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-a-count-in-a-table/m-p/2455032#M98378</link>
    <description>&lt;P&gt;I have data which has Activities in one table and Assets in another table, and since an Asset can be related to mant activities and also an Activity can be related to many Assets, we have a Activity - Asset Mapping Table.&lt;/P&gt;
&lt;P&gt;I am listing all activities in a table and am looking for a way to display which Assets are associated with the Activity.&lt;/P&gt;
&lt;P&gt;I am satisfied with just showing a count of the Assets in a field, so I have created a Measure in the table called 'Associated Assets' and I would like this to display a number.&lt;/P&gt;
&lt;P&gt;I am using the following but get a zero count even when the Activity has Assets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-qlik"&gt;= SUM(AGGR(COUNT(DISTINCT IF(Activity_ID = {'*'}, Asset_ID)), Asset_ID))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mark.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 07:37:09 GMT</pubDate>
    <dc:creator>Markbhai</dc:creator>
    <dc:date>2024-05-22T07:37:09Z</dc:date>
    <item>
      <title>Displaying a count in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-a-count-in-a-table/m-p/2455032#M98378</link>
      <description>&lt;P&gt;I have data which has Activities in one table and Assets in another table, and since an Asset can be related to mant activities and also an Activity can be related to many Assets, we have a Activity - Asset Mapping Table.&lt;/P&gt;
&lt;P&gt;I am listing all activities in a table and am looking for a way to display which Assets are associated with the Activity.&lt;/P&gt;
&lt;P&gt;I am satisfied with just showing a count of the Assets in a field, so I have created a Measure in the table called 'Associated Assets' and I would like this to display a number.&lt;/P&gt;
&lt;P&gt;I am using the following but get a zero count even when the Activity has Assets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-qlik"&gt;= SUM(AGGR(COUNT(DISTINCT IF(Activity_ID = {'*'}, Asset_ID)), Asset_ID))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mark.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 07:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-a-count-in-a-table/m-p/2455032#M98378</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-05-22T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying a count in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-a-count-in-a-table/m-p/2455039#M98379</link>
      <description>&lt;P&gt;Ignore... - It seems I was in a over complicating mood.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding the measure count(DISTINCT [Asset_id]) was all that was needed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 07:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-a-count-in-a-table/m-p/2455039#M98379</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-05-22T07:47:22Z</dc:date>
    </item>
  </channel>
</rss>

