<?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 Question..... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/151928#M29550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple issues. First, set analysis isn't for "if this case, then this, else this." If that's what you want, just use an IF:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if(match([Billing Type],'L2','F2','FV'),1,-1)*[Inv Gross])&lt;/P&gt;&lt;P&gt;If you only wanted to sum up those specific billing types, you can do that with set analysis, but I believe your values should be in single quotes and separated by commas. Also, I believe you can skip the single quotes since your values don't have spaces:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;[Billing Type]={'L2','F2','FV'}&amp;gt;}[Inv Gross])&lt;BR /&gt;sum(&amp;lt;[Billing Type]={L2,F2,FV}&amp;gt;}[Inv Gross])&lt;/P&gt;&lt;P&gt;Or if by the double quotes you meant that L2, F2 and FV are actually fields in your model, that gets a lot more complicated. Basically you concatenate the possible values together with single quotes around them inside of a dollar sign expansion, I believe.&lt;/P&gt;&lt;P&gt;Edit: Oops. Never mind. Double quotes are allowed. This should be perfectly valid:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;[Billing Type]={"L2","F2","FV"}&amp;gt;}[Inv Gross])&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2009 03:14:52 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-08-08T03:14:52Z</dc:date>
    <item>
      <title>Set Analysis Question.....</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/151927#M29549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone see any problems with this statement? I keep getting the error Error in set modifier ad hoc element list&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;[Billing Type] = {"L2" "F2" "FV"}&amp;gt;} [Inv Gross], [Inv Gross] * -1)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 02:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/151927#M29549</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2009-08-08T02:16:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Question.....</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/151928#M29550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple issues. First, set analysis isn't for "if this case, then this, else this." If that's what you want, just use an IF:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if(match([Billing Type],'L2','F2','FV'),1,-1)*[Inv Gross])&lt;/P&gt;&lt;P&gt;If you only wanted to sum up those specific billing types, you can do that with set analysis, but I believe your values should be in single quotes and separated by commas. Also, I believe you can skip the single quotes since your values don't have spaces:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;[Billing Type]={'L2','F2','FV'}&amp;gt;}[Inv Gross])&lt;BR /&gt;sum(&amp;lt;[Billing Type]={L2,F2,FV}&amp;gt;}[Inv Gross])&lt;/P&gt;&lt;P&gt;Or if by the double quotes you meant that L2, F2 and FV are actually fields in your model, that gets a lot more complicated. Basically you concatenate the possible values together with single quotes around them inside of a dollar sign expansion, I believe.&lt;/P&gt;&lt;P&gt;Edit: Oops. Never mind. Double quotes are allowed. This should be perfectly valid:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;[Billing Type]={"L2","F2","FV"}&amp;gt;}[Inv Gross])&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 03:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/151928#M29550</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-08T03:14:52Z</dc:date>
    </item>
  </channel>
</rss>

