<?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: How to remove duplicates in a set analysis? Thanks! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392621#M146449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} distinct Y.Answer*WEIGHT)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} distinct RespondentCount*WEIGHT)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 09:36:33 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2012-11-30T09:36:33Z</dc:date>
    <item>
      <title>How to remove duplicates in a set analysis? Thanks!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392620#M146448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a data cube we use there are duplicated records (same respondents correspond to different question properties)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID = {$(=only(Y_LIST.QID))}, RESPONDENT = {"&amp;gt;0"} &amp;gt;} Y.Answer)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - original formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The average works perfectly, but when I need to weight the data, I get the result multiplied by 4 (because of the duplicates)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula I need to modify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} Y.Answer*WEIGHT)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} RespondentCount*WEIGHT)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I set up DISTINCT RESPONDENT or just do not consider duplicates in the set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use Average function with weighting, I do not get the right results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392620#M146448</guid>
      <dc:creator />
      <dc:date>2012-11-29T20:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates in a set analysis? Thanks!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392621#M146449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} distinct Y.Answer*WEIGHT)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;X.QID = {$(=only(X_LIST.QID))}, Y.QID ={$(=only(Y_LIST.QID))}, %RESPONDENT = {"&amp;gt;0"} &amp;gt;} distinct RespondentCount*WEIGHT)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392621#M146449</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-11-30T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicates in a set analysis? Thanks!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392622#M146450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did, but in this case I select only 1 possible Y.Answer which is a scale from 0 to 10, not a respondent. &lt;/P&gt;&lt;P&gt;Tne result is wrong, but thank you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 14:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-remove-duplicates-in-a-set-analysis-Thanks/m-p/392622#M146450</guid>
      <dc:creator />
      <dc:date>2012-11-30T14:15:44Z</dc:date>
    </item>
  </channel>
</rss>

