<?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: Define Dimension for AGGR function from calculated Dimension in Cycling Group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574863#M1116742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original formula doesn't work because when you do $(=...), its reading the parentheses ')' as one of the closing parentheses instead of a parameter to your replace function, this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), $(=Replace(Mid(GetCurrentField(MyCyclicGroup), 17), '$(=chr(41))','')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you may avoid that with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), $(=left(Mid(GetCurrentField(MyCyclicGroup), 17), 11)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want the same thing, why not just copy the equation into another expression? That way you'll have two columns with the same thing. So have two sum(Amount) expressions.&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>Wed, 12 Feb 2014 16:12:05 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-02-12T16:12:05Z</dc:date>
    <item>
      <title>Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574857#M1116736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As a extension of &lt;A _jive_internal="true" href="https://community.qlik.com/message/466809#466809"&gt;this thread&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a Chart (table) with Cyclic Group as a Dimension.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I Have two views in the groups and I need to change calculations based on wich Dimension is activated.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I can use something like =aggr(SUM(TransactionAmount), &lt;STRONG&gt;$(=GetCurrentField(PROPD_Cycling_Group)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;but this time I use calculated dimension in my Cycling group&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=GetCurrentField(PROPD_Cycling_Group_Analytical_View) returns me &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;=if(TransactionAmount &amp;gt; 0, ItemDescription)&lt;/STRONG&gt;&lt;/SPAN&gt; and I can't use it as a dimension for aggr function.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Replace(Mid(GetCurrentField(PROPD_Cycling_Group_Analytical_View), 28),')','') &lt;/STRONG&gt;wich returns me &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ItemDescription&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; - exactly what i'd like to use as a dimension.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;but how to pass this as an argument to aggr?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;I tried &lt;STRONG&gt;=aggr(Sum(TransactionAmount), $(=Replace(Mid(GetCurrentField(PROPD_Cycling_Group_Analytical_View), 28),')',''))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000;"&gt;but it's not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Сообщение отредактировано: Aleksander Panfilenok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 11:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574857#M1116736</guid>
      <dc:creator />
      <dc:date>2014-02-12T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574858#M1116737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload your sample file or apps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 12:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574858#M1116737</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-12T12:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574859#M1116738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manisha&lt;/P&gt;&lt;P&gt;I've attacked the document to my original message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 13:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574859#M1116738</guid>
      <dc:creator />
      <dc:date>2014-02-12T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574860#M1116739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 13:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574860#M1116739</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-12T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574861#M1116740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish&lt;/P&gt;&lt;P&gt;I'm trying to reach the calculation when column3 is equals to column2&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53023_Capture.PNG.png" style="width: 620px; height: 95px;" /&gt;&lt;/P&gt;&lt;P&gt;So the aggr column should be exactly same as sum column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574861#M1116740</guid>
      <dc:creator />
      <dc:date>2014-02-12T14:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574862#M1116741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give an example or a desired output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574862#M1116741</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-12T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Define Dimension for AGGR function from calculated Dimension in Cycling Group</title>
      <link>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574863#M1116742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original formula doesn't work because when you do $(=...), its reading the parentheses ')' as one of the closing parentheses instead of a parameter to your replace function, this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), $(=Replace(Mid(GetCurrentField(MyCyclicGroup), 17), '$(=chr(41))','')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you may avoid that with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Sum(Amount), $(=left(Mid(GetCurrentField(MyCyclicGroup), 17), 11)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want the same thing, why not just copy the equation into another expression? That way you'll have two columns with the same thing. So have two sum(Amount) expressions.&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>Wed, 12 Feb 2014 16:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-Dimension-for-AGGR-function-from-calculated-Dimension-in/m-p/574863#M1116742</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-12T16:12:05Z</dc:date>
    </item>
  </channel>
</rss>

