<?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: Dynamic Target Line for Bar Chart based on a Bookmark in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482942#M481227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's impossible to say what the correct expression should be without having the data, but I can say the following:&lt;/P&gt;&lt;P&gt;1) You have duplicate Set Identifiers: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{BM2012}{$&amp;lt;&lt;/SPAN&gt;...&amp;gt;}&amp;nbsp; This will not work. Use {BM2012&amp;lt;...&amp;gt;} instead.&lt;/P&gt;&lt;P&gt;2) If you want to combine the bookmark with the current selection, you should probably do it using implicit field value definitions:&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; {BM2013&amp;lt;Field=P({$} Field)&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2013 12:18:15 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-10-17T12:18:15Z</dc:date>
    <item>
      <title>Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482940#M481225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a target line for my bar chart based on year 2012 to compare against data prior and post 2012. I have created the bookmark BM2012 to help. What I am expecting from my formula is that the target line remains the same for any given set of listbox selections where the only difference is the year selected.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To illustrate, my intention is that:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The target line should stay the same for these two selections:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Year:2011-12&lt;BR /&gt;Department: BBB&lt;BR /&gt;Section: 123&lt;BR /&gt;Customer: AAA&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Year:2012-13&lt;BR /&gt;Department: BBB&lt;BR /&gt;Section: 123&lt;BR /&gt;Customer: AAA&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But likely be different for the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Year:2011-12&lt;BR /&gt;Department: BBB&lt;BR /&gt;Section: 123&lt;BR /&gt;Customer: AAA&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Year:2011-12&lt;BR /&gt;Department: BBB&lt;BR /&gt;Section: 123&lt;BR /&gt;Customer: CCC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The code I am using is the same as the bar chart and is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({BM2012}{$&amp;lt;[L O S] = {"&amp;gt;= $(vSlider)"}&amp;gt;}Distinct [L O S]), ZNumber)) / count({BM2012}{$&amp;lt;[L O S] = {"&amp;gt;= $(vSlider)"}&amp;gt;} Distinct ZNumber )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 08:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482940#M481225</guid>
      <dc:creator />
      <dc:date>2013-10-17T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482941#M481226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 10:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482941#M481226</guid>
      <dc:creator />
      <dc:date>2013-10-17T10:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482942#M481227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's impossible to say what the correct expression should be without having the data, but I can say the following:&lt;/P&gt;&lt;P&gt;1) You have duplicate Set Identifiers: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{BM2012}{$&amp;lt;&lt;/SPAN&gt;...&amp;gt;}&amp;nbsp; This will not work. Use {BM2012&amp;lt;...&amp;gt;} instead.&lt;/P&gt;&lt;P&gt;2) If you want to combine the bookmark with the current selection, you should probably do it using implicit field value definitions:&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; {BM2013&amp;lt;Field=P({$} Field)&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 12:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482942#M481227</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-10-17T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482943#M481228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. I am struggling to get the expression to validate. Here is the first part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BM2012&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = P({&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;= $(vSlider)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)} Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), zNumber)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 16:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482943#M481228</guid>
      <dc:creator />
      <dc:date>2013-10-17T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482944#M481229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Perhaps this: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;( {&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;BM2012&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;"&amp;gt;= $(vSlider)"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; Distinct &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;), zNumber))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482944#M481229</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-17T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Target Line for Bar Chart based on a Bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482945#M481230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="j-author-act font-color-meta-light"&gt;&lt;A _jive_internal="true" data-avatarid="6257" data-externalid="" data-online="false" data-presence="null" data-userid="96544" data-username="gwassenaar" href="https://community.qlik.com/people/gwassenaar"&gt;G Wassenaar&lt;/A&gt; (to &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="138298" data-username="obs12345" href="https://community.qlik.com/people/obs12345"&gt;carl carl&lt;/A&gt;)&lt;SPAN class="font-color-meta-light j-act-time"&gt; &lt;A _jive_internal="true" class="font-color-meta-light" href="https://community.qlik.com/message/408036#408036"&gt;18 hours ago&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Perhaps this: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff; font-family: inherit;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff; font-family: inherit;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff; font-family: inherit;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt;( {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff; font-family: inherit;"&gt;BM2012&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000; font-family: inherit;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000; font-family: inherit;"&gt;"&amp;gt;= $(vSlider)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt; Distinct &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000; font-family: inherit;"&gt;[LOS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: inherit;"&gt;), zNumber))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input. The full expression generates a value of "0" and that shouldn't be the case.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BM2012&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[L O S]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;= $(vSlider)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} Distinct &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[L O S]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), zNumber)) / count({BM2012 &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[L O S]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;= $(vSlider)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} Distinct zNumber) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 10:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Target-Line-for-Bar-Chart-based-on-a-Bookmark/m-p/482945#M481230</guid>
      <dc:creator />
      <dc:date>2013-10-18T10:38:58Z</dc:date>
    </item>
  </channel>
</rss>

