<?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 Two reference lines for two dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91169#M509454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I made a line chart that contains two dimensions ([Month Year] and [DATE]) and a single measure (Outstanding savings). The [DATE] is an alternative dimension. I want to display for each dimension selected in the graph the appropriate reference line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;In the expression of the reference line, I did as follows but it always shows me the same &lt;SPAN style="color: black;"&gt;reference &lt;/SPAN&gt;line (the conition in the if &lt;SPAN style="color: black;"&gt;always &lt;/SPAN&gt;returns&amp;nbsp; False):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;= if ([Month Year] = [Month Year],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;avg (aggr (Sum ({$ &amp;lt;[Line Type] = {"Savings Outstanding"}, [Flag End Month] = {"1"}&amp;gt;} Balance), [Month Year])),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;avg (aggr (Sum ({$ &amp;lt;[Line Type] = {"Savings Outstanding"}&amp;gt;} Balance), [DATE]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I need to know the good condition. Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2018 07:21:39 GMT</pubDate>
    <dc:creator>marwa_zerzeri</dc:creator>
    <dc:date>2018-08-01T07:21:39Z</dc:date>
    <item>
      <title>Two reference lines for two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91169#M509454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I made a line chart that contains two dimensions ([Month Year] and [DATE]) and a single measure (Outstanding savings). The [DATE] is an alternative dimension. I want to display for each dimension selected in the graph the appropriate reference line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;In the expression of the reference line, I did as follows but it always shows me the same &lt;SPAN style="color: black;"&gt;reference &lt;/SPAN&gt;line (the conition in the if &lt;SPAN style="color: black;"&gt;always &lt;/SPAN&gt;returns&amp;nbsp; False):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;= if ([Month Year] = [Month Year],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;avg (aggr (Sum ({$ &amp;lt;[Line Type] = {"Savings Outstanding"}, [Flag End Month] = {"1"}&amp;gt;} Balance), [Month Year])),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;avg (aggr (Sum ({$ &amp;lt;[Line Type] = {"Savings Outstanding"}&amp;gt;} Balance), [DATE]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I need to know the good condition. Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91169#M509454</guid>
      <dc:creator>marwa_zerzeri</dc:creator>
      <dc:date>2018-08-01T07:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two reference lines for two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91170#M509455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marwa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this by using a condition on the expression with GetCurrentField&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(cyclegroupname)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When you choose one of them, it should activate the appropriate expression based on the current cyclic group dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 16:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91170#M509455</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-08-01T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Two reference lines for two dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91171#M509456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felip,&lt;/P&gt;&lt;P&gt;Thank you for the response. The function &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;GetCurrentField&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;(cyclegroupname) is not supported by &lt;SPAN style="font-size: 13.3333px;"&gt;Qlik sense.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Is there another solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-reference-lines-for-two-dimensions/m-p/91171#M509456</guid>
      <dc:creator>marwa_zerzeri</dc:creator>
      <dc:date>2018-08-02T08:03:23Z</dc:date>
    </item>
  </channel>
</rss>

