<?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 Distinct numbering in chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243409#M582910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m struggling with something in QlikView and I hoped you could help me. &lt;/P&gt;&lt;P&gt;I’m trying to ‘AutoGenerate’ distinct values/numbers not during the load script, but in a chart expression (the reason is that the numbering depends on the currently shown items, based on user selection, and thus cannot be calculated during the load script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I load a table that looks like this:&lt;/P&gt;&lt;P&gt;USA&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;Australia&amp;nbsp;&amp;nbsp;&amp;nbsp; AUD&lt;/P&gt;&lt;P&gt;France&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;Spain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;Japan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JPY&lt;/P&gt;&lt;P&gt;Italy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the chart (say, straight table) should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USD&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;AUD&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;USD&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;AUD&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each value that is shown based on the current selection gets a unique number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that in the chart expression? Using the Rank() function got me close but not quite there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 18:07:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-12T18:07:46Z</dc:date>
    <item>
      <title>Distinct numbering in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243409#M582910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m struggling with something in QlikView and I hoped you could help me. &lt;/P&gt;&lt;P&gt;I’m trying to ‘AutoGenerate’ distinct values/numbers not during the load script, but in a chart expression (the reason is that the numbering depends on the currently shown items, based on user selection, and thus cannot be calculated during the load script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I load a table that looks like this:&lt;/P&gt;&lt;P&gt;USA&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;Australia&amp;nbsp;&amp;nbsp;&amp;nbsp; AUD&lt;/P&gt;&lt;P&gt;France&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;Spain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;Japan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JPY&lt;/P&gt;&lt;P&gt;Italy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the chart (say, straight table) should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USD&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;AUD&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;USD&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;AUD&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;EUR&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each value that is shown based on the current selection gets a unique number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that in the chart expression? Using the Rank() function got me close but not quite there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 18:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243409#M582910</guid>
      <dc:creator />
      <dc:date>2011-10-12T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct numbering in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243410#M582911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi itaymaor82,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just for interest, what is your expression approach using Rank()? That was also one of my first ideas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=aggr(NODISTINCT RowNo(),CURR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if CURR is the fieldname of your currencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 19:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243410#M582911</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-12T19:38:09Z</dc:date>
    </item>
    <item>
      <title>Distinct numbering in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243411#M582912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-numbering-in-chart-expression/m-p/243411#M582912</guid>
      <dc:creator />
      <dc:date>2011-10-14T19:43:49Z</dc:date>
    </item>
  </channel>
</rss>

