<?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: Use Alternate state in expression with aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849159#M655291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check this post &lt;A href="https://community.qlik.com/message/779358"&gt;Set Analysis with Aggr and Alternate States&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 10:25:52 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-06-18T10:25:52Z</dc:date>
    <item>
      <title>Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849151#M655283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have following expression:&lt;/P&gt;&lt;P&gt;SUM(aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the alternate state:&lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to transform this expression so it runs under the alternate state X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried : &lt;/P&gt;&lt;P&gt;sum({X} aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the aggreagate is not working over this alternate state&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849151#M655283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T06:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849152#M655284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no , you should mention the dimension in alternate state to act on this count , try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({X&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;lt;D1 = $::D1,&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;D2 = $::D2&lt;/SPAN&gt;&lt;/SPAN&gt;} aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the D1 and D2 are the dimension which are being used in the alternate state &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849152#M655284</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-18T06:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849153#M655285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;sum(aggr({X} Distinct (AMOUNT), SN,DATE, AMOUNT))&lt;/P&gt;&lt;P&gt;and in the alternate state dont select X&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 07:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849153#M655285</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-06-18T07:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849154#M655286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enrique,&lt;/P&gt;&lt;P&gt;With such a syntax i am getting the same result as the initial expression &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;SUM(aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT)) so it does not use the alternate state &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 07:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849154#M655286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T07:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849155#M655287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;i mentioned now all dimensions :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({X&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;lt;DATE = $::DATE,SN&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px;"&gt; = $::SN,AMOUNT&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px;"&gt;= $::AMOUNT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;} aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; 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: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but its still not working i am getting all the time the same result as the initial expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUM(aggr(DISTINCT(AMOUNT),SN,DATE,AMOUNT))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;When using simple:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({X}AMOUNT) its working but i need the aggregate!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 07:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849155#M655287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849156#M655288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please post your application here&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 07:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849156#M655288</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-18T07:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849157#M655289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(aggr(DISTINCT&amp;nbsp; Only({X} AMOUNT),SN,DATE,AMOUNT))&lt;/P&gt;&lt;P&gt;or Sum( instead Only(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 08:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849157#M655289</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-06-18T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849158#M655290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi BioB_Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per knowledge we cannot specify the aggr function to aggregate on the alternate state dimensions&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;, by default it will on the default state, if you want to aggregate then your chart and the aggregating dimension need to be in same state...no other way yo get it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849158#M655290</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-18T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849159#M655291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check this post &lt;A href="https://community.qlik.com/message/779358"&gt;Set Analysis with Aggr and Alternate States&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 10:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849159#M655291</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-18T10:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849160#M655292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still it does not work, and behaves like its not using the alternate state for the aggr. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Tried "only" or "sum" ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849160#M655292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T12:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849161#M655293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not help me, if i switch the alternate state of the object to the desired one it works.&lt;/P&gt;&lt;P&gt;But the state of the object needs to stay untouchd, the alternate state needs be passed to the aggregate, thats what i am struggeling with&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849161#M655293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849162#M655294</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;Every tool has certain limitations and similarly even with Qlikview.&amp;nbsp; This is one of the cases &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 12:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849162#M655294</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-18T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849163#M655295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if it's possible to look at it properly without an example qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I whipped up a quick test case and it seems to work, whether you stick the alternate state set expression in the outer or in the inner aggregation function (so I put it in both &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 13:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849163#M655295</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-06-18T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use Alternate state in expression with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849164#M655296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your qvw here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 06:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Alternate-state-in-expression-with-aggr/m-p/849164#M655296</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-26T06:51:19Z</dc:date>
    </item>
  </channel>
</rss>

