<?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 Set Analysis: syntaxes, examples in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529039#M40495</link>
    <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;Below is sample table related to my query :&lt;/P&gt;&lt;P&gt;SurveyId,Question,QuestionId,Answer&lt;/P&gt;&lt;P&gt;1,Overall Rating,10,85&lt;/P&gt;&lt;P&gt;1,CompetitorRating,11,91&lt;/P&gt;&lt;P&gt;2,Overall Rating,10,83&lt;/P&gt;&lt;P&gt;2,CompetitorRating,11,&lt;/P&gt;&lt;P&gt;3,Overall Rating,10,81&lt;/P&gt;&lt;P&gt;3,CompetitorRating,11,64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to find Average of Overall Rating only when CompetitorRating is not blank.&lt;/P&gt;&lt;P&gt;Here the answer will be average of 85 and 81 because user has answered for CompetitorRating only for those two surveys.&lt;/P&gt;&lt;P&gt;I tried using P function but did not work.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN&gt;SurveyId&lt;/SPAN&gt;= P({&amp;lt;&lt;SPAN&gt;QuestionId&lt;/SPAN&gt;= {'11'},&lt;SPAN&gt;Answer&lt;/SPAN&gt;-= {' '}&amp;gt;}) * P({&amp;lt;&lt;SPAN&gt;QuestionId&lt;/SPAN&gt;= {'10'}&amp;gt;})&amp;gt;}&lt;SPAN&gt;Answer&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know for any clarifications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:52:53 GMT</pubDate>
    <dc:creator>arvindjha2050</dc:creator>
    <dc:date>2024-11-16T06:52:53Z</dc:date>
    <item>
      <title>Set Analysis: syntaxes, examples</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529039#M40495</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;Below is sample table related to my query :&lt;/P&gt;&lt;P&gt;SurveyId,Question,QuestionId,Answer&lt;/P&gt;&lt;P&gt;1,Overall Rating,10,85&lt;/P&gt;&lt;P&gt;1,CompetitorRating,11,91&lt;/P&gt;&lt;P&gt;2,Overall Rating,10,83&lt;/P&gt;&lt;P&gt;2,CompetitorRating,11,&lt;/P&gt;&lt;P&gt;3,Overall Rating,10,81&lt;/P&gt;&lt;P&gt;3,CompetitorRating,11,64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to find Average of Overall Rating only when CompetitorRating is not blank.&lt;/P&gt;&lt;P&gt;Here the answer will be average of 85 and 81 because user has answered for CompetitorRating only for those two surveys.&lt;/P&gt;&lt;P&gt;I tried using P function but did not work.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN&gt;SurveyId&lt;/SPAN&gt;= P({&amp;lt;&lt;SPAN&gt;QuestionId&lt;/SPAN&gt;= {'11'},&lt;SPAN&gt;Answer&lt;/SPAN&gt;-= {' '}&amp;gt;}) * P({&amp;lt;&lt;SPAN&gt;QuestionId&lt;/SPAN&gt;= {'10'}&amp;gt;})&amp;gt;}&lt;SPAN&gt;Answer&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know for any clarifications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529039#M40495</guid>
      <dc:creator>arvindjha2050</dc:creator>
      <dc:date>2024-11-16T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: syntaxes, examples</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529051#M40496</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;SurveyId&amp;nbsp;= {"=Sum({&amp;lt;QuestionId= {'10'}&amp;gt;} Answer) &amp;lt;&amp;gt; 0"}&amp;gt;}&amp;nbsp;Answer)&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529051#M40496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-10T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: syntaxes, examples</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529074#M40497</link>
      <description>This is not working.&lt;BR /&gt;Actually the logic is we need to find sum/average of those Survey Ids where Competitor has entered some values.&lt;BR /&gt;&lt;BR /&gt;Competitor has entered values for Surveys 1 and 3 , in those surveys Answer is 81 and 85 so average and sum should be of that.&lt;BR /&gt;&lt;BR /&gt;In other words , we want to calculate values of the Company only when Competitor has entered some values.&lt;BR /&gt;&lt;BR /&gt;So the logic is like :&lt;BR /&gt;sum of Answer for question id 10&lt;BR /&gt;when the answer for Question id 11 is not blank.</description>
      <pubDate>Thu, 10 Jan 2019 14:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-syntaxes-examples/m-p/1529074#M40497</guid>
      <dc:creator>arvindjha2050</dc:creator>
      <dc:date>2019-01-10T14:51:13Z</dc:date>
    </item>
  </channel>
</rss>

