<?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: different reference lines for periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615155#M736033</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Than you for you suggestion. I attached the app.&lt;/P&gt;&lt;P&gt;The desired effect is to apply different reference lines for different months.&amp;nbsp;So&amp;nbsp;if our target changed over periods, I would like to see previous month with previous target and actual month with actual target&amp;nbsp;to be able to compare data and&amp;nbsp;see how target changed also.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 06:58:50 GMT</pubDate>
    <dc:creator>wooden411</dc:creator>
    <dc:date>2019-08-22T06:58:50Z</dc:date>
    <item>
      <title>different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607445#M736028</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am kind of new to QV and not very experienced in syntax, so I would like to ask about example of solution for described below issue.&lt;/P&gt;&lt;P&gt;I created graphs with daily values for last three months and added reference lines. Issue is that reference lines differ for months. I would like to add reference lines as calculated Expression and save values for every month as VARIABLES (to be able to fast update values).&amp;nbsp; I imagine it looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;=if( MonthName=$(vCurrentMonth)),$(v(reflinecurrentperiod) ,&lt;/P&gt;&lt;P&gt;if( MonthName=$(vCurrentMonth)-1),$(v(reflinepreviousperiod)&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( MonthName=$(vCurrentMonth)-2),$(v(reflineperiodt-2)&amp;nbsp; &amp;nbsp; &amp;nbsp; or something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help with the syntax or suggest any other solution to get desired effect.&amp;nbsp; Please see attached screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reference lines.PNG" style="width: 669px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16196iFD5B75395ADA6E0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="reference lines.PNG" alt="reference lines.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607445#M736028</guid>
      <dc:creator>wooden411</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607469#M736029</link>
      <description>&lt;P&gt;If you could share the variable how it is defined it will easy. Syntax like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if( MonthName=$(vCurrentMonth), $(vreflinecurrentperiod) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( MonthName=$(vCurrentMonth)-1, $(vreflinepreviousperiod)&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if( MonthName=$(vCurrentMonth)-2, $(vreflineperiodt)-2)))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607469#M736029</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-07-30T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607547#M736030</link>
      <description>&lt;P&gt;I thought about sth like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variables.PNG" style="width: 555px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16215i4CB9E74F1603BAE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="variables.PNG" alt="variables.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607547#M736030</guid>
      <dc:creator>wooden411</dc:creator>
      <dc:date>2019-07-30T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607864#M736031</link>
      <description>&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created variables as follows:&lt;/P&gt;&lt;P&gt;- CurrentMonth=MonthName(Today())&lt;/P&gt;&lt;P&gt;- RLcurrentLFG=1600&lt;/P&gt;&lt;P&gt;- RL-1LFG=1800&lt;/P&gt;&lt;P&gt;- RL-2LFG=2000,&lt;/P&gt;&lt;P&gt;and added formula as follows as reference line expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(MonthName=$(vCurrentMonth), $(vRLcurrentLFG) ,&lt;/P&gt;&lt;P&gt;if(MonthName=$(vCurrentMonth)-1, $(vRL-1LFG) ,&lt;/P&gt;&lt;P&gt;if(MonthName=$(vCurrentMonth)-2, $(vRL-1LFG))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but still not working. Any hint why?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 07:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1607864#M736031</guid>
      <dc:creator>wooden411</dc:creator>
      <dc:date>2019-07-31T07:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615041#M736032</link>
      <description>&lt;P&gt;Jakub, it will be most helpful if you can attach an app, does not have to be the app, but a sample app, or you can go to Settings\Document Properties\Scrambling tab in the Desktop client and choose the fields you want to scramble, so folks cannot see the actual data etc.&amp;nbsp; In your case, I think it is going to be necessary for folks to be able to see the data model etc. as well as the chart props, variables and expressions in order to get you on the right track.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615041#M736032</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-21T19:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615155#M736033</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Than you for you suggestion. I attached the app.&lt;/P&gt;&lt;P&gt;The desired effect is to apply different reference lines for different months.&amp;nbsp;So&amp;nbsp;if our target changed over periods, I would like to see previous month with previous target and actual month with actual target&amp;nbsp;to be able to compare data and&amp;nbsp;see how target changed also.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 06:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615155#M736033</guid>
      <dc:creator>wooden411</dc:creator>
      <dc:date>2019-08-22T06:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: different reference lines for periods</title>
      <link>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615384#M736034</link>
      <description>&lt;P&gt;Which chart are we looking to help you with? Also, because of scrambling the data, values within WHSE_Desc have changed and the if statement doesn't work...&amp;nbsp; make sure to update them so that we can work with the values in some of the chart if that is where you need our help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/different-reference-lines-for-periods/m-p/1615384#M736034</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-22T12:57:48Z</dc:date>
    </item>
  </channel>
</rss>

