<?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 stright table expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661355#M241056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the example attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 13:15:57 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-06-26T13:15:57Z</dc:date>
    <item>
      <title>Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661354#M241055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached sample QVW describes the problem I am having and what output that I am expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with the right expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661354#M241055</guid>
      <dc:creator />
      <dc:date>2014-06-26T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661355#M241056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a look at the example attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661355#M241056</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-06-26T13:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661356#M241057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. But I need only one row per Carrier. As in with real data each Carrier will have 100's of policies and hence I can't repeat the carrier for each policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661356#M241057</guid>
      <dc:creator />
      <dc:date>2014-06-26T13:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661357#M241058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a weird way to show something, so it requires a little finesse. I used the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(aggr(pick(match(PolicyRef,$(=concat(distinct chr(39) &amp;amp; PolicyRef &amp;amp; chr(39), ','))), $(=concat(distinct 'sum({&amp;lt;PolicyRef = {' &amp;amp; chr(39) &amp;amp; PolicyRef &amp;amp; chr(39) &amp;amp; '}&amp;gt;} total Premium)',','))), Carrier, PolicyRef))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you know what PolicyRef's there are and know they won't change you may hardcode them like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(aggr(pick(match(PolicyRef, 'Pol A', 'Pol B', 'Pol C'), sum({&amp;lt;PolicyRef = {'Pol A'}&amp;gt;} total Premium), sum({&amp;lt;PolicyRef = {'Pol B'}&amp;gt;} total Premium), sum({&amp;lt;PolicyRef = {'Pol C'}&amp;gt;} total Premium)), Carrier, PolicyRef))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661357#M241058</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-26T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661358#M241059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661358#M241059</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-06-26T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with stright table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661359#M241060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Carrier as the dimension and the following expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum(aggr(sum(total&amp;lt;PolicyRef&amp;gt; Premium),Carrier,PolicyRef))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-stright-table-expression/m-p/661359#M241060</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-26T14:10:09Z</dc:date>
    </item>
  </channel>
</rss>

