<?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: Issue in Set Analysis with aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305784#M406489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 12:23:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-13T12:23:11Z</dc:date>
    <item>
      <title>Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305782#M406487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below expression to calculate the MTD which works correctly.&lt;/P&gt;&lt;P&gt;NUM(Count(DISTINCT{&amp;lt;Day={"&amp;lt;=$(=Day)"},ZONE={'EAST'},PRODUCT_BOOKING_STATUS={'BOOKED','UNDECIDED'},SUB_BUSINESS={'DOMESTIC'}&amp;gt;} LTCS.BFN))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I use the same expression for MTD in an expression which has aggr it does not work correctly.&lt;/P&gt;&lt;P&gt;Kindly let me know if there is any mistake or changes need to do to achieve the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(DISTINCT {&amp;lt;ZONE={'EAST'},PRODUCT_BOOKING_STATUS={'BOOKED','UNDECIDED'},SUB_BUSINESS={'Domestic'},&amp;gt;} NO_ADULT),LTCS.BFN))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using these expressions in Text Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chintan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Sunny I am able to get correct result by passing the modifiers before aggr as suggested by you. However the same thing is not working for the attached code in text obj as it is bit complex. Is there any way around to get the MTD result in atached code. Thanks &amp;amp; Regards Chintan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Chintan Gala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305782#M406487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305783#M406488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Day={"&amp;lt;=$(=Day)"}, ZONE = {'EAST'}, PRODUCT_BOOKING_STATUS ={'BOOKED','UNDECIDED'}, SUB_BUSINESS = {'Domestic'}&amp;gt;}&lt;/SPAN&gt; Aggr(Sum(DISTINCT {&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Day={"&amp;lt;=$(=Day)"},&lt;/SPAN&gt; ZONE = {'EAST'}, PRODUCT_BOOKING_STATUS ={'BOOKED','UNDECIDED'}, SUB_BUSINESS = {'Domestic'}&amp;gt;} NO_ADULT),LTCS.BFN))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305783#M406488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-13T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305784#M406489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 12:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305784#M406489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305785#M406490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hello Sunny I am able to get correct result by passing the modifiers before aggr as suggested by you. However the same thing is not working for the attached code in text obj as it is bit complex. Is there any way around to get the MTD result in attached code (notepad). &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;Thanks &amp;amp; Regards &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;Chintan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305785#M406490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-19T12:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305786#M406491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bit complex &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.... I have no idea what it's doing brother... especially looking at just the expression doesn't really tell me much... I wish I could help you, but without a sample it would be nearly impossible to decipher your expression &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305786#M406491</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-19T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305787#M406492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; Sure, I will try something and if it does not work I will try to put a sample attachment with reduced data if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 04:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305787#M406492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T04:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Set Analysis with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305788#M406493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached sample qvw with reduced data with a couple of text objects.If it provides some clarity to achive the MTD result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Chintan . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 10:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-Set-Analysis-with-aggr/m-p/1305788#M406493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-21T10:09:44Z</dc:date>
    </item>
  </channel>
</rss>

