<?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 Expression error using an if/pick match with 2 aggr cases in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633745#M232441</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 have a table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: [MainCcy] (has 2 values&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; 'USD',&lt;/SPAN&gt; 'GBP')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;pick &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&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; [MainCcy],&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; 'USD',&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; 'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(AGGR(SUM([Amount]), [Ccy ISO]) * [Rate To USD]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(AGGR(SUM([Amount]), [Ccy ISO]) * [Rate To GBP])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Amount] is related with [Ccy ISO] and&amp;nbsp; [Rate To GBP]/[Rate To USD] but no with [MainCcy] in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace the sum aggr funtions for numbers or justs sums it works, but the AGGR funtions produce something that only the formula for the first MainCcy is being shown the second formula in the column is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 09:40:22 GMT</pubDate>
    <dc:creator>gines_rueda</dc:creator>
    <dc:date>2014-05-30T09:40:22Z</dc:date>
    <item>
      <title>Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633745#M232441</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 have a table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: [MainCcy] (has 2 values&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; 'USD',&lt;/SPAN&gt; 'GBP')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;pick &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&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; [MainCcy],&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; 'USD',&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; 'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(AGGR(SUM([Amount]), [Ccy ISO]) * [Rate To USD]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(AGGR(SUM([Amount]), [Ccy ISO]) * [Rate To GBP])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Amount] is related with [Ccy ISO] and&amp;nbsp; [Rate To GBP]/[Rate To USD] but no with [MainCcy] in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace the sum aggr funtions for numbers or justs sums it works, but the AGGR funtions produce something that only the formula for the first MainCcy is being shown the second formula in the column is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633745#M232441</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T09:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633746#M232442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need adavanced aggregation here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try without advanced aggregation aggr() function, but if you need, try with NODISTINCT qualifier:&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;"&gt;&amp;nbsp; SUM(AGGR( NODISTINCT SUM([Amount]), [Ccy ISO]) * [Rate To USD]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; SUM(AGGR(NODISTINCT SUM([Amount]), [Ccy ISO]) * [Rate To GBP])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633746#M232442</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-30T09:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633747#M232443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NODISTINCT isn't working, escuse me but I haven't explained myself clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have amounts with serveral CCy's and what I need is the sum of the amounts in 2 consolidated currencies (GBP, USD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have a Rate to USD and Rate to GBP realted to the currencies to made that conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to multiply each amount for this rate depending on the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633747#M232443</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T10:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633748#M232444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if understood right.&lt;/P&gt;&lt;P&gt;It seems that, you are summing for all, may be it would be simpler :&lt;/P&gt;&lt;P&gt;pick&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&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; [MainCcy],&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; 'USD',&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; 'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM([Amount] * [Rate To USD]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM([Amount] * [Rate To GBP])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633748#M232444</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T10:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633749#M232445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your dimension MainCcy is not related to the fact table in any way in your data model, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want to calculate the same sum of amounts in for both dimension values, just multiple with different rates at the end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure I understand what you are trying to achieve, could you upload a small sample application with some mock up data and the desired result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633749#M232445</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-30T10:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633750#M232446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have 10 amounts, 3 in EUR, 3 in USD and 4 in GBP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have a relation between ISO Ccy and with [Rate to USD] and [Rate GBP].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I whant is the sum of the 10 amounts converted to USD in the first column and converted to GBP in the second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to give you more information I have in the same table&amp;nbsp; [Amount] and [CCy ISO] fields, then I have another table with the Currencies information [CCy ISO], [Rate to USD], and [Rate to GBP].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And MainCCy is not relate with anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633750#M232446</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T10:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633751#M232447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this but it's getting me so much biger amount that I was expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think because is not multiplying correctly or doing the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to give you more information I have in the same table&amp;nbsp; [Amount] and [CCy ISO] fields, then I have another table with the Currencies information [CCy ISO], [Rate to USD], and [Rate to GBP].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And MainCCy is not relate with anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633751#M232447</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T10:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633752#M232448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that [CCy ISO] field has unique values in Currency info table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633752#M232448</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633753#M232449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done, still the same erros in both approaches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633753#M232449</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633754#M232450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create a sample qvw and post, see: &lt;A href="http://community.qlik.com/docs/DOC-1290" title="http://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and D... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And explain your expected output there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633754#M232450</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-30T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633755#M232451</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;What is your dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(wildmatch ([MainCcy], 'USD', 'GBP'),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; AGGR(SUM([Ccy ISO]) * [Rate To USD]),Dimension_Field),&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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; AGGR(SUM([Ccy ISO]) * [Rate To &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GBP&lt;/SPAN&gt;]),Dimension_Field)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&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;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You dimension_field must contain unique value.&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633755#M232451</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-05-30T11:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633756#M232452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think you have gave me the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Ccy ISO field is into a $Syn table with some other fields, if I change the Ccy ISO to be unique for the amount table and the currency dimension it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that means it's getting duplicates from that automatically created $Syn table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a way to keeping that $Syn table, avoid the duplication?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633756#M232452</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-30T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression error using an if/pick match with 2 aggr cases</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633757#M232453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is I have thin Ccy ISO field inside a $Syn table with anothers fields (account ids, and other keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as tresesco said this works but only if I removed the Ccy ISO field from the $Syn table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;pick&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; match&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MainCcy],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'USD',&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GBP'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM([Amount] * [Rate To USD]),&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM([Amount] * [Rate To GBP])&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;So basically what I need is an expression that avoids that Ccy ISO virtual duplication inside the $Syn table.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Could you help me with that?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-error-using-an-if-pick-match-with-2-aggr-cases/m-p/633757#M232453</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-06-02T09:37:51Z</dc:date>
    </item>
  </channel>
</rss>

