<?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 Vertical reference line based on graph itself in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Vertical-reference-line-based-on-graph-itself/m-p/128370#M509655</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;the example is imagined, the problem very real in another application -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a linechart based on days since store opening as X-Axis (dimension) and sales as Y-Axis (expression).&lt;/P&gt;&lt;P&gt;I want to draw &lt;SPAN style="text-decoration: underline;"&gt;a vertical reference line where my sales drop below 500&lt;/SPAN&gt;. I need to calculate it in the reference line expression as it can be subject change (different stores being filtered).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the sales drop below 500 they never go above 500 again (imagine a line going from the top left to the bottom right).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I identify/calculate the "day" on which the sales dropped below 500 in an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need additional information, please ask:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 07:40:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-26T07:40:05Z</dc:date>
    <item>
      <title>Vertical reference line based on graph itself</title>
      <link>https://community.qlik.com/t5/QlikView/Vertical-reference-line-based-on-graph-itself/m-p/128370#M509655</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;the example is imagined, the problem very real in another application -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a linechart based on days since store opening as X-Axis (dimension) and sales as Y-Axis (expression).&lt;/P&gt;&lt;P&gt;I want to draw &lt;SPAN style="text-decoration: underline;"&gt;a vertical reference line where my sales drop below 500&lt;/SPAN&gt;. I need to calculate it in the reference line expression as it can be subject change (different stores being filtered).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the sales drop below 500 they never go above 500 again (imagine a line going from the top left to the bottom right).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I identify/calculate the "day" on which the sales dropped below 500 in an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need additional information, please ask:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vertical-reference-line-based-on-graph-itself/m-p/128370#M509655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T07:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Vertical reference line based on graph itself</title>
      <link>https://community.qlik.com/t5/QlikView/Vertical-reference-line-based-on-graph-itself/m-p/128371#M509657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a (partial) solution - formula inside the reference line expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= FirstSortedValue ( daysSinceOpening,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SUM(Sales)&amp;lt;500, SUM(Sales), 0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; daysSinceOpening&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This gives me the first day on which Sales was below 500. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, this is calculated on a &lt;STRONG&gt;day to day&lt;/STRONG&gt; basis. (Which does solve the problem mentioned by me in the question, but as it turns out not my initial problem). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I want to find out &lt;STRONG&gt;the week&lt;/STRONG&gt; (since store opening) on which sales was below 500 I encounter another problem of the function not returning any value anymore. Below you can see my function where I try to aggregate on a weekly setting: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= FirstSortedValue (&amp;nbsp; Floor(daysSinceOpening, 7),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SUM(Sales)&amp;lt;500, SUM(Sales), 0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Floor(daysSinceOpening, 7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 09:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vertical-reference-line-based-on-graph-itself/m-p/128371#M509657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T09:04:27Z</dc:date>
    </item>
  </channel>
</rss>

