<?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: Help with simple set analysis- multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802104#M283149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue in your expression is in set 'or' logic does not work, you have to update your expression by&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;=sum({&amp;lt;answer_id ={ 'question_31' , 'question_32' , 'question_33' , 'question_34' ,'question_35' , 'question_36' ,'question_37' , 'question_115' , 'question_116' , 'question_38' , 'question_39' , 'question_40' , 'question_44')&amp;gt;}answer_score)&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;or you should create a group of such question in the Back end so your expression would not look large like below&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;If(Match(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;answer_id, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'question_31', 'question_32', 'question_33', 'question_34', 'question_35', 'question_36', 'question_37', 'question_115', 'question_116', 'question_38', 'question_39' , 'question_40', 'question_44'), Grp1, Grp2) as Group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and after reload you can change your expression like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Group={'Grp1'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;answer_score&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly you can create your various question groups&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>Sat, 14 Mar 2015 04:01:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-14T04:01:15Z</dc:date>
    <item>
      <title>Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802100#M283145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me in setting a variable that sums the scores for a group of questions. Right now my expression looks like- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;answer_id = 'question_31' or answer_id = 'question_32' or answer_id = 'question_33' or answer_id = 'question_34' or answer_id ='question_35' or answer_id = 'question_36' or answer_id = 'question_37' or answer_id = 'question_115' or answer_id = 'question_116' or answer_id = 'question_38' or answer_id = 'question_39' or answer_id = 'question_40' or answer_id = 'question_44'&amp;gt;}answer_score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically for the following questions sum the scores. Any ideas on what I am doing wrong? I've tried using an if(sum) statement but maybe my syntax was off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 18:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802100#M283145</guid>
      <dc:creator />
      <dc:date>2015-03-13T18:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802101#M283146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Possible you could consider adding an extra field to you data, fe 'Questiontype'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, questions 31, 37, 38, 115, etc are 'Math questions' and you'd like &lt;/P&gt;&lt;P&gt;to sum these Math Questions, all you need to do is a &lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;Questiontype={'Math'}&amp;gt;}&amp;nbsp; answer_score).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz. Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 23:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802101#M283146</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-03-13T23:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802102#M283147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really like Fred's idea and suggest to ago with it but if for some reason you prefer not to group your questions, you can modify your expression using proper syntax. Example from help file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum( &lt;/SPAN&gt;{$&amp;lt;Year = {2000}, Region = {US, SE, DE, UK, FR}&amp;gt;} Sales&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case something like that (did not want to type all your IDs but you will get an idea:&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;=sum({$&amp;lt;answer_id = {question_31,question_32,question_33}&amp;gt;} answer_score)&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;It is easy to forget exact syntax, so what I do myself, I hit F1 from client, search for "set analysis" and you will see plenty helpful examples like the one above.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 01:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802102#M283147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-14T01:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802103#M283148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there something unique about the options you want to sum. Like may be they belong to a particular subject then you can use a simpler formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Subject = {'Mathematics'}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;answer_score)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you can create a flag in the script which would give a flag 1 like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Match(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;answer_id, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;'question_31', 'question_32', 'question_33', 'question_34', 'question_35', 'question_36', 'question_37', 'question_115', 'question_116', 'question_38', 'question_39' , 'question_40', 'question_44'), 1, 0) as Flag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it in your set analysis as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;=Sum({&amp;lt;Flag= {1}&amp;gt;} &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;answer_score)&lt;/STRONG&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 02:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802103#M283148</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-14T02:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802104#M283149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue in your expression is in set 'or' logic does not work, you have to update your expression by&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;=sum({&amp;lt;answer_id ={ 'question_31' , 'question_32' , 'question_33' , 'question_34' ,'question_35' , 'question_36' ,'question_37' , 'question_115' , 'question_116' , 'question_38' , 'question_39' , 'question_40' , 'question_44')&amp;gt;}answer_score)&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;or you should create a group of such question in the Back end so your expression would not look large like below&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;If(Match(&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;answer_id, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'question_31', 'question_32', 'question_33', 'question_34', 'question_35', 'question_36', 'question_37', 'question_115', 'question_116', 'question_38', 'question_39' , 'question_40', 'question_44'), Grp1, Grp2) as Group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and after reload you can change your expression like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Group={'Grp1'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;answer_score&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly you can create your various question groups&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>Sat, 14 Mar 2015 04:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802104#M283149</guid>
      <dc:creator />
      <dc:date>2015-03-14T04:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802105#M283150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions. I got it with our help. Just a case of rookie syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802105#M283150</guid>
      <dc:creator />
      <dc:date>2015-03-16T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple set analysis- multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802106#M283151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you got what you wanted to achieve, I would suggest closing the thread by marking the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-simple-set-analysis-multiple-values/m-p/802106#M283151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-16T15:16:22Z</dc:date>
    </item>
  </channel>
</rss>

