<?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 with Multiple Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177502#M502539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find an easier / more elegant way to do the following.&lt;/P&gt;&lt;P&gt;I have 2 basic data tables -&amp;gt; 1 is claim cost related and 1 is premium and policy related.&lt;/P&gt;&lt;P&gt;I used a set analysis in an expression as below to get a chart that shows claim cost over premium by year (which can be drilled down further to quarter).&lt;/P&gt;&lt;P&gt;sum (claims.cost) / sum ( {$ &amp;lt;claims.delay_band= , claims.lossyear= , claims.lossqtr= , claims.lossmth= , claims.lossday= , claims.reportyr=, claims.reportqtr= , claimcause.cat1= , claimcause.cat2= ,claimcause.cat3= ,claimtype.cat1= &amp;gt;} TOTAL &amp;lt;prem.Yr, prem.qtr&amp;gt; prem.prem)&lt;/P&gt;&lt;P&gt;The above expression is a shortened version of what I am using. I need to exclude most fields/dimensions that belong to all tables except the premium table (e.g. claims.x and claimcause.x) from interfering with the summing of the premium in the denominator.&lt;/P&gt;&lt;P&gt;The expression works currently. However, is there an easier way than manually typing all the fields into the {$ &amp;lt;...&amp;gt;} ? I was wondering if I can use something like {$ &amp;lt;claims.*= &amp;gt;}.&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Aug 2010 10:27:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-27T10:27:23Z</dc:date>
    <item>
      <title>Set Analysis with Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177502#M502539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find an easier / more elegant way to do the following.&lt;/P&gt;&lt;P&gt;I have 2 basic data tables -&amp;gt; 1 is claim cost related and 1 is premium and policy related.&lt;/P&gt;&lt;P&gt;I used a set analysis in an expression as below to get a chart that shows claim cost over premium by year (which can be drilled down further to quarter).&lt;/P&gt;&lt;P&gt;sum (claims.cost) / sum ( {$ &amp;lt;claims.delay_band= , claims.lossyear= , claims.lossqtr= , claims.lossmth= , claims.lossday= , claims.reportyr=, claims.reportqtr= , claimcause.cat1= , claimcause.cat2= ,claimcause.cat3= ,claimtype.cat1= &amp;gt;} TOTAL &amp;lt;prem.Yr, prem.qtr&amp;gt; prem.prem)&lt;/P&gt;&lt;P&gt;The above expression is a shortened version of what I am using. I need to exclude most fields/dimensions that belong to all tables except the premium table (e.g. claims.x and claimcause.x) from interfering with the summing of the premium in the denominator.&lt;/P&gt;&lt;P&gt;The expression works currently. However, is there an easier way than manually typing all the fields into the {$ &amp;lt;...&amp;gt;} ? I was wondering if I can use something like {$ &amp;lt;claims.*= &amp;gt;}.&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177502#M502539</guid>
      <dc:creator />
      <dc:date>2010-08-27T10:27:23Z</dc:date>
    </item>
    <item>
      <title>AW:Set Analysis with Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177503#M502540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanessaho,&lt;/P&gt;&lt;P&gt;what about using a variable, please try this:&lt;/P&gt;&lt;P&gt;SET vClaims = 'claims.delay_band= , claims.lossyear= , claims.lossqtr= , claims.lossmth= , claims.lossday= , claims.reportyr=, claims.reportqtr= , claimcause.cat1= , claimcause.cat2= ,claimcause.cat3= ,claimtype.cat1=';&lt;/P&gt;&lt;P&gt;sum (claims.cost) / sum ( {$ &amp;lt;$(vClaims) &amp;gt;} TOTAL &amp;lt;prem.Yr, prem.qtr&amp;gt; prem.prem)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177503#M502540</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2010-08-27T10:31:20Z</dc:date>
    </item>
    <item>
      <title>AW:Set Analysis with Multiple Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177504#M502541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martina! It works perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 12:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Multiple-Fields/m-p/177504#M502541</guid>
      <dc:creator />
      <dc:date>2010-08-27T12:16:54Z</dc:date>
    </item>
  </channel>
</rss>

