<?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: help with a set analysis expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554330#M207105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. &lt;/P&gt;&lt;P&gt;That is good but what i want is to only show the PCode T and H where the group is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to see all the group=other and all the PCode t and h where the group is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 10:58:42 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2013-10-31T10:58:42Z</dc:date>
    <item>
      <title>help with a set analysis expression.</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554328#M207103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an expression to give me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Sales)&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;[To Group] = {'Other'}&lt;/P&gt;&lt;P&gt;or [To Group] is null when PCode = {'T', 'H'}&lt;/P&gt;&lt;P&gt;[Invoice Date] is greater than start of current year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following working..&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[To Group]={'Other'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[PCode]={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i don't know how to combine them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 10:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554328#M207103</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-10-31T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: help with a set analysis expression.</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554329#M207104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[To Group]={'Other'} + [PCode]={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 10:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554329#M207104</guid>
      <dc:creator>ronaldocarrijo</dc:creator>
      <dc:date>2013-10-31T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: help with a set analysis expression.</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554330#M207105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. &lt;/P&gt;&lt;P&gt;That is good but what i want is to only show the PCode T and H where the group is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to see all the group=other and all the PCode t and h where the group is null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 10:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554330#M207105</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2013-10-31T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with a set analysis expression.</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554331#M207106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;[To Group]={'Other'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;+&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[To Group]-={'*'}&lt;/SPAN&gt;,[PCode]={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;&lt;/SPAN&gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554331#M207106</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-31T11:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: help with a set analysis expression.</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554332#M207107</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 would try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13832188900766082 jive_macro_code" jivemacro_uid="_13832188900766082"&gt;
&lt;P&gt;=sum({$&amp;lt;PCode={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;*&amp;lt;[To Group]={''},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;+&amp;lt;[To Group]={'Other'},PCode-={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'} &amp;gt;}Value)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is summing:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13832189455186251" jivemacro_uid="_13832189455186251"&gt;
&lt;P&gt;PCode={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;*&amp;lt;[To Group]={''},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;The field "Value" &lt;/P&gt;&lt;P&gt;when PCode is T or H AND [To Group] is blank ''&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13832190088745551" jivemacro_uid="_13832190088745551"&gt;
&lt;P&gt;&amp;lt;[To Group]={'Other'},PCode-={'T','H'},[Invoice Date]={'&amp;gt;=$(=Only(YearStart(Now())))'}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;[To Group] is "Other" and Pcode is not "T" or "H" (denoted as -=)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;P&gt;&lt;A href="http://biexperience.wordpress.com/" title="http://biexperience.wordpress.com/"&gt;BI Experience | A place to share our Business Intelligence experiences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-a-set-analysis-expression/m-p/554332#M207107</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-10-31T11:28:58Z</dc:date>
    </item>
  </channel>
</rss>

