<?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: what is wrong with the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865364#M302721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would first check that the condition without the last part (date comparison) is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check that the sum of the variables return a value (please note that every summand needs to evaluate to a number, if any summand evaluates to NULL, the sum will be NULL. A safer way to add these summands would be rangesum() function). Latter is also valid for the addition of the two date fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your date fields must have a numeric representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All in all, if you're issue is still present after re-checking, I agree with Clever Anjos that it would make things much easier if you upload a small sample that demonstrates your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 22:28:32 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-05-14T22:28:32Z</dc:date>
    <item>
      <title>what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865359#M302716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to get the below expression working.&lt;/P&gt;&lt;P&gt;Whats wrong with the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logic is If stage = wafer and Type = '%sdo%' and due dt + LT + bunch of variables match the DI DAy date then I need to do sum(qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF((Upper(STAGE)='WAFER' AND TYPE like '*SDO*' AND (DUE_DT + LEADTIME&amp;nbsp; + ($(x)+$(y)+$(z)+$(a)+$(b)+$(c)+$(d)) = DI_DAY_DATE)),QTY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 19:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865359#M302716</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-05-14T19:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865360#M302717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don´t need to $() your variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are your receiving an error or you see no results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 19:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865360#M302717</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-14T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865361#M302718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is all showing me 0, while it shouldnt show 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah.I tried removing $() too. But same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 19:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865361#M302718</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-05-14T19:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865362#M302719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind sharing a sample of your app?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 19:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865362#M302719</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-14T19:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865363#M302720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you confirm if all the components here&lt;/P&gt;&lt;P&gt;(DUE_DT + LEADTIME&amp;nbsp; + ($(x)+$(y)+$(z)+$(a)+$(b)+$(c)+$(d))&lt;/P&gt;&lt;P&gt;are whole dates, not a single timestamp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And can you replace&lt;/P&gt;&lt;P&gt;TYPE like '*SDO*'&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;wildmatch(TYPE, '*SDO*')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 19:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865363#M302720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-14T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865364#M302721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would first check that the condition without the last part (date comparison) is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check that the sum of the variables return a value (please note that every summand needs to evaluate to a number, if any summand evaluates to NULL, the sum will be NULL. A safer way to add these summands would be rangesum() function). Latter is also valid for the addition of the two date fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your date fields must have a numeric representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All in all, if you're issue is still present after re-checking, I agree with Clever Anjos that it would make things much easier if you upload a small sample that demonstrates your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 22:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865364#M302721</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-14T22:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865365#M302722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you have your else part missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I break your expression down:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;STAGE='WAFER' AND&lt;/P&gt;&lt;P&gt;TYPE="*SODO*" (Use double quotes to use search expressions) AND&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(DUE_DT + LEADTIME&amp;nbsp; + ($(x)+$(y)+$(z)+$(a)+$(b)+$(c)+$(d))) = DI_DAY_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;THEN SUM(QTY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ELSE ??? SO your else is missing. Please replace the else part(in &lt;STRONG&gt;BOLD&lt;/STRONG&gt;) with the proper value or field. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(Upper(STAGE)='WAFER' AND TYPE= "*SDO*" AND (DUE_DT + LEADTIME&amp;nbsp; + ($(x)+$(y)+$(z)+$(a)+$(b)+$(c)+$(d))) = DI_DAY_DATE,QTY,&lt;STRONG&gt;ELSE PART HERE&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 01:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865365#M302722</guid>
      <dc:creator />
      <dc:date>2015-05-15T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong with the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865366#M302723</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;Can you attach some sample data, so that it would be easier to find the issue.&amp;nbsp; Is x, y, z, a , b, c d are dimensions or variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&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;SUM(IF(Upper(STAGE)='WAFER' AND TYPE like '*SDO*' AND TimeStamp(Rangesum(DUE_DT, LEADTIME, x, y,z, a, b, c, d)) = TimeStamp(DI_DAY_DATE,QTY))&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;Hope this helps 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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 02:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-with-the-expression/m-p/865366#M302723</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-05-15T02:27:41Z</dc:date>
    </item>
  </channel>
</rss>

