<?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: Cross table/Distinct Sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827140#M68049</link>
    <description>&lt;P&gt;Not how I wanted to solve it but it's solved anyway:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DistinctNos =&amp;nbsp;sum(aggr(sum(DISTINCT [Number Arrived]), [ID]))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AND Unselecting the null value for dimension on the chart options.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(NumbersIn is now no longer needed)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 14:13:29 GMT</pubDate>
    <dc:creator>KD-Qlik</dc:creator>
    <dc:date>2021-08-06T14:13:29Z</dc:date>
    <item>
      <title>Cross table/Distinct Sum</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827096#M68044</link>
      <description>&lt;P&gt;I have just unpivoted a table/cross tabled and unfortunately that has meant my sum formula is now summing the duplicate values from the unpivot, Is there a better way to handle this other than editing my master item to include a distinct check?&lt;/P&gt;&lt;P&gt;Saying that I am also slightly stuck trying to fit distinct in so any help would be appreciated!&lt;/P&gt;&lt;P&gt;What I currently have (worked before the unpivot):&lt;/P&gt;&lt;P&gt;Sum(if(IsNull([source name]),[Number Arrived]=0,[Number Arrived]))&lt;/P&gt;&lt;P&gt;I now need to include "only do the above calculation for records with unique [ID]"&lt;/P&gt;&lt;P&gt;edit: I have my Master Item for DistinctNos and MasterItem for NumbersIn and thought I would be able to combine them in a separate item but no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DistinctNos =&amp;nbsp;sum(aggr(sum(DISTINCT [Number Arrived]), [ID]))&lt;/P&gt;&lt;P&gt;NumbersIn =&amp;nbsp;Sum(if(IsNull([source name]),[Number Arrived]=0,[Number Arrived]))&lt;BR /&gt;&lt;BR /&gt;I thought I would be able to say&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreicated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827096#M68044</guid>
      <dc:creator>KD-Qlik</dc:creator>
      <dc:date>2021-08-06T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table/Distinct Sum</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827100#M68046</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Sum-of-Sales-where-ID-is-DISTINCT/m-p/868082" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Sum-of-Sales-where-ID-is-DISTINCT/m-p/868082&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;^ I have found the above which returns the correct number when filtered (So now I just need to try work it into my formulas! (Will edit the answer when I work it out)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827100#M68046</guid>
      <dc:creator>KD-Qlik</dc:creator>
      <dc:date>2021-08-06T12:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cross table/Distinct Sum</title>
      <link>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827140#M68049</link>
      <description>&lt;P&gt;Not how I wanted to solve it but it's solved anyway:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DistinctNos =&amp;nbsp;sum(aggr(sum(DISTINCT [Number Arrived]), [ID]))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AND Unselecting the null value for dimension on the chart options.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(NumbersIn is now no longer needed)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cross-table-Distinct-Sum/m-p/1827140#M68049</guid>
      <dc:creator>KD-Qlik</dc:creator>
      <dc:date>2021-08-06T14:13:29Z</dc:date>
    </item>
  </channel>
</rss>

