<?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 Error when comparing a field with two other field values. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15671#M776666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, i am missing something, if any one can point out the error i am doing, it will be great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a calculation like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=0"}, ID_PERIOD = {"&amp;lt;=2078052"}&amp;gt;}QTE_VENDU)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare the ID_PERIOD falls between VALUE1 and VALUE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i enter the values directly it works.&amp;nbsp; but they are fields in table so i did these two things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff0000;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=P(SAIS_SEM_DEB)"}, ID_PERIOD = {"&amp;lt;=P(SAIS_SEM_FIN)"}&amp;gt;}QTE_VENDU)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;sum({&amp;lt;ANNEE_SEMAINE=, ID_PERIOD={"'&amp;gt;='&amp;amp;P(SAIS_SEM_DEB)&amp;amp;'&amp;lt;='&amp;amp;P(SAIS_SEM_FIN))"}&amp;gt;} QTE_VENDU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both brings 0 Sum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jegadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Error when comparing a field with two other field values.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15671#M776666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, i am missing something, if any one can point out the error i am doing, it will be great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a calculation like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=0"}, ID_PERIOD = {"&amp;lt;=2078052"}&amp;gt;}QTE_VENDU)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare the ID_PERIOD falls between VALUE1 and VALUE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i enter the values directly it works.&amp;nbsp; but they are fields in table so i did these two things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff0000;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=P(SAIS_SEM_DEB)"}, ID_PERIOD = {"&amp;lt;=P(SAIS_SEM_FIN)"}&amp;gt;}QTE_VENDU)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;sum({&amp;lt;ANNEE_SEMAINE=, ID_PERIOD={"'&amp;gt;='&amp;amp;P(SAIS_SEM_DEB)&amp;amp;'&amp;lt;='&amp;amp;P(SAIS_SEM_FIN))"}&amp;gt;} QTE_VENDU)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both brings 0 Sum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jegadish&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/Error-when-comparing-a-field-with-two-other-field-values/m-p/15671#M776666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when comparing a field with two other field values.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15672#M776667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;it could mean that your 2 fields do not contain the values you think&lt;/P&gt;&lt;P&gt;try to display them in text boxes , select the period you want and look at the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15672#M776667</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-04-25T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when comparing a field with two other field values.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15673#M776668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Expressions seems to be correct, can you post some sample data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 10:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15673#M776668</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2018-04-25T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when comparing a field with two other field values.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15674#M776669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200819_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;i want to calculate the quantity (QTE_VENDU) when the ID_PERIOD falls between SAIS_SEM_DEBUT and SAIS_SEM_FIN irrespective of my period selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used this expression&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff0000;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=P(SAIS_SEM_DEB)"}, ID_PERIOD = {"&amp;lt;=P(SAIS_SEM_FIN)"}&amp;gt;}QTE_VENDU)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;= 0&lt;/P&gt;&lt;P&gt;when i use a hard value &lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;sum({&amp;lt;ID_PERIOD = {"&amp;gt;=0"}, ID_PERIOD = {"&amp;lt;=2078052"}&amp;gt;}QTE_VENDU) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It works correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not able to find the error, help appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 21:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15674#M776669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when comparing a field with two other field values.</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15675#M776670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After going through the community discussion. &lt;/P&gt;&lt;P&gt;I created a field with Recno() named as rec_num and then used the set analysis tool generator to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;ANNEE_SEMAINE=,REC_NUM=P({1&amp;lt;ID_PERIOD={"&amp;gt;=$(=P(SAIS_SEM_DEBUT_))"}&amp;gt;}REC_NUM), REC_NUM=P({1&amp;lt;ID_PERIOD={"&amp;lt;=$(=P(SAIS_SEM_FIN_))"}&amp;gt;}REC_NUM)&amp;gt;}QTE_VENDU)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 07:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-comparing-a-field-with-two-other-field-values/m-p/15675#M776670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T07:51:58Z</dc:date>
    </item>
  </channel>
</rss>

