<?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 cycle groups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399048#M1160973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cycle groups are very useful because you can display your expression with different dimensions. I've this simple pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Countries&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITALY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalSales&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales% represents the percentage of Total Sales for country. &lt;/P&gt;&lt;P&gt;Total sales is calculated by aggr (sum(salesamount), Customer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question now: I would create a cycle group composed by Customer, Salesman and Brand. Is it possible to use the cycle group in the Total sales expression ?&lt;/P&gt;&lt;P&gt;In short terms, is it possible to use the group in the aggr expression, or is it possible to get the current group dimension in the aggr function, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum(.....), selected_group_dimensio) where&amp;nbsp; selected_group_dimension changes everytime I click on the group ? Is it possible to roll dimensions in aggr function dynamically&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Nov 2012 13:31:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-03T13:31:40Z</dc:date>
    <item>
      <title>cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399048#M1160973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cycle groups are very useful because you can display your expression with different dimensions. I've this simple pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Countries&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITALY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalSales&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAles&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales% represents the percentage of Total Sales for country. &lt;/P&gt;&lt;P&gt;Total sales is calculated by aggr (sum(salesamount), Customer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question now: I would create a cycle group composed by Customer, Salesman and Brand. Is it possible to use the cycle group in the Total sales expression ?&lt;/P&gt;&lt;P&gt;In short terms, is it possible to use the group in the aggr expression, or is it possible to get the current group dimension in the aggr function, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum(.....), selected_group_dimensio) where&amp;nbsp; selected_group_dimension changes everytime I click on the group ? Is it possible to roll dimensions in aggr function dynamically&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 13:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399048#M1160973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-03T13:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399049#M1160974</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;There is a function getcurrentfield() that you could use to get the name of field actiually selected by cycle group.&lt;/P&gt;&lt;P&gt;Then you could use $() expansion to substitute it to your expression dynamically.&lt;/P&gt;&lt;P&gt;aggr(sum(...), $(=getcurrentfield('Group Name')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 14:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399049#M1160974</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-03T14:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399050#M1160975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline,&lt;/P&gt;&lt;P&gt;thanks for your help, but it doesn't work. I get the message Error dimension. It seems it doesn't recognize the Getcurrentfields(My_group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 16:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399050#M1160975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-03T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399051#M1160976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The quotes is obsolete, so the right expression is:&lt;/P&gt;&lt;P&gt;aggr(sum(...), $(=getcurrentfield(Group_Name)))&lt;/P&gt;&lt;P&gt;Everithing works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; I get the message Error dimension&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Don't understand. Why did you try to place this expression as calculated dimension ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 18:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399051#M1160976</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-03T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399052#M1160977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!! it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is a pivot with dynamic dimensions, using a cycle group.&lt;/P&gt;&lt;P&gt;Having one dimension only (for example customer), the TOTALSALES is&amp;nbsp; aggr (sum(salesamount), Customer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to do the same for another dimension, I've to create another pivot and my aggr became&lt;/P&gt;&lt;P&gt;aggr(sum(salesamount), New_dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would have just one pivot changing the dimension in the aggr function. &lt;/P&gt;&lt;P&gt;This is what I thought: I'm newer and perhaps there are severals better ways than mine. Any suggestion and ideas are really appreciated !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 09:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399052#M1160977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-04T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399053#M1160978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand, why don't you use getcurrentfield()?&lt;/P&gt;&lt;P&gt;I'm trying to explain&amp;nbsp; that you &lt;SPAN style="text-decoration: underline;"&gt;can do&lt;/SPAN&gt; what you want with &lt;SPAN style="text-decoration: underline;"&gt;one&lt;/SPAN&gt; pivot using getcurrentfield() function within expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use &lt;/P&gt;&lt;P&gt;cyclic group&amp;nbsp; My_group as dimension&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;=aggr(sum(salesamount), $(=getcurrentfield(My_group))) as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The corresponding field name will be substituted in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the screen&amp;nbsp; provided above, there is cyclic group as dimension and expression with getcurrentfield().&lt;/P&gt;&lt;P&gt;You can see that the corresponding dimension value 'B' has been substituted instead of getcurrentfield().&lt;/P&gt;&lt;P&gt;Isn't it what you want ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 10:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399053#M1160978</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-04T10:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399054#M1160979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, perhaps I wasn't clear too much, but what you wrote is what I want to reach: one pivot table, with cycle group and aggr function directly related to the current_grou_dimension by the&amp;nbsp; "getcurrentfield"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 10:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399054#M1160979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-04T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: cycle groups</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399055#M1160980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello&lt;BR /&gt;&lt;BR /&gt;This post is of great help.&lt;BR /&gt;&lt;BR /&gt;I had to use quotes because there are cases that are created field names that are separated , causing error.&lt;BR /&gt;&lt;BR /&gt;Example: [City Name]&lt;BR /&gt;&lt;BR /&gt;"$(=getcurrentfield(Group_Name))"&lt;BR /&gt;&lt;BR /&gt;Thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 14:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-groups/m-p/399055#M1160980</guid>
      <dc:creator>michaelfreitas</dc:creator>
      <dc:date>2015-10-06T14:07:52Z</dc:date>
    </item>
  </channel>
</rss>

