<?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 Hide or show reference lines on charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801833#M283054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new with QV development I and I have of problem that I am not been able to find an suitable solution. I hope that some one could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a chart that plots quantities of 3 different areas day, so for each day I have 3 bars in the chart.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I have created 3 reference lines, one for each area and have plotted in the same chart, so I can visualize the target and real quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/76809_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="384" src="https://community.qlik.com/legacyfs/online/76806_pastedImage_0.png" style="font-size: 13.3333330154419px; width: 439px; height: 384.479032258065px;" width="439" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76807_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to plot the reference lines only when I select the correct Area, and hide the reference line when the area is not selected/plotted. &lt;/P&gt;&lt;P&gt;So what I have done was to create a conditional expression for the reference line and I have done the following : if(AREA='200',dailyTargetVolumeSanding,0), this means if the area 200 is selected will be plotted the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;dailyTargetVolumeSanding reference line if not nothing will be plotted. &lt;STRONG&gt;This works fine I have have selected just only one line but if i select for example the line 170 and 200 the &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;dailyTargetVolumeSanding is not plotted.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Someone could help me on how can I test in the expression when I have selected multiple areas to check if some of those areas is the area 200?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2015 12:05:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-31T12:05:34Z</dc:date>
    <item>
      <title>Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801833#M283054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new with QV development I and I have of problem that I am not been able to find an suitable solution. I hope that some one could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a chart that plots quantities of 3 different areas day, so for each day I have 3 bars in the chart.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I have created 3 reference lines, one for each area and have plotted in the same chart, so I can visualize the target and real quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/76809_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="384" src="https://community.qlik.com/legacyfs/online/76806_pastedImage_0.png" style="font-size: 13.3333330154419px; width: 439px; height: 384.479032258065px;" width="439" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76807_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to plot the reference lines only when I select the correct Area, and hide the reference line when the area is not selected/plotted. &lt;/P&gt;&lt;P&gt;So what I have done was to create a conditional expression for the reference line and I have done the following : if(AREA='200',dailyTargetVolumeSanding,0), this means if the area 200 is selected will be plotted the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;dailyTargetVolumeSanding reference line if not nothing will be plotted. &lt;STRONG&gt;This works fine I have have selected just only one line but if i select for example the line 170 and 200 the &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;dailyTargetVolumeSanding is not plotted.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Someone could help me on how can I test in the expression when I have selected multiple areas to check if some of those areas is the area 200?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 12:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801833#M283054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-31T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801834#M283055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use sum(if(AREA='200',1)). With aggregation you check each datarow else it is nearly like a only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 12:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801834#M283055</guid>
      <dc:creator>jonasheisterkam</dc:creator>
      <dc:date>2015-01-31T12:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801835#M283056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use something like this for your reference line expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if (substringcount(';' &amp;amp; gefieldselections(AREA, ';', 50) &amp;amp; ';', ';200;') &amp;gt; 0, sum(daily...))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a complex version of a simple expression because it will match only one of selections 200, 2000 and A2000. It will match none of 2000, A2000 or 200X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 12:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801835#M283056</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-31T12:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801836#M283057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Great tip. It works perfectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Felipe &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 16:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801836#M283057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-31T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801837#M283058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried your suggestion and works fine. I just have made a small modification.&lt;/P&gt;&lt;P&gt;if (substringcount(getfieldselections(AREA, ';', 50) , '200') &amp;gt; 0, dailyTargetVolumeSanding,0)&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>Sat, 31 Jan 2015 17:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801837#M283058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-31T17:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hide or show reference lines on charts</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801838#M283059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the simple version of the expression I was talking about. I didn't know what other areas were available in you data so I took the careful approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 18:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-or-show-reference-lines-on-charts/m-p/801838#M283059</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-31T18:10:01Z</dc:date>
    </item>
  </channel>
</rss>

