<?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: How to subtract in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108780#M7440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i need it like &amp;gt;90 and &amp;lt;=180 Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2018 17:50:26 GMT</pubDate>
    <dc:creator>vmoreno2605</dc:creator>
    <dc:date>2018-11-05T17:50:26Z</dc:date>
    <item>
      <title>How to subtract in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108778#M7438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone! I need your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a formula that gets me the quantity of active employees. &lt;/P&gt;&lt;P&gt;This formula allows me to see the quantity of active employees &lt;SPAN lang="en"&gt;through the time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;This is the formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'H'}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'T'}&amp;gt;}Distinct EMPLOYEE) + &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'H'}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'T'}&amp;gt;}Distinct EMPLOYEE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vFecha)=This is the date that i'm watching now&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vFechaInicioAño)=This is January 1st from the year of $(vFecha)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I want to filter by amount of time the employee has been active, for example: 1 week, 2-3 months, 1-2 years...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;There is a field called HireDate, this field contains the date when the employee was hired.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NOTE: Because of business rule, this is the only way(this formula) i'm able to get how many active people we have, but now i want them like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="imagen1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217556_imagen1.PNG" style="height: 197px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This table is the result for the current date, but it only works for today, i want to be able to see this info &lt;SPAN style="font-size: 13.3333px;"&gt;through the time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've been trying to use if like this example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if($(vFecha)-HireDate&amp;lt;=90,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'H'}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'T'}&amp;gt;}Distinct EMPLOYEE) + &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'H'}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'T'}&amp;gt;}Distinct EMPLOYEE))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This does not work, but you can see what i try to do in case you don;t understand my english.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'd &lt;SPAN lang="en"&gt;appreciate your help. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN lang="en"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108778#M7438</guid>
      <dc:creator>vmoreno2605</dc:creator>
      <dc:date>2018-11-05T17:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108779#M7439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS WORKS! but i still need it like &amp;lt;=90 and &amp;gt;180, it only works with&amp;nbsp; &amp;lt;=90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'H'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;={"=$(vFecha)-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;&amp;lt;=90"}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;$(vFechaInicioAño)"},HireTerm={'T'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;={"=$(vFecha)-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;&amp;lt;=90"}&amp;gt;}Distinct EMPLOYEE) + &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'H'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;={"=$(vFecha)-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;&amp;lt;=90"}&amp;gt;}Distinct EMPLOYEE) - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;FechaNum={"&amp;lt;=$(vFecha)&amp;gt;=$(vFechaInicioAño)"},HireTerm={'T'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;={"=$(vFecha)-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;HireDate&lt;/SPAN&gt;&amp;lt;=90"}&amp;gt;}Distinct EMPLOYEE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108779#M7439</guid>
      <dc:creator>vmoreno2605</dc:creator>
      <dc:date>2018-11-05T17:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108780#M7440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i need it like &amp;gt;90 and &amp;lt;=180 Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 17:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-subtract-in-set-analysis/m-p/108780#M7440</guid>
      <dc:creator>vmoreno2605</dc:creator>
      <dc:date>2018-11-05T17:50:26Z</dc:date>
    </item>
  </channel>
</rss>

