<?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 Set Expression Results Inconsistent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Results-Inconsistent/m-p/1385757#M421980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have 2 qvws that are pretty much the same except 1 loads data from excel in the script and the other SQL from an Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now both have a series of button with an expression to generate the text of the button.&amp;nbsp; Each button represents a team member.&amp;nbsp; I'm using a set expression to display the count of items for each team member based on the current selection.&amp;nbsp; So the expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[TEAM_MEMBER]={'*John*'}&amp;gt;} [ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without any selection, the expression returns correct results. If I make selections, the numbers adjust correctly..... EXCEPT......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection I make is a team member then I would expect all to become 0 apart from the one for the team member that has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qwv pulling data from excel, it all works as expected and if I select a team member then all go to 0 except the chosen person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qwv pulling data from ORACLE, all works great apart from when I add a selection for team member. The result returned for each is as though I haven't selected a team member. The figures correctly adjust if I choose other selections but the team member selection is being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Oracle qwv was a copy of the excel qwv and then the script changed etc.&amp;nbsp; I doubt the script has anything to do with it, but it's the only thing I can see which is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 18:17:01 GMT</pubDate>
    <dc:creator>reddwarfcrew</dc:creator>
    <dc:date>2017-10-17T18:17:01Z</dc:date>
    <item>
      <title>Set Expression Results Inconsistent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Results-Inconsistent/m-p/1385757#M421980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have 2 qvws that are pretty much the same except 1 loads data from excel in the script and the other SQL from an Oracle DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now both have a series of button with an expression to generate the text of the button.&amp;nbsp; Each button represents a team member.&amp;nbsp; I'm using a set expression to display the count of items for each team member based on the current selection.&amp;nbsp; So the expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[TEAM_MEMBER]={'*John*'}&amp;gt;} [ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without any selection, the expression returns correct results. If I make selections, the numbers adjust correctly..... EXCEPT......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection I make is a team member then I would expect all to become 0 apart from the one for the team member that has been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qwv pulling data from excel, it all works as expected and if I select a team member then all go to 0 except the chosen person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qwv pulling data from ORACLE, all works great apart from when I add a selection for team member. The result returned for each is as though I haven't selected a team member. The figures correctly adjust if I choose other selections but the team member selection is being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Oracle qwv was a copy of the excel qwv and then the script changed etc.&amp;nbsp; I doubt the script has anything to do with it, but it's the only thing I can see which is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Results-Inconsistent/m-p/1385757#M421980</guid>
      <dc:creator>reddwarfcrew</dc:creator>
      <dc:date>2017-10-17T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Results Inconsistent</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Results-Inconsistent/m-p/1385758#M421981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay sussed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are actually working correctly.&amp;nbsp; I've realised that the 'if' part of the statement is actually a modifier which changes the selection and so overrides the selection if I have a team member selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why one file sets the results to 0 is because I have 2 fields that refer to the team member and the selection was using the second whereas the 'modifier' in the set analysis was using the first (so technically a different field!!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Results-Inconsistent/m-p/1385758#M421981</guid>
      <dc:creator>reddwarfcrew</dc:creator>
      <dc:date>2017-10-17T19:27:59Z</dc:date>
    </item>
  </channel>
</rss>

