<?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 Display multiple lines on Line Graph upon multiple selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198271#M57635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Masters,&lt;/P&gt;&lt;P&gt;I have a Line Graph that has 7 expressions each representing the sales of one of the 7 zones (Zones is the field name, field values are '1', '2', '3'. etc), with the dimension as YEAR. Normally speaking, the graph will display 7 lines showing the sales of the 7 zones as expected. However, on top of that, I would to make it such that when the user selects some of the zones (ex. '1' and '3'), it will change from showing all 7 zones to show only zone 1 and zone 3. I tried the following expression, but it only works sometimes (ex. when user select zone 1 only, or zone 2 to 6 the same time, but doesn't work when selection is only zone 2 or zone 3 or zone 4, etc). Is this a bug with the personal free version? Can someone recommand a better expression? Your help is truly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(SubStringCount(GetFieldSelections(ZONES), '2') &amp;gt;= 1 OR GetSelectedCount(ZONES)=0, Sum ({$&amp;lt;[HIGHER REPORT LEVEL]=[HIGHER REPORT LEVEL] +{HCA}, ZONES = {'2 - Pennisula'} &amp;gt;}TONNES), NULL())&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2011 19:56:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-02T19:56:47Z</dc:date>
    <item>
      <title>Display multiple lines on Line Graph upon multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198271#M57635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Masters,&lt;/P&gt;&lt;P&gt;I have a Line Graph that has 7 expressions each representing the sales of one of the 7 zones (Zones is the field name, field values are '1', '2', '3'. etc), with the dimension as YEAR. Normally speaking, the graph will display 7 lines showing the sales of the 7 zones as expected. However, on top of that, I would to make it such that when the user selects some of the zones (ex. '1' and '3'), it will change from showing all 7 zones to show only zone 1 and zone 3. I tried the following expression, but it only works sometimes (ex. when user select zone 1 only, or zone 2 to 6 the same time, but doesn't work when selection is only zone 2 or zone 3 or zone 4, etc). Is this a bug with the personal free version? Can someone recommand a better expression? Your help is truly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(SubStringCount(GetFieldSelections(ZONES), '2') &amp;gt;= 1 OR GetSelectedCount(ZONES)=0, Sum ({$&amp;lt;[HIGHER REPORT LEVEL]=[HIGHER REPORT LEVEL] +{HCA}, ZONES = {'2 - Pennisula'} &amp;gt;}TONNES), NULL())&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 19:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198271#M57635</guid>
      <dc:creator />
      <dc:date>2011-02-02T19:56:47Z</dc:date>
    </item>
    <item>
      <title>Display multiple lines on Line Graph upon multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198272#M57636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Will,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why have you created 7 different expressions if they draw exactly the same (except for different regions), do you have some special calculation rules that are different in the expressions?&lt;/P&gt;&lt;P&gt;I'd solve this by having two dimensions in the chart, the first one being year and the second being region. This way you can have one common expression, say &lt;I&gt;sum(TONNES)&lt;/I&gt; as the only expression (maybe you need to use &lt;I&gt;sum&lt;/I&gt;({$&amp;lt;[HIGHER REPORT LEVEL]=[HIGHER REPORT LEVEL] &lt;I&gt;+{HCA}&amp;gt;} TONNES)&lt;/I&gt; as your expression?). By doing this, you don't have to define which expressions are drawn and wich are not.&lt;/P&gt;&lt;P&gt;Does this solve your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came to think of another solution to your problem if you truly need different expressions for each region: &lt;I&gt;sum({&amp;lt;REGION=REGION*{"2 - Pennisula"}&amp;gt;} TONNES)&lt;/I&gt; would give a result different from zero only if "2 - Pennisula" is in the current selection (selected or related to selection, i.e green or white in a listbox).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;-Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 21:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198272#M57636</guid>
      <dc:creator>celindho</dc:creator>
      <dc:date>2011-02-02T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Display multiple lines on Line Graph upon multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198273#M57637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha, both methods work just fine! I felt quiet stupid not realizing that, thank you so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 22:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-multiple-lines-on-Line-Graph-upon-multiple-selection/m-p/198273#M57637</guid>
      <dc:creator />
      <dc:date>2011-02-02T22:28:16Z</dc:date>
    </item>
  </channel>
</rss>

