<?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: Cyclic Group with if statement - Selection selects &amp;gt; 1 field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650410#M237895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use set analysis expressions instead of messing about with calculated dimensions. Suppose you now have an expression sum(Sales). To exclude new customers you could change it to sum(&lt;STRONG&gt;{&amp;lt;FYbudgetCode={'&amp;lt;3'}&amp;gt;}&lt;/STRONG&gt;Sales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 09:55:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-10-03T09:55:06Z</dc:date>
    <item>
      <title>Cyclic Group with if statement - Selection selects &gt; 1 field</title>
      <link>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650409#M237894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a sales budget dashboard that with three panes (charts) .&amp;nbsp; The first has the cyclic group with sales person as one dimension and customer as the second and includes data for EXISTING budgeted customers.&amp;nbsp; The second has sales person as the dimension and shows data for NEW customers only. The third shows the totals by sales person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue was that in the first pane for EXISITING data, NEW customers were being listed along with the EXISTING customers, but only if I didn't filter by a specific sales person. If I select a specific salesperson, the "exclude zero values" rule applies, but if I don't it is ignored (and the values are zero)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added an IF statement to my cyclic group: =if(FYbudgetCode&amp;lt;3, [CustomerName]). //where 3 is NEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now when I select a customer name, the current selections box shows my customer as selected &lt;SPAN style="text-decoration: underline;"&gt;as well as&lt;/SPAN&gt; &lt;STRONG&gt;"FYbudgetCode = 2".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't want FYbudgetCode to be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650409#M237894</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2014-10-02T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Group with if statement - Selection selects &gt; 1 field</title>
      <link>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650410#M237895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use set analysis expressions instead of messing about with calculated dimensions. Suppose you now have an expression sum(Sales). To exclude new customers you could change it to sum(&lt;STRONG&gt;{&amp;lt;FYbudgetCode={'&amp;lt;3'}&amp;gt;}&lt;/STRONG&gt;Sales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 09:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650410#M237895</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-03T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic Group with if statement - Selection selects &gt; 1 field</title>
      <link>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650411#M237896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Than you, Gysbert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got me thinking along the right direction. The reason it was not working when I had multiple salespeople is because I had added two columns outside of the main view of the chart where I neglected to wrap the field in an "only()" statement that filters them down to EXISTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 14:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cyclic-Group-with-if-statement-Selection-selects-gt-1-field/m-p/650411#M237896</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2014-10-07T14:42:47Z</dc:date>
    </item>
  </channel>
</rss>

