<?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: Aggr Level without variable; any other ideas? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223008#M859145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not - you need to specify on which dimensions the calculation within the aggr should be performed. Another approach (assumingly not better) could be to use two specialized textboxes and the selections within the Level-fields control their visibility ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 12:35:32 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-01-24T12:35:32Z</dc:date>
    <item>
      <title>Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223003#M859140</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;I will try to explain what I am trying to do with a sample attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to evaluate rank based on either product category or the rank of the Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in the Snapshot I've selected Product D1 and the rank for the same is "6"&lt;/P&gt;&lt;P&gt;but I've achieved that using&amp;nbsp; a variable to identify the AGGR level&lt;/P&gt;&lt;P&gt;my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&amp;nbsp; aggr(rank(sum({1}Amount)),$(vAggrLevel))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vAggrLevel&amp;nbsp; =if(GetSelectedCount(Level2)&amp;gt;0,'Level2','Level1')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can we do this without using the variable? directly in the expression??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150645" alt="rank_aggr.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150645_rank_aggr.PNG" style="height: 299px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vineeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223003#M859140</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223004#M859141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a $-sign expansion instead of the variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rank(sum({1}Amount)),$(=&lt;SPAN style="font-size: 13.3333px;"&gt;if(GetSelectedCount(Level2)&amp;gt;0,'Level2','Level1')&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223004#M859141</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-24T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223005#M859142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just add square brackets in case you have spaces in your field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Rank(Sum({1}Amount)),$(=&lt;SPAN style="color: #ff0000;"&gt;'[' &amp;amp;&lt;/SPAN&gt; if(GetSelectedCount(Level2)&amp;gt;0,'Level2','Level1') &lt;SPAN style="color: #ff0000;"&gt;&amp;amp; ']'&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or directly within the single quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Aggr(Rank(Sum({1}Amount)),$(=if(GetSelectedCount(Level2)&amp;gt;0,'&lt;SPAN style="color: #ff0000;"&gt;[&lt;/SPAN&gt;Level2&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt;','&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;[&lt;/STRONG&gt;Level1&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;]&lt;/STRONG&gt;')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223005#M859142</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T12:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223006#M859143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies; I wasn't clear enough &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant; I didn't want to evaluate what &lt;STRONG&gt;level&lt;/STRONG&gt; was selected separately; But i guess there is no exception&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223006#M859143</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-24T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223007#M859144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I meant; I didn't want to evaluate what &lt;STRONG&gt;level&lt;/STRONG&gt; was selected separately; But i guess there is no exception&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you elaborate on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223007#M859144</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T12:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223008#M859145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not - you need to specify on which dimensions the calculation within the aggr should be performed. Another approach (assumingly not better) could be to use two specialized textboxes and the selections within the Level-fields control their visibility ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223008#M859145</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-24T12:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223009#M859146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try without $- expansion as well&lt;/P&gt;&lt;P&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;=aggr(rank(sum({1}Amount)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(GetSelectedCount(Level2)&amp;gt;0,'Level2','Level1'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223009#M859146</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-01-24T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223010#M859147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am basically trying to avoid&amp;nbsp; if(getselectedcount() ...completely, because if the number of level increases I will need to keep on adding to the IF! or that many text boxes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm trying to see if we could exploit &lt;STRONG&gt;$Field&lt;/STRONG&gt; somehow! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vineeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223010#M859147</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-24T12:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223011#M859148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would the expression know which level to choose from the many you will have? That's the part I am not sure I understand completely?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223011#M859148</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223012#M859149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are back... after ages... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223012#M859149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T12:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223013#M859150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that $Field could be useful here because you will furthermore need any checkings if there is any selection anywhere. The if-loop itself might be replaceable with a pick(match()) and also there might be ways to create such a expression-statement with a kind of string-loop. But I think it won't make your task easier - rather the opposite will happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not just copying the if-checking within a variable ten times beneath eachother ... ok. it won't look very nice but there won't be a real performance-impact on this textbox-expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223013#M859150</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-24T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223014#M859151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, busy with lot of work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223014#M859151</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-01-24T13:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223015#M859152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vineeth,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=aggr(rank(sum({1}Amount)),$(='[' &amp;amp;MaxString(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Upper(Left(Trim(SubField(SubField(GetCurrentSelections(),chr(13)),':',1)),5)) = 'LEVEL', &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; Trim(SubField(SubField(GetCurrentSelections(),chr(13)),':',1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,$Field)&lt;/P&gt;&lt;P&gt;)&amp;amp;']'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223015#M859152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T13:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223016#M859153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manuel, this is exactly what I was trying to do but couldn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vineeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223016#M859153</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-24T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Level without variable; any other ideas?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223017#M859154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're wellcome!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Level-without-variable-any-other-ideas/m-p/1223017#M859154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T14:07:49Z</dc:date>
    </item>
  </channel>
</rss>

