<?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: Set Analysis Comparing two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410452#M152749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ADMIN_DT and DOB shouldn't be dimensions in your chart. Set analysis expressions are calculated once per chart, not per row. You'll have to use an if statement instead if you use ADMIN_DT or DOB as a dimension in your chart and you don't select only one value. Something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;COUNT(&lt;SPAN style="font-family: monospace;"&gt;DISTINCT &lt;/SPAN&gt;if(ADMIT_DT &amp;gt;= ADDMONTHS(MONTHSTART(DOB),12),MRN)) &lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 19:18:09 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-03-05T19:18:09Z</dc:date>
    <item>
      <title>Set Analysis Comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410451#M152748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the following set analysis but I am getting no results. Are you unable to compare one field to another?&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13625097472951829" jivemacro_uid="_13625097472951829"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ADMIT_DT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;= $(=NUM(ADDMONTHS(MONTHSTART(DOB),12)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MRN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;ADMIT_DT is a number. Any help would be greatly appreciated? Thank you&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 18:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410451#M152748</guid>
      <dc:creator>tchovanec</dc:creator>
      <dc:date>2013-03-05T18:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410452#M152749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ADMIN_DT and DOB shouldn't be dimensions in your chart. Set analysis expressions are calculated once per chart, not per row. You'll have to use an if statement instead if you use ADMIN_DT or DOB as a dimension in your chart and you don't select only one value. Something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;COUNT(&lt;SPAN style="font-family: monospace;"&gt;DISTINCT &lt;/SPAN&gt;if(ADMIT_DT &amp;gt;= ADDMONTHS(MONTHSTART(DOB),12),MRN)) &lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 19:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410452#M152749</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-05T19:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Comparing two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410453#M152750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an if statement where? I am unsure of what you are saying. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 19:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Comparing-two-fields/m-p/410453#M152750</guid>
      <dc:creator>tchovanec</dc:creator>
      <dc:date>2013-03-05T19:31:09Z</dc:date>
    </item>
  </channel>
</rss>

