<?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 Controlling expression in chart by user selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542518#M202748</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;I have a chart which is kinked to periods listbox selections: year, month, day&lt;/P&gt;&lt;P&gt;There is a Sum expression which should be calculated differenly in case a day or a month is selected.&lt;/P&gt;&lt;P&gt;For example, if a day is selected then sum(X). &lt;/P&gt;&lt;P&gt;For Month, it should be Sum(X+Y).&lt;/P&gt;&lt;P&gt;How can I distinguish between the selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 13:21:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-28T13:21:56Z</dc:date>
    <item>
      <title>Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542518#M202748</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;I have a chart which is kinked to periods listbox selections: year, month, day&lt;/P&gt;&lt;P&gt;There is a Sum expression which should be calculated differenly in case a day or a month is selected.&lt;/P&gt;&lt;P&gt;For example, if a day is selected then sum(X). &lt;/P&gt;&lt;P&gt;For Month, it should be Sum(X+Y).&lt;/P&gt;&lt;P&gt;How can I distinguish between the selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542518#M202748</guid>
      <dc:creator />
      <dc:date>2013-08-28T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542519#M202749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the method getSelectedCount(Field) to know hhow many rows of a field are selected. For your case, your can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(getSelectedCount(Year)=0, sum(X), if(getSelectedCount(Month)=0, sum(X+Y))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542519#M202749</guid>
      <dc:creator />
      <dc:date>2013-08-28T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542520#M202750</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;You can create an expression for each Sum expression and activate the option conditionnal :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Expressions condition.jpg" class="jive-image" src="/legacyfs/online/45974_Expressions condition.jpg" style="width: 620px; height: 545px;" /&gt;&lt;/P&gt;&lt;P&gt;For example the condition GetFieldSelections(day) = 1 is true when one and only one day is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542520#M202750</guid>
      <dc:creator />
      <dc:date>2013-08-28T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542521#M202751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this&lt;/P&gt;&lt;P&gt;if(getselectedcount(Day)&amp;gt;0, Sum(X), Sum(X+Y))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542521#M202751</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-28T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542522#M202752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi brain,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i have one doubt like if both are selected what you needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 13:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542522#M202752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling expression in chart by user selection</title>
      <link>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542523#M202753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually all answers were very helpful, but I liked the tip with the Conditional&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 16:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Controlling-expression-in-chart-by-user-selection/m-p/542523#M202753</guid>
      <dc:creator />
      <dc:date>2013-08-28T16:21:39Z</dc:date>
    </item>
  </channel>
</rss>

