<?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: Distinct field in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21039#M771448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer Marcus. However, each area still appears many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each name appears in an area several times, so a many to many relationship. I am simply trying to get a sample from each area (just one), dynamically to match the dashboard selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A QlikView technician has suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Num(Sum(Distinct{$&amp;lt;Name={'*arch*'},Orders={'&amp;gt;=1'}&amp;gt;} Area_ID),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have summed the orders separately, to match the dimension. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This seems to be working ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 10:24:41 GMT</pubDate>
    <dc:creator>gdham123</dc:creator>
    <dc:date>2018-06-01T10:24:41Z</dc:date>
    <item>
      <title>Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21036#M771445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to sum a field based on conditions in two other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have Name field which has to contain "arch", and the Area_ID has to be distinct. I would then like to sum the Orders. I have tried various equations, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Sum({$&amp;lt;Name={'*arch*'},Count(Distinct Area_ID&amp;gt;{0}&amp;gt;} Orders),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Area_ID &amp;gt;0 was just something I added so as to be able to use Distinct, as it requires an aggregate function (in this case Count).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21036#M771445</guid>
      <dc:creator>gdham123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21037#M771446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Name={'*arch*'}, Area_ID = {'*'}&amp;gt;} Orders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 10:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21037#M771446</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-29T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21038#M771447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If what Marcus provided doesn't work for you, would you be able to share few rows of dummy data and explain as to what exactly are you looking to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 11:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21038#M771447</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-29T11:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21039#M771448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer Marcus. However, each area still appears many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each name appears in an area several times, so a many to many relationship. I am simply trying to get a sample from each area (just one), dynamically to match the dashboard selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A QlikView technician has suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Num(Sum(Distinct{$&amp;lt;Name={'*arch*'},Orders={'&amp;gt;=1'}&amp;gt;} Area_ID),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have summed the orders separately, to match the dimension. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This seems to be working ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21039#M771448</guid>
      <dc:creator>gdham123</dc:creator>
      <dc:date>2018-06-01T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21040#M771449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sum(distinct VALUE) is quite uncommon to get a correct result. Therefore I suggest to check the datamodel to ensure that it is suitable to your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2018 06:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21040#M771449</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-02T06:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21041#M771450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that using single quotes in a wildcard&amp;nbsp; or advanced search expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;Name={'*arch*'},Orders={'&amp;gt;=1'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is incorrect. It should be double quotes. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;Name={"*arch*"},Orders={"&amp;gt;=1'"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This is enforced in QV12.20 for new documents.&amp;nbsp; I recommend you code using double quotes as it will work in all releases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2018 16:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21041#M771450</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-06-03T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21042#M771451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob. Duly noted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2018 17:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21042#M771451</guid>
      <dc:creator>gdham123</dc:creator>
      <dc:date>2018-06-03T17:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21043#M771452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus. Is there another way to get a unique return of a dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2018 17:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21043#M771452</guid>
      <dc:creator>gdham123</dc:creator>
      <dc:date>2018-06-03T17:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21044#M771453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the aim of your calculation. Like above mentioned there are not many use-cases in which a sum(distinct Field) returned the wished results and therefore I assume a not properly build datamodel probably with some duplication of records by any joining-approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few sample records (only the here relevant fields and without the set analysis conditions stuff - it won't change the main logic/aim of it) and why you need it and which result you expect from it - will be quite helpful to get an idea what do you want to reach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 12:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21044#M771453</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-06-05T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct field in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21045#M771454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks for the explanation Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 18:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-field-in-Qlikview/m-p/21045#M771454</guid>
      <dc:creator>gdham123</dc:creator>
      <dc:date>2018-06-07T18:52:42Z</dc:date>
    </item>
  </channel>
</rss>

