<?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: If values are repeated then desired value should reflect only at 1 place in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160371#M94110</link>
    <description>&lt;P&gt;count(CHDRNUM) and avg([Policies Issued]) should do the job.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 08:30:22 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-01-11T08:30:22Z</dc:date>
    <item>
      <title>If values are repeated then desired value should reflect only at 1 place</title>
      <link>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160365#M94108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am in one situation where in data policy numbers are repeated and through group by on client ID i am bringing number of policies purchased by client in original table. Since policies are repeated i am getting same numbers in front of all the policies.&lt;/P&gt;
&lt;P&gt;Ask is :- At front end in pivote chart object want to give total distinct policy count and total policies purchased.&lt;/P&gt;
&lt;P&gt;Below given is the data and expected summary.&lt;/P&gt;
&lt;TABLE width="412"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="91"&gt;DATA&lt;/TD&gt;
&lt;TD width="147"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="91"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="83"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;CHDRNUM&lt;/TD&gt;
&lt;TD&gt;PO_CLNTNUM&lt;/TD&gt;
&lt;TD&gt;Policies_Issued_count&lt;/TD&gt;
&lt;TD&gt;Ask is&lt;/TD&gt;
&lt;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t;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected summary&lt;/P&gt;
&lt;TABLE width="329"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="90.6354px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="147.042px"&gt;Look-in CHDRNUM distinct&lt;/TD&gt;
&lt;TD width="90.6562px"&gt;Policies Issued&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="90.6354px"&gt;55998480&lt;/TD&gt;
&lt;TD width="147.042px"&gt;5&lt;/TD&gt;
&lt;TD width="90.6562px"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160365#M94108</guid>
      <dc:creator>P_Kale</dc:creator>
      <dc:date>2024-01-11T08:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: If values are repeated then desired value should reflect only at 1 place</title>
      <link>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160371#M94110</link>
      <description>&lt;P&gt;count(CHDRNUM) and avg([Policies Issued]) should do the job.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 08:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160371#M94110</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-01-11T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: If values are repeated then desired value should reflect only at 1 place</title>
      <link>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160418#M94117</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/228839"&gt;@P_Kale&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There are different ways to achieve this, depending on your data structure and your desired output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PF some possible solutions:&lt;/P&gt;
&lt;P&gt;You can use the Count function with the Distinct modifier to count the distinct values of a field or expression. For example, Count (Distinct CHDRNUM) will count the distinct policy numbers for each client ID.&lt;/P&gt;
&lt;P&gt;You can use set analysis to specify the conditions for counting distinct values. For example, Count ({&amp;lt; [Status]= {'Active'} &amp;gt;} distinct [ID]) will count the distinct IDs that have at least one status active.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this must work fine for you&lt;/P&gt;
&lt;P&gt;If you found our response helpful then please click on “Accept as Solution” to mark this issue as resolved. This will also help other users who might have the same question as you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We appreciate your cooperation and feedback. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Deepak&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160418#M94117</guid>
      <dc:creator>deepaksahirwar</dc:creator>
      <dc:date>2024-01-11T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: If values are repeated then desired value should reflect only at 1 place</title>
      <link>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160420#M94118</link>
      <description>&lt;P&gt;Thanks Marcus_sommer.&lt;/P&gt;
&lt;P&gt;It is working fine.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-values-are-repeated-then-desired-value-should-reflect-only-at/m-p/2160420#M94118</guid>
      <dc:creator>P_Kale</dc:creator>
      <dc:date>2024-01-11T09:58:10Z</dc:date>
    </item>
  </channel>
</rss>

