<?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 Using a distinct list to generate a multi line chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629397#M1089111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;I've done some searching but unfortunately I don't&amp;nbsp; think I know the lingo associated with Qlikview well enough to find what I'm looking for on my own.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I have a table. This table contains a date and a "keyword".&amp;nbsp; There are 10 unique keywords. There are hundreds of dates with numerous reoccurrences of each keyword. For instance:&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;date, keyword&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, banana&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, orange&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, orange&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, mango&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, mango&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, etc&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;This goes on and on.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I'm trying to create a line chart with 10 lines, each representing the frequency of the keyword across the date range in the table.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I know I can create each of these lines using something like this:&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;=count ( {$&amp;lt;keyword={'apple')&amp;gt;} keyword )&lt;BR /&gt;&amp;nbsp; =count ( {$&amp;lt;keyword={'banana')&amp;gt;} keyword )&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;Each of these expressions equals one line on the chart.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;However, I don't really want to have to manually define each of these keywords every time I get a new set of results to analyse which could contain completely different keywords..&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Is there a way to generate all 10 lines using one expression? Sort of like a "For loop" in Python maybe?&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Much obliged to anyone who can offer some guidance.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 13:11:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-27T13:11:46Z</dc:date>
    <item>
      <title>Using a distinct list to generate a multi line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629397#M1089111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;I've done some searching but unfortunately I don't&amp;nbsp; think I know the lingo associated with Qlikview well enough to find what I'm looking for on my own.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I have a table. This table contains a date and a "keyword".&amp;nbsp; There are 10 unique keywords. There are hundreds of dates with numerous reoccurrences of each keyword. For instance:&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;date, keyword&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, banana&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, orange&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, orange&lt;/P&gt;&lt;P class="p1"&gt;2014-05-27, mango&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, mango&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, apple&lt;/P&gt;&lt;P class="p1"&gt;2014-05-26, etc&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;This goes on and on.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I'm trying to create a line chart with 10 lines, each representing the frequency of the keyword across the date range in the table.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I know I can create each of these lines using something like this:&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;=count ( {$&amp;lt;keyword={'apple')&amp;gt;} keyword )&lt;BR /&gt;&amp;nbsp; =count ( {$&amp;lt;keyword={'banana')&amp;gt;} keyword )&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;Each of these expressions equals one line on the chart.&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;However, I don't really want to have to manually define each of these keywords every time I get a new set of results to analyse which could contain completely different keywords..&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Is there a way to generate all 10 lines using one expression? Sort of like a "For loop" in Python maybe?&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Much obliged to anyone who can offer some guidance.&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629397#M1089111</guid>
      <dc:creator />
      <dc:date>2014-05-27T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using a distinct list to generate a multi line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629398#M1089112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use this field (keyword) as another dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629398#M1089112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a distinct list to generate a multi line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629399#M1089113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh brilliant, so add the field "keyword" to the Used Dimensions pane, then add a new expression that's "=count(keyword)"? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that, It looks pretty good to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still trying to wrap my head around things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much Michael. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 13:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-distinct-list-to-generate-a-multi-line-chart/m-p/629399#M1089113</guid>
      <dc:creator />
      <dc:date>2014-05-27T13:37:13Z</dc:date>
    </item>
  </channel>
</rss>

