<?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: Value List not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769067#M454485</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13731"&gt;@lfholland&lt;/a&gt;&amp;nbsp; and with Pick Match ?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Pick(Match(ValueList('Order Count','Avg Order','Net Sales','NM%'),'Order Count','Avg Order','Net Sales','NM%'),

Num(count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(
aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,
OrderNumber)),'###,##0'),
Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)
/
count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(
aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,
OrderNumber)),'$###,###,##0'),
Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),'$###,###,##0'),

Num( sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetMargin)
/ (sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetSales)),'###.#0%')

    )&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 16 Dec 2020 19:00:12 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-12-16T19:00:12Z</dc:date>
    <item>
      <title>Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769062#M454483</link>
      <description>&lt;P&gt;What am I doing wrong?&amp;nbsp; I think maybe I just need another set of eyes to look at this as I can't find the error.&lt;/P&gt;&lt;P&gt;'Avg Order' will not show in the Value list.&amp;nbsp; Below is a screen shot of the table and code.&amp;nbsp; I also copy/pasted the code if that would make it easier to review.&amp;nbsp; Thank you in advance.&lt;/P&gt;&lt;P&gt;Dimension: =ValueList('Order Count','Avg Order','Net Sales','NM%')&lt;/P&gt;&lt;P&gt;Expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(ValueList('Order Count','Avg Order','Net Sales','NM%')='Order Count',&lt;/P&gt;&lt;P&gt;Num(count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(&lt;BR /&gt;aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,&lt;BR /&gt;OrderNumber)),'###,##0')&lt;BR /&gt;,&lt;BR /&gt;if(ValueList('Order Count','Avg Order','Net Sales','NM%')='Avg Order',&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(&lt;BR /&gt;aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,&lt;BR /&gt;OrderNumber)),'$###,###,##0')&lt;BR /&gt;,&lt;/P&gt;&lt;P&gt;if(ValueList('Order Count','Avg Order','Net Sales','NM%')='Net Sales',&lt;BR /&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),'$###,###,##0')&lt;BR /&gt;,&lt;/P&gt;&lt;P&gt;Num( sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetMargin)&lt;BR /&gt;/ (sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetSales)),'###.#0%')&lt;BR /&gt;)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lfholland_0-1608144070429.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45793i9D0AFDE8C493C909/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lfholland_0-1608144070429.png" alt="lfholland_0-1608144070429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769062#M454483</guid>
      <dc:creator>lfholland</dc:creator>
      <dc:date>2020-12-16T18:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769064#M454484</link>
      <description>&lt;P&gt;I even tried a Pick(Match.. with the same results....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick(Match(&lt;BR /&gt;ValueList('Order Count', 'Avg Order', 'Net Sales', 'NM%'),&lt;/P&gt;&lt;P&gt;'Order Count', 'Avg Order', 'Net Sales', 'NM%'),&lt;/P&gt;&lt;P&gt;Num(count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(&lt;BR /&gt;aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,&lt;BR /&gt;OrderNumber)),'###,##0'),&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)/count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(&lt;BR /&gt;aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,&lt;BR /&gt;OrderNumber)),'$###,###,##0'),&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),'$###,###,##0'),&lt;/P&gt;&lt;P&gt;Num( sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetMargin) / (sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetSales)),'###.#0%'))&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769064#M454484</guid>
      <dc:creator>lfholland</dc:creator>
      <dc:date>2020-12-16T18:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769067#M454485</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13731"&gt;@lfholland&lt;/a&gt;&amp;nbsp; and with Pick Match ?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Pick(Match(ValueList('Order Count','Avg Order','Net Sales','NM%'),'Order Count','Avg Order','Net Sales','NM%'),

Num(count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(
aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,
OrderNumber)),'###,##0'),
Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)
/
count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(
aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,
OrderNumber)),'$###,###,##0'),
Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),'$###,###,##0'),

Num( sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetMargin)
/ (sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'},CurPrevYTD={1}&amp;gt;} NetSales)),'###.#0%')

    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769067#M454485</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-16T19:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769069#M454487</link>
      <description>&lt;P&gt;I tried the pick/match.&amp;nbsp; I replaced the formula with an 'x' and it shows, so it must be the formula.&amp;nbsp; BUT, I put the formula in a text object and it shows a value!!!&amp;nbsp; I'm dyin'! lol&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769069#M454487</guid>
      <dc:creator>lfholland</dc:creator>
      <dc:date>2020-12-16T19:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769072#M454488</link>
      <description>&lt;P&gt;even without DC dimension ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769072#M454488</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-12-16T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769097#M454490</link>
      <description>&lt;P&gt;Yep!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 20:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769097#M454490</guid>
      <dc:creator>lfholland</dc:creator>
      <dc:date>2020-12-16T20:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Value List not working</title>
      <link>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769102#M454491</link>
      <description>&lt;P&gt;If I take the "if" portion out of the Average Order formula, it works but I don't understand why... Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;}distinct if(&lt;BR /&gt;aggr(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales),OrderNumber)&amp;gt;0,&lt;BR /&gt;OrderNumber)),'$###,###,##0')&lt;/P&gt;&lt;P&gt;Modified:&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} NetSales)&lt;BR /&gt;/&lt;BR /&gt;count(DISTINCT{&amp;lt;Year={$(=Max(Year))},TakenBy={'Ecom'}, CurPrevYTD={1}&amp;gt;} OrderNumber),'$###,###,##0')&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 21:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-List-not-working/m-p/1769102#M454491</guid>
      <dc:creator>lfholland</dc:creator>
      <dc:date>2020-12-16T21:27:33Z</dc:date>
    </item>
  </channel>
</rss>

