<?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: Count field using Set Analysis for two separate fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1728359#M455503</link>
    <description>Make sure the format of EOD1 D/M/YYYY is as well the one returned by $(=Today(1)).&lt;BR /&gt;&lt;BR /&gt;In your second expression you are using the set operator "*=". Is it a typo or you are really want to intersect the values in the data with those from your selections?</description>
    <pubDate>Thu, 16 Jul 2020 10:13:02 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2020-07-16T10:13:02Z</dc:date>
    <item>
      <title>Count field using Set Analysis for two separate fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1727860#M455502</link>
      <description>&lt;P&gt;Hi everyone, I've become lurker on this forum over the last few months, but I'm really stuck right now on this question:&lt;/P&gt;&lt;P&gt;I have a Table where I'd like to display the Count for Field "IC" where "Training" is 'Incomplete' but exclude records where the trainee is within one year of joining the organization. I scripted a field where the date is one year after joining "EOD1".&lt;/P&gt;&lt;P&gt;=Count(IC) gives me the basic count&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[Training]*={'Incomplete'}&amp;gt;}IC) Gives me the count where "Training" is 'Incomplete'&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;EOD1={"&amp;gt;$(=Today(1))"}&amp;gt;}IC) Should give me the count where "EOD1" is less than Today(1), but I think this is where I'm going wrong.&lt;/P&gt;&lt;P&gt;Then, I'd like to join these sets for a working expression in the table, like this:&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[Training]={'Incomplete'},EOD1-={"&amp;gt;=$(=Today(1))"}&amp;gt;}IC)&lt;/P&gt;&lt;P&gt;FYI: My Date Format is D/M/YYYY&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1727860#M455502</guid>
      <dc:creator>TooncesTheCat</dc:creator>
      <dc:date>2024-11-16T00:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count field using Set Analysis for two separate fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1728359#M455503</link>
      <description>Make sure the format of EOD1 D/M/YYYY is as well the one returned by $(=Today(1)).&lt;BR /&gt;&lt;BR /&gt;In your second expression you are using the set operator "*=". Is it a typo or you are really want to intersect the values in the data with those from your selections?</description>
      <pubDate>Thu, 16 Jul 2020 10:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1728359#M455503</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2020-07-16T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count field using Set Analysis for two separate fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1728403#M455504</link>
      <description>&lt;P&gt;Thank you Miguel,&lt;/P&gt;&lt;P&gt;Yes, that's a typo. I was experimenting with the set expression generator, and realize that intersection is not what I wanted. Instead I want to select rows in "IC" where both the field values in "Training "are "Incomplete" and "EOD1" are "'Less than or Equal to' Today"&amp;nbsp; where the conditions are as outlined are true, not the intersection of those selections.&lt;/P&gt;&lt;P&gt;You're correct about the Date too, I think that contributed to the Date expressions not working earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have it.&amp;nbsp; For the date element, I have:&amp;nbsp;[EOD1]= {"&amp;lt;=$(=Date(Today(), 'M/D/YYYY'))"}&lt;/P&gt;&lt;P&gt;So for the complete set expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Training]={'Incomplete'},[EOD1]= {"&amp;lt;=$(=Date(Today(), 'M/D/YYYY'))"}&amp;gt;} IC))&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 11:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-field-using-Set-Analysis-for-two-separate-fields/m-p/1728403#M455504</guid>
      <dc:creator>TooncesTheCat</dc:creator>
      <dc:date>2020-07-16T11:43:00Z</dc:date>
    </item>
  </channel>
</rss>

