<?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: Limit Pivot Table - Top 10 (with variable expression in aggr) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600291#M222157</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: 12.800000190734863px;"&gt;Where are you using vEurAmount:?&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: 12.800000190734863px;"&gt;Can you provide sample apps?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 10:41:47 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-02-18T10:41:47Z</dc:date>
    <item>
      <title>Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600290#M222156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to integrate a &lt;STRONG&gt;top X pivot table &lt;/STRONG&gt;which only shows the top amounts based on the variable set for the limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I have to use a calculated dimension with aggr and rank - similar to this one:&lt;/P&gt;&lt;P&gt;=IF (aggr(rank( sum(Quantity) ,0) , Productname )&amp;lt;= 5 , Productname )&lt;/P&gt;&lt;P&gt;in my case, "Quantity" is a variable for Amount that looks like this:&lt;/P&gt;&lt;P&gt;vEurAmount:&lt;/P&gt;&lt;P&gt;=if(NOT Wildmatch(InvoiceCurrency,'EUR'), (Amount / (1 * ECBrate)),Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I insert vEurAmount I get an: "Error: Garbage after expression: "EUR" "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600290#M222156</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600291#M222157</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: 12.800000190734863px;"&gt;Where are you using vEurAmount:?&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: 12.800000190734863px;"&gt;Can you provide sample apps?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600291#M222157</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-18T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600292#M222158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to use the dollar sign to encapsulte the vEurAmount expression in the aggr formula &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;$(vEurAmount)&lt;/STRONG&gt; instead of vEurAmount (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600292#M222158</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-02-18T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600293#M222159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my bad - of course I used the dollar sign &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to find the time to create a sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 12:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600293#M222159</guid>
      <dc:creator />
      <dc:date>2014-02-18T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600294#M222160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WildMatch is an integer function&lt;/P&gt;&lt;P&gt;perhaps remove the NOT and inverse the if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Wildmatch(InvoiceCurrency,'EUR') ,Amount,&amp;nbsp; (Amount / (1 * ECBrate)) )&lt;/P&gt;&lt;P&gt;will work because WildMatch will return 1 for Euros that will be considered as true.&lt;/P&gt;&lt;P&gt;No = sign in the definition if you loop over fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600294#M222160</guid>
      <dc:creator />
      <dc:date>2014-02-18T13:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600295#M222161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabrice,&lt;/P&gt;&lt;P&gt;it gave me the same error but now I just inserted the if-stmt instead of the variable and this seems to work. Since I only need to use it in one pivot table I'm fine with it.&lt;/P&gt;&lt;P&gt;But now another problem came up. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Say I have two dimensions in the pivot: &lt;/P&gt;&lt;P&gt;Department and the calculated topX dimension like this:&lt;/P&gt;&lt;P&gt;=IF (aggr(rank( sum(if(NOT Wildmatch(InvoiceCurrency,'EUR'), (Amount / (1 * ECBrate)),Amount)) ,0) , Product)&amp;lt;= $(vTopX) ,Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my expression like this:&lt;/P&gt;&lt;P&gt;SUM($(vEurAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was expecting that this would list the top X products for each department, instead only the overall top X are shown.&lt;/P&gt;&lt;P&gt;What do I need to do to change this?&lt;/P&gt;&lt;P&gt;Actually I was hoping to use a cyclic group to replace product with other fields like this:&lt;/P&gt;&lt;P&gt;=GetCurrentField([CyclicGroup]) but this this throws: "Error in calculated dimension".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you have an idea how to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 08:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600295#M222161</guid>
      <dc:creator />
      <dc:date>2014-02-20T08:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600296#M222162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am surprised by your result with 'EUR'. Did you use single quotes ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(aggr ....)&lt;/P&gt;&lt;P&gt;Remove the the equal sign if any. If = sign, it will be ONE result. If no = sign, it will be an expression to be interpreted. And you can do : SUM($(vEurAmount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your equation, you may use also parameters: $1, $2 .... When using the variable, you pass the parameters between parenthesis (), sth like:&lt;/P&gt;&lt;P&gt;SUM($(vEurAmount('Product')) or sth returning Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;IF (aggr(rank( sum(if(NOT Wildmatch(InvoiceCurrency,'EUR'), (Amount / (1 * ECBrate)),Amount)) ,0) , $1)&amp;lt;= $(vTopX) ,$1)&lt;/P&gt;&lt;P&gt;And the call:&lt;/P&gt;&lt;P&gt;SUM($(vEurAmount(GetCurrentField([CyclicGroup])))&lt;/P&gt;&lt;P&gt;or SUM($(vEurAmount($(=GetCurrentField([CyclicGroup])))) (I have not QV today, I cannot test)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 08:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600296#M222162</guid>
      <dc:creator />
      <dc:date>2014-02-20T08:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600297#M222163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabrice,&lt;/P&gt;&lt;P&gt;ok, so I have tried various ways but couldn't get it to work.&lt;/P&gt;&lt;P&gt;Could you show me how to do it based on this sample I downloaded a few days ago? &lt;/P&gt;&lt;P&gt;Since this seems simpler I already gave it try but got no values out of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 12:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600297#M222163</guid>
      <dc:creator />
      <dc:date>2014-02-20T12:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600298#M222164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thorsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Personal Edition: I will not be able to open your qvw.&lt;/P&gt;&lt;P&gt;I have created 3 variables:&lt;/P&gt;&lt;P&gt;vTop : 2 (an integer)&lt;/P&gt;&lt;P&gt;vDim2 : IF&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InvoiceCurrency&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'EUR'), (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ECBrate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),0) , $1)&amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vTop)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,$1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Calculated Dimension: &lt;/SPAN&gt;=&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vDim2(Product)) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created two extra variables to store the measure names: Amount and Amount * ECBrate. It is still OK.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, that retruns me the first 2 products (all departments): because there is also Department dimension in the chart, I have the same 2 products even if there are not the top 2 for this department.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I join the test I have made. If I cannot use your application, you can use mine.&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 21:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600298#M222164</guid>
      <dc:creator />
      <dc:date>2014-02-20T21:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600299#M222165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabrice thanks alot for the effort you put into this issue.&lt;/P&gt;&lt;P&gt;So do I understand you correctly, that with the Department dimension added to the pivot, I can't get the top products for each department but only overall?&lt;/P&gt;&lt;P&gt;I've played around with your qvw and added a third department and changed the product numbers to letters.&lt;/P&gt;&lt;P&gt;See the screenshot.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pivot_TopX.PNG.png" class="jive-image" height="201" src="https://community.qlik.com/legacyfs/online/53603_pivot_TopX.PNG.png" style="width: 691px; height: 200.613px;" width="691" /&gt;&lt;/P&gt;&lt;P&gt;Here's what I noticed - that confirms what you wrote above:&lt;/P&gt;&lt;P&gt;Dept. 3 has a X product with 999 as amount. When I change this amount to 1 or lower than the rest of the products - Dept. 3 is gone. Also the vTop variable has an effect on the products but not the Dept. dimension. So vTop=5 will show the top 5 products overall but won't list the top products for each Dept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmmm... so I believe this won't work the way I expected. I will have a look through the demo apps, maybe I can find a solution there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas are still welcome though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 08:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600299#M222165</guid>
      <dc:creator />
      <dc:date>2014-02-21T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600300#M222166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thorsten,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See a doc by &lt;A href="https://community.qlik.com/qlik-users/2310"&gt;Oleg Troyansky&lt;/A&gt; : &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5187"&gt;http://community.qlik.com/docs/DOC-5187&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen it but not time to read/understand it&lt;/P&gt;&lt;P&gt;It can give you clue for what you want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 08:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600300#M222166</guid>
      <dc:creator />
      <dc:date>2014-02-21T08:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600301#M222167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that this topic is solved and old, but for others who come here, i will show you how i did solve my problem with this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just surrounded my variable with chr(39), the ASCII code for a ' &lt;/P&gt;&lt;P&gt;eg: $(=Chr(39) &amp;amp; GetFieldSelections(ENSEIGNE_MAGASIN) &amp;amp; Chr(39))&lt;/P&gt;&lt;P&gt;Then Qlikview understand that it is a character string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 15:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600301#M222167</guid>
      <dc:creator />
      <dc:date>2014-04-14T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Pivot Table - Top 10 (with variable expression in aggr)</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600302#M222168</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;Good evening friends&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am facing&amp;nbsp; a problem and I need your help&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I try to display the first 10 sales per country in a Pivot table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-538420-59807/sales.PNG.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="sales.PNG.png" class="jive-image jiveImage" height="400" src="https://community.qlik.com/legacyfs/online/59881_sales.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="296" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so I added this expression in dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-538420-59808/Capture.PNG.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image jiveImage" height="641" src="https://community.qlik.com/legacyfs/online/59882_Capture.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="936" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and as a result I have&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-538420-59809/Capture.PNG.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image jiveImage" height="237" src="https://community.qlik.com/legacyfs/online/59883_Capture.PNG.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="329" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;as you can see&amp;nbsp; for 2010 it gives a result &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;USA-&amp;gt; France-&amp;gt; germany &lt;/SPAN&gt;&amp;nbsp; and the logical order and it&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;USA-&amp;gt; France-&amp;gt; UK&lt;/SPAN&gt; why?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for your answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 22:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Pivot-Table-Top-10-with-variable-expression-in-aggr/m-p/600302#M222168</guid>
      <dc:creator />
      <dc:date>2014-05-30T22:17:43Z</dc:date>
    </item>
  </channel>
</rss>

