<?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 Conditional Behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304607#M112563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; My Main Problem which often occurs on different places in the Set Anaylsis Loic is if i need to make a behavior depend on what has selected frm the user, I come into deadend with qlikview.&lt;BR /&gt;Example, assume I have a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_ID, Brand, Demand, Forecast&lt;BR /&gt;-----------------------------------------------------&lt;/P&gt;&lt;P&gt;20110101, 1000, 20, 55&lt;BR /&gt;20110201, 1000, 15, 50&lt;BR /&gt;20110301, 1000, 14, 50&lt;BR /&gt;20110401, 1000, 11, 45&lt;BR /&gt;20110501, 1000, 10, 45&lt;BR /&gt;20110601, 1000, 10, 40&lt;BR /&gt;20110701, 1000, 10, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And user selects MONTH_NAME:&amp;nbsp; APRIL&amp;nbsp; YEAR: 2011&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; In the chart I need following result, before Month 4 list Demand values, after month 4 list forecast values:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONTH_ID, Brand, Value, mode&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;20110101, 1000, 20 , 'DEMAND'&lt;BR /&gt;20110201, 1000, 15, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110301, 1000, 14, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110401, 1000, 11, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110501, 1000, 45, 'FORECAST'&lt;BR /&gt;20110601, 1000, 40, 'FORECAST'&lt;BR /&gt;20110701, 1000, 45, 'FORECAST'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;The chart I would make is: Dim: Brand, MONTH_NAME&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;The expression I would make is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (MONTH_ID &amp;gt; GetFeldSelection(MONTH_ID)&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;sum({&amp;lt;MONTH_NAME=,YEAR=&amp;gt;}&amp;nbsp; Demand, Forecast)&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&gt;With the abov result I like to make a graph line chart, and the forecast values should appear in dotted lines, if mode='FORECAST' the dotted&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 15:16:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-08T15:16:42Z</dc:date>
    <item>
      <title>Conditional Behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304607#M112563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; My Main Problem which often occurs on different places in the Set Anaylsis Loic is if i need to make a behavior depend on what has selected frm the user, I come into deadend with qlikview.&lt;BR /&gt;Example, assume I have a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH_ID, Brand, Demand, Forecast&lt;BR /&gt;-----------------------------------------------------&lt;/P&gt;&lt;P&gt;20110101, 1000, 20, 55&lt;BR /&gt;20110201, 1000, 15, 50&lt;BR /&gt;20110301, 1000, 14, 50&lt;BR /&gt;20110401, 1000, 11, 45&lt;BR /&gt;20110501, 1000, 10, 45&lt;BR /&gt;20110601, 1000, 10, 40&lt;BR /&gt;20110701, 1000, 10, 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And user selects MONTH_NAME:&amp;nbsp; APRIL&amp;nbsp; YEAR: 2011&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; In the chart I need following result, before Month 4 list Demand values, after month 4 list forecast values:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONTH_ID, Brand, Value, mode&lt;/P&gt;&lt;P&gt;--------------------------------------------&lt;/P&gt;&lt;P&gt;20110101, 1000, 20 , 'DEMAND'&lt;BR /&gt;20110201, 1000, 15, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110301, 1000, 14, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110401, 1000, 11, 'DEMAND'&lt;/P&gt;&lt;P&gt;20110501, 1000, 45, 'FORECAST'&lt;BR /&gt;20110601, 1000, 40, 'FORECAST'&lt;BR /&gt;20110701, 1000, 45, 'FORECAST'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;The chart I would make is: Dim: Brand, MONTH_NAME&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;The expression I would make is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (MONTH_ID &amp;gt; GetFeldSelection(MONTH_ID)&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;sum({&amp;lt;MONTH_NAME=,YEAR=&amp;gt;}&amp;nbsp; Demand, Forecast)&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&gt;With the abov result I like to make a graph line chart, and the forecast values should appear in dotted lines, if mode='FORECAST' the dotted&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304607#M112563</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Conditional Behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304608#M112564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I forgot to say, with the expression I try it does not work, I have always only the selected MONTH_ID, even if I have the: MONTH_ID=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304608#M112564</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Conditional Behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304609#M112565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your above table (without additional MONTH_NAME, YEAR) and this expression seems to work quite well (using a straight table with dimensions Brand and MONTH_ID):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(only({&amp;lt;MONTH_ID= &amp;gt;} MONTH_ID) &amp;lt;= max( total MONTH_ID), sum({&amp;lt;MONTH_ID= &amp;gt;} Demand),sum({&amp;lt;MONTH_ID= &amp;gt;} Forecast))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304609#M112565</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-08T15:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304610#M112566</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;Here is a possible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Behaviour/m-p/304610#M112566</guid>
      <dc:creator />
      <dc:date>2011-11-08T15:46:01Z</dc:date>
    </item>
  </channel>
</rss>

