<?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: Add rows to line chart on selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-rows-to-line-chart-on-selection/m-p/1076535#M17792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you can use 4 expressions and then make the other 3 conditional based on how many cities have been selected. So for example if 2 has been selected, 3 expressions will be active and 1 will be hidden. And to show specific cities, you should be able to use SubField(Concat(DISTINCT City, '|'), '|', 1) for first city and similarly 2, 3 for the rest of the two cities in your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For City 1 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;SPAN style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 1)&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For City 2 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 2)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For City 3 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 3)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more detailed help, I would suggest posting a sample &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 19:51:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-04T19:51:17Z</dc:date>
    <item>
      <title>Add rows to line chart on selection</title>
      <link>https://community.qlik.com/t5/App-Development/Add-rows-to-line-chart-on-selection/m-p/1076534#M17791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset, which contains 'variable 1' broken out by month and by city. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a line chart that plots two lines (where x = month and y = average of variable 1 values): (1) the average for all locations (doesn't change as additional filters are applied), and (2) the average for the selected cities. Within the filter, multiple cities can be selected, but the data for all of the cities is averaged together to create line (2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do instead is retain line (1), and allow up to three additional lines to be added to the chart as up to three cities are selected, with one line representing each city. Anyone know how to do this? I've poked around for info on conditional expressions, but I haven't found a clear answer yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 19:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-rows-to-line-chart-on-selection/m-p/1076534#M17791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-04T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add rows to line chart on selection</title>
      <link>https://community.qlik.com/t5/App-Development/Add-rows-to-line-chart-on-selection/m-p/1076535#M17792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you can use 4 expressions and then make the other 3 conditional based on how many cities have been selected. So for example if 2 has been selected, 3 expressions will be active and 1 will be hidden. And to show specific cities, you should be able to use SubField(Concat(DISTINCT City, '|'), '|', 1) for first city and similarly 2, 3 for the rest of the two cities in your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For City 1 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;SPAN style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 1)&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For City 2 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 2)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For City 3 set analysis: &lt;STRONG&gt;{&amp;lt;City = {"$(=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(Concat(DISTINCT City, '|'), '|', 3)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more detailed help, I would suggest posting a sample &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 19:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-rows-to-line-chart-on-selection/m-p/1076535#M17792</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T19:51:17Z</dc:date>
    </item>
  </channel>
</rss>

