<?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: If greater than and less than expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434069#M807047</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;instead of the queer excel syntax&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;If(And(ELD-ESD&amp;gt;0,ELD-ESD&amp;lt;3),"0-3",If(And(ELD-ESD&amp;gt;3,ELD-ESD&amp;lt;6),"3-6",.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you would use something like this in QlikView:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(ELD-ESD&amp;gt;0 and ELD-ESD&amp;lt;3,'0-3',If(ELD-ESD&amp;gt;3 and ELD-ESD&amp;lt;6,'3-6',.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or shorter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(ELD-ESD&amp;gt;0, If(ELD-ESD&amp;lt;3,'0-3',If(ELD-ESD&amp;lt;6,'3-6',.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 20:33:50 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2017-10-25T20:33:50Z</dc:date>
    <item>
      <title>If greater than and less than expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434065#M807043</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;Im trying to do an expression where if the calculation of two fields is greater than x and less than y then give me z as an answer....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((EmployeeLeftDate - EmployeeStartDate)/30.4) &amp;gt;0&amp;lt;3,"0-3",&lt;/P&gt;&lt;P&gt;if((EmployeeLeftDate - EmployeeStartDate)/30.4) &amp;gt;3&amp;lt;6,"3-6",&lt;/P&gt;&lt;P&gt;if((EmployeeLeftDate - EmployeeStartDate)/30.4) &amp;gt;6&amp;lt;12,"6-12",&lt;/P&gt;&lt;P&gt;if((EmployeeLeftDate - EmployeeStartDate)/30.4) &amp;gt;12&amp;lt;36,"12-36","36+"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im very new to Qlikview and don't really understand set analysis yet im assuming I need to use that to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel I would simple do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(And(ELD-ESD&amp;gt;0,ELD-ESD&amp;lt;3),"0-3",If(And(ELD-ESD&amp;gt;3,ELD-ESD&amp;lt;6),"3-6",.............. and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about achieving this in a qlikview expression??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434065#M807043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If greater than and less than expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434066#M807044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([ELD-ESD] &amp;gt;0 and [ELD-ESD] &amp;lt;3, Dual('0-3',1), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;If([ELD-ESD] &amp;gt;3 and [ELD-ESD] &amp;lt;6, Dual('3-6',2), .....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434066#M807044</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-10-25T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: If greater than and less than expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434067#M807045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can use your rule on load script, creating a new field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; On the interface you could create table object with sum(newfield) to do this calc, and using any kind of field as dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434067#M807045</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2017-10-25T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: If greater than and less than expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434068#M807046</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;What Anil has recommended should work. Can you please explain what you are trying to do with following inf your IF statements&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(EmployeeLeftDate - EmployeeStartDate)/30.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;If you could attach a sample data and app then will be easier to help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Vijay&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434068#M807046</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-25T16:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: If greater than and less than expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434069#M807047</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;instead of the queer excel syntax&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;If(And(ELD-ESD&amp;gt;0,ELD-ESD&amp;lt;3),"0-3",If(And(ELD-ESD&amp;gt;3,ELD-ESD&amp;lt;6),"3-6",.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you would use something like this in QlikView:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(ELD-ESD&amp;gt;0 and ELD-ESD&amp;lt;3,'0-3',If(ELD-ESD&amp;gt;3 and ELD-ESD&amp;lt;6,'3-6',.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or shorter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(ELD-ESD&amp;gt;0, If(ELD-ESD&amp;lt;3,'0-3',If(ELD-ESD&amp;lt;6,'3-6',.............. and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 20:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-greater-than-and-less-than-expression/m-p/1434069#M807047</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-10-25T20:33:50Z</dc:date>
    </item>
  </channel>
</rss>

