<?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 AW:Re: AW:Make charts interact with selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239991#M90548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;glad to help you. Would you mark my answer as solution so the thread will be marked green (solved).&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 19:56:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-07T19:56:45Z</dc:date>
    <item>
      <title>Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239986#M90543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have the next problem;&lt;/P&gt;&lt;P&gt;I want to make my chart more or less interact with the selection I make. When I select one year i want to show the values of that year, no problem because this is normal behaviour. When I select no year I want the data of a predefined year lets say 2010, and when i select multiple years I want the data of the selected year with the highest value. First i make the label;&lt;/P&gt;&lt;P&gt;=If(Len(GetFieldSelections(Year,';',1000))=0,&lt;BR /&gt; '2010',&lt;BR /&gt; Right(GetFieldSelections(Year,';',1000),4)&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly!&lt;/P&gt;&lt;P&gt;Then I make the definition;&lt;/P&gt;&lt;P&gt;If(Len(GetFieldSelections(Year,';',1000))=0,&lt;BR /&gt; Count({&amp;lt;Source={PTE},Year={2010}&amp;gt;}[Article number]),&lt;BR /&gt; Count({&amp;lt;Source={PTE},Year={Right(GetFieldSelections(Year,';',1000),4)}&amp;gt;}[Article number]&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;This doesn't work, the error is in the false section of the if statement, because when I replace this with 0 I get values when I make no selection;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(GetFieldSelections(Year,';',1000))=0,&lt;BR /&gt; Count ({&amp;lt;Source={PTE},Year={2010}&amp;gt;}[Article number]),&lt;BR /&gt; 0&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;Can anyone help me out here? Thanks in advance!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239986#M90543</guid>
      <dc:creator />
      <dc:date>2011-03-04T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239987#M90544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;[[When I select no year I want the data of a predefined year lets say 2011]] For this Query, what you can do is go to the Properties of the Listbox and then under the General Tab select check box Always one selected Value (Before doing this you need to have 2011 selected). So no matter wherever you are always 2011 is selected and other selection of years anyways works normal.&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239987#M90544</guid>
      <dc:creator />
      <dc:date>2011-03-04T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239988#M90545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed that's also a good one! And probably a solution in this case. I also want to know what I'm doing wrong in the solution I made because i can think of cases where I need this one. Thnx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239988#M90545</guid>
      <dc:creator />
      <dc:date>2011-03-04T16:45:40Z</dc:date>
    </item>
    <item>
      <title>AW:Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239989#M90546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;in your else-clause you are using SET Analysis within the count()-function. SET Analysis has another syntax as the if(). Try this when using SET:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;. . . Year= { $(=maxstring(Year)) } . . .&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Notes:&lt;/P&gt;&lt;P&gt;Maxstring() returns perfectly (what I think) what you want. Check it out in a textbox. To use a function within a SET Analysis-Clause you have to use the $(=) Operator. Please check the manual for details.&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239989#M90546</guid>
      <dc:creator />
      <dc:date>2011-03-04T16:54:00Z</dc:date>
    </item>
    <item>
      <title>AW:Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239990#M90547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works! Thnx!&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 14:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239990#M90547</guid>
      <dc:creator />
      <dc:date>2011-03-06T14:54:08Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Make charts interact with selections</title>
      <link>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239991#M90548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;glad to help you. Would you mark my answer as solution so the thread will be marked green (solved).&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 19:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-charts-interact-with-selections/m-p/239991#M90548</guid>
      <dc:creator />
      <dc:date>2011-03-07T19:56:45Z</dc:date>
    </item>
  </channel>
</rss>

