<?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 - Aggr or anyother option? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Aggr-or-anyother-option/m-p/280815#M587571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 Charts(You can visualize the attached image) as follows - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;First - Refer the image for Feature chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;l_calendar_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;t_calendar_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression-&lt;/P&gt;&lt;P&gt;count(DISTINCT If(t_transaction_date &amp;lt;= t_calendar_monthend and t_loss_date &amp;lt;= l_calendar_monthend and t_calendar_monthend &amp;gt;= l_calendar_monthend,t_claim_feature))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Second - Refer&amp;nbsp; the atatched image for Loss chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;t_loss_monthend&amp;nbsp;&amp;nbsp; --- date&lt;BR /&gt;t_transaction_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression- &lt;/P&gt;&lt;P&gt;rangesum(Before(total sum(t_Loss_amt),0,120)),t_loss_monthend,t_transaction_monthend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was &lt;SPAN style="text-decoration: underline;"&gt;trying &lt;/SPAN&gt;to get a &lt;STRONG&gt;third &lt;/STRONG&gt;chart as follows- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;t_loss_monthend&amp;nbsp;&amp;nbsp; --- date&lt;BR /&gt;t_transaction_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; combined expression(Basically I want to divide each cell from 2 chart with values from 1st cell chart) -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(rangesum(Before(total sum(t_Loss_amt),0,120)),t_loss_monthend,t_transaction_monthend)&lt;BR /&gt;/&lt;BR /&gt;Aggr(&lt;BR /&gt;count(DISTINCT If(t_transaction_date &amp;lt;= t_calendar_monthend and t_loss_date &amp;lt;= l_calendar_monthend and t_calendar_monthend &amp;gt;= l_calendar_monthend,t_claim_feature)),&lt;BR /&gt;l_calendar_monthend,&lt;BR /&gt;t_calendar_monthend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not work. I also tried to use the VB Macro to get the calculations into a vb array but again was unsucessfull while loading to table using &lt;/P&gt;&lt;P&gt;/*-----------------------------&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;obj.SetInputFieldCell 1,1,"999"&amp;nbsp;&amp;nbsp; 'set 2nd row value in 2nd column to 999&lt;/P&gt;&lt;P&gt;***/////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone pease assist -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 23:49:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-06T23:49:02Z</dc:date>
    <item>
      <title>Set analysis - Aggr or anyother option?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Aggr-or-anyother-option/m-p/280815#M587571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 Charts(You can visualize the attached image) as follows - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;First - Refer the image for Feature chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;l_calendar_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;t_calendar_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression-&lt;/P&gt;&lt;P&gt;count(DISTINCT If(t_transaction_date &amp;lt;= t_calendar_monthend and t_loss_date &amp;lt;= l_calendar_monthend and t_calendar_monthend &amp;gt;= l_calendar_monthend,t_claim_feature))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Second - Refer&amp;nbsp; the atatched image for Loss chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;t_loss_monthend&amp;nbsp;&amp;nbsp; --- date&lt;BR /&gt;t_transaction_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression- &lt;/P&gt;&lt;P&gt;rangesum(Before(total sum(t_Loss_amt),0,120)),t_loss_monthend,t_transaction_monthend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was &lt;SPAN style="text-decoration: underline;"&gt;trying &lt;/SPAN&gt;to get a &lt;STRONG&gt;third &lt;/STRONG&gt;chart as follows- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;t_loss_monthend&amp;nbsp;&amp;nbsp; --- date&lt;BR /&gt;t_transaction_monthend&amp;nbsp; --- date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; combined expression(Basically I want to divide each cell from 2 chart with values from 1st cell chart) -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(rangesum(Before(total sum(t_Loss_amt),0,120)),t_loss_monthend,t_transaction_monthend)&lt;BR /&gt;/&lt;BR /&gt;Aggr(&lt;BR /&gt;count(DISTINCT If(t_transaction_date &amp;lt;= t_calendar_monthend and t_loss_date &amp;lt;= l_calendar_monthend and t_calendar_monthend &amp;gt;= l_calendar_monthend,t_claim_feature)),&lt;BR /&gt;l_calendar_monthend,&lt;BR /&gt;t_calendar_monthend)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not work. I also tried to use the VB Macro to get the calculations into a vb array but again was unsucessfull while loading to table using &lt;/P&gt;&lt;P&gt;/*-----------------------------&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("TB01")&lt;/P&gt;&lt;P&gt;obj.SetInputFieldCell 1,1,"999"&amp;nbsp;&amp;nbsp; 'set 2nd row value in 2nd column to 999&lt;/P&gt;&lt;P&gt;***/////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone pease assist -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 23:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Aggr-or-anyother-option/m-p/280815#M587571</guid>
      <dc:creator />
      <dc:date>2011-05-06T23:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Aggr or anyother option?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Aggr-or-anyother-option/m-p/280816#M587572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I would use Dollar Sign expansion with Set Analysis. I mean instead of creating a VB Script, you can use a dollar sign expansion as the User Defined Function. And then you can call first function &amp;amp; second function...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Please refer to the below post. I hope it helps you...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;A class="jive-link-external-small" href="http://qlikviewmaven.blogspot.com/"&gt;http://qlikviewmaven.blogspot.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 May 2011 07:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Aggr-or-anyother-option/m-p/280816#M587572</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-07T07:40:08Z</dc:date>
    </item>
  </channel>
</rss>

