<?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: Reference line expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595014#M1121011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The If()-function has a proper expression defined for when you only have one Region and one [Time Period] possible. But you don't describe what you want to do if there are several possible. What do you want to use as reference line then? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Category={Budget}&amp;gt;}Value)&lt;/SPAN&gt; all the time. Skip the If()-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2014 00:19:18 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-02-02T00:19:18Z</dc:date>
    <item>
      <title>Reference line expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595012#M1121009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working on the following waterfall chart I am trying to create associated reference lines based upon the selection of a region and date and have it display the corresponding budget target.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG.png" class="jive-image" height="111" src="https://community.qlik.com/legacyfs/online/52454_Capture2.PNG.png" style="width: 477px; height: 110.78709677419354px;" width="477" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A kind member of the community provided me with the following which works great to display for those dates within Q1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Count(DISTINCT Region) = 1 AND count(DISTINCT [Time Period])=1&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,sum({&amp;lt;Category={Budget}&amp;gt;}Value)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,''&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However once I select a time period outside of the first quarter it will not display&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Capture3.PNG.png" class="jive-image" height="119" src="https://community.qlik.com/legacyfs/online/52455_Capture3.PNG.png" style="width: 471px; height: 119.26935483870967px;" width="471" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So the question is, how can I modify the above such that it will recognize when the date selected corresponds to a new quarter? (Our quarters are Nov-Jan Q1, Feb-Apr q2, etc).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I feel like I need to provide some type of lookup reference against the month to determine the right quarter but I am not familiar enough with QV yet to know quite how.&amp;nbsp; Any help would be most appreciated. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 21:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595012#M1121009</guid>
      <dc:creator />
      <dc:date>2014-01-31T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595013#M1121010</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;What is the data model ? What is the relation between Time Period and Date fields ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 18:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595013#M1121010</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-01T18:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595014#M1121011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The If()-function has a proper expression defined for when you only have one Region and one [Time Period] possible. But you don't describe what you want to do if there are several possible. What do you want to use as reference line then? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Category={Budget}&amp;gt;}Value)&lt;/SPAN&gt; all the time. Skip the If()-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 00:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595014#M1121011</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-02T00:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595015#M1121012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The time period is our fiscal quarters throughout the year.&amp;nbsp; The date field is weekly data that we will be using to populate the model.&amp;nbsp; So there will be multiple dates that fit into a time period.&amp;nbsp; Once I load the real data in I will have historical and current data for 3+ yrs so I want to be able to reference what the target budget was for a given time period and see the model adjust depending upon if the date selected falls within a given time period.&amp;nbsp; I hope that clarifies, and thanks for taking a look at this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 17:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595015#M1121012</guid>
      <dc:creator />
      <dc:date>2014-02-03T17:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reference line expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595016#M1121013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point, so what I would like to do is if more than one region is selected, (example AMS, APJ, &amp;amp; EMEA) I would like to make the reference line reflect the selection so it would be the budget for those three regions if they are selected together. (Budget AMS+Budget APJ, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other key functionality I am trying to achieve is if I select a date in Q2, (see far left in picture) I want the reference lines to update to the Q2 number automatically without the user having to specifically select the time period.&amp;nbsp; In other words, the date selection will drive what reference line is shown by looking up the time period which it falls under, and then if the user selects multiple regions for that date, the reference line then provides the correctly totalled sum.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 22:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-line-expression/m-p/595016#M1121013</guid>
      <dc:creator />
      <dc:date>2014-02-03T22:43:04Z</dc:date>
    </item>
  </channel>
</rss>

