<?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: Multiple Aggr() in Pick/Match function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991947#M337947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure if I understand your issue, so maybe it would be better if you create a new thread with your request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you need to test for finer granularity before lower granularity, hence if Territory level 4 is more granular than lever three, I think you should first test on level 4, then on level 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2016 16:03:11 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-10-25T16:03:11Z</dc:date>
    <item>
      <title>Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991943#M337943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I have the following function (field names changed):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;match&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;valuelist&lt;/SPAN&gt;('Red','Blue'),'Red','Blue'),&lt;BR /&gt; (&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Product Type]&lt;/SPAN&gt;='Type-A',&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Product SubType]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"SubTypeA"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Product Type]&lt;/SPAN&gt;='Type-B', &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Product SubType]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"SubTypeB"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;))), &lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;))&lt;BR /&gt; ),&lt;BR /&gt; ( &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;='Type-A',&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product SubType&lt;/SPAN&gt;]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeC&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Volume&lt;/SPAN&gt;),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;='Type-B', &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product SubType&lt;/SPAN&gt;]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeD&lt;/SPAN&gt;"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeB&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;))), &lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt; ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt; ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;It seems that the second 'Pick' is never calculated. If I replace the second aggr() with, for example, an integer, it shows fine. Likewise, if I remove the 'sum(aggr(...))' then I get a calculated value, however without the aggr() it is not correct. If I swap the two 'pick' parameters around, the function in the first position is always calculated correctly, however the second has no value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Is there a limitation in QlikView that stops a second aggr() function from being used like this? Perhaps something incorrect in my syntax?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks for taking a look, I'd appreciate if anyone can give me a bit of guidance on why this problem may be occurring.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991943#M337943</guid>
      <dc:creator />
      <dc:date>2015-08-25T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991944#M337944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into using a NODISTINCT qualifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;match&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;valuelist&lt;/SPAN&gt;('Red','Blue'),'Red','Blue'),&lt;BR /&gt; (&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Product Type]&lt;/SPAN&gt;='Type-A',&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Product SubType]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"SubTypeA"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Product Type]&lt;/SPAN&gt;='Type-B', &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Product SubType]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"SubTypeB"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;))), &lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;))&lt;BR /&gt; ),&lt;BR /&gt; ( &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;='Type-A',&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product SubType&lt;/SPAN&gt;]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeC&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Volume&lt;/SPAN&gt;),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt;]&lt;/SPAN&gt;='Type-B', &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product SubType&lt;/SPAN&gt;]&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeD&lt;/SPAN&gt;"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;"&lt;SPAN style="color: #800000;"&gt;SubTypeB&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Quantity&lt;/SPAN&gt;))), &lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Product Type&lt;/SPAN&gt; ]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;))&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt; ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt; ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991944#M337944</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-25T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991945#M337945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer! This worked perfectly. I ended up adding in the [Product ID] as one of the dimensions on the aggr() in both instances as well. With both these modifications my chart is now showing the expected results.&lt;/P&gt;&lt;P&gt;Thanks for the good advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 15:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991945#M337945</guid>
      <dc:creator />
      <dc:date>2015-08-26T15:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991946#M337946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have same issue wherein my Second Pick is not getting calculated after applying filter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I dont have Sum function. I am trying to put all numbers Manually Product wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i apply filter on &lt;SPAN style="font-size: 13.3333px;"&gt;[TerritoryLevel4] ='S_UKI' it still shows value for &lt;SPAN style="font-size: 13.3333px;"&gt;[TerritoryLevel3]='S_EMEA'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;E.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([TerritoryLevel3]='S_EMEA',(Pick(Match([Product Sub Category],'A','B','C',&lt;/P&gt;&lt;P&gt;'D','E','F','G','H','I',&lt;SPAN style="font-size: 10pt;"&gt;'J','K','L','M','N')+1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7087645,3100720,7239302,3495407,11574307,1767474,5451370,4072107,9562232,3658490,4785699,322131,6208621,5825034,0))/1000000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([TerritoryLevel4] ='S_UKI',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(Pick(Match([Product Sub Category],'A','B','C',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'D','E','F','G','H','I',&lt;SPAN style="font-size: 10pt;"&gt;'J','K','L','M','N')+1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'1774348','655502','1518050','517787','2101909','-9183','3072889','853903','1993201','1183086','2501750','37068','1279540','1723476','0')/1000000),''))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991946#M337946</guid>
      <dc:creator />
      <dc:date>2016-10-25T09:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991947#M337947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure if I understand your issue, so maybe it would be better if you create a new thread with your request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you need to test for finer granularity before lower granularity, hence if Territory level 4 is more granular than lever three, I think you should first test on level 4, then on level 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 16:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991947#M337947</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-10-25T16:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991948#M337948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are Genius... It worked by changing sequence. Thanks a ton. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more request. I amusing this measure in Pivot tables. i am getting value for each product but i am not getting totals any idea how can i get totals?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 17:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991948#M337948</guid>
      <dc:creator />
      <dc:date>2016-10-25T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991949#M337949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 17:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991949#M337949</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-10-25T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991950#M337950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;may i please ask you to follow me back so that i can write to you directly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Also where and which aggregation function should i use?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried sum function&amp;nbsp; before Pick(Match) in my expression and results are weird. Much higher.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please suggest thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 05:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/991950#M337950</guid>
      <dc:creator />
      <dc:date>2016-10-26T05:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1915990#M1218345</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I am using 2 aggregated expressions in pick function as give below and noticed that the 2nd aggr. expr. is not getting computed. Then as per your earlier post, I used NODISTINCT function after aggr. My observation is that the 2nd aggr expr now displays a value but it isnt accurate. could you please advise any other solution to overcome this problem?&lt;/P&gt;
&lt;P&gt;pick(match(valuelist('Actuals','Budget','Balance To Go'),'Actuals','Budget','Balance To Go'),&lt;BR /&gt;sum(aggr(DISTINCT sum(distinct{&amp;lt;[Month Year]={'$(vMax_date_MY)'}&amp;gt;}[Dept Actuals]),[Document Number])),&lt;BR /&gt;sum({&amp;lt;[Month Year]={'$(vMax_date_MY)'}&amp;gt;}[Budget]),&lt;BR /&gt;(sum({&amp;lt;[Month Year]={'$(vMax_date_MY)'}&amp;gt;}[Budget])-sum(aggr(NODISTINCT sum(distinct{&amp;lt;[Month Year]={'$(vMax_date_MY)'}&amp;gt;}[Dept Actuals]),[Document Number])))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Haarika&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 17:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1915990#M1218345</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-04-07T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1918864#M1218455</link>
      <description>&lt;P&gt;Haarika,&lt;/P&gt;
&lt;P&gt;looks to me as if you are encountering issues with grain mismatch, have a look at&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Are you using this expression in a table with multiple dimensions?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 10:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1918864#M1218455</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2022-04-15T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Aggr() in Pick/Match function</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1948893#M1219667</link>
      <description>&lt;P&gt;we are calculating distinct values using Aggr. If we apply NoDistinct, The values are getting changed. Is there any alternative method to sort it?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 07:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Aggr-in-Pick-Match-function/m-p/1948893#M1219667</guid>
      <dc:creator>HarshaPotnuru</dc:creator>
      <dc:date>2022-06-28T07:24:16Z</dc:date>
    </item>
  </channel>
</rss>

