<?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: Where function is not working as expected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2003335#M83075</link>
    <description>&lt;P&gt;&lt;U&gt;The WHERE clause doesn't set any values it is only for filtering the data,&amp;nbsp;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Check your data at source it would actually be 0 for the given conditions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 04:36:05 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-11-11T04:36:05Z</dc:date>
    <item>
      <title>Where function is not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2002924#M83054</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´ve go following table:&lt;/P&gt;
&lt;P&gt;F_ALL:&lt;BR /&gt;LOAD&lt;BR /&gt;PRCTR as ProfitCenter_WB,&lt;BR /&gt;CustomerName as CustomerName_WB,&lt;BR /&gt;KUNNR as CustomerNumber_WB,&lt;BR /&gt;OverdueDays as OverdueDays_WB,&lt;BR /&gt;SnapshotDate as SnapshotDate_WB,&lt;BR /&gt;BETRAG_EUR as BETRAG_EUR_WB,&lt;BR /&gt;DUE_0+DUE_30+DUE_60+DUE_90 as Overdue_WB,&lt;BR /&gt;DUE_90 as DUE_90_WB,&lt;BR /&gt;DUE_60 as DUE_60_WB,&lt;BR /&gt;DUE_30 as DUE_30_WB,&lt;BR /&gt;DUE_0 as DUE_0_WB,&lt;BR /&gt;ApplyMap('Map_DS',%KeyDS) as Segment_WB,&lt;BR /&gt;ApplyMap('Map_Country',%KeyARE) as Country_WB,&lt;BR /&gt;ApplyMap('Map_Region',%KeyARE) as Region_WB,&lt;BR /&gt;ApplyMap('Map_ARE',%KeyARE) as ARE_WB&lt;BR /&gt;FROM [$(vFolderFact)F_AM_DASH_COMPLETE_2022_SMO050.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;Where DUE_90&amp;gt;=200000 or DUE_60&amp;gt;=500000 and SnapshotDate=date(date#(monthend(now(),-1),'YYYY-MM-DD'),'YYYY-MM-DD');&lt;/P&gt;
&lt;P&gt;My problem now is, I want to select only the SnapshotDate which is the last day of last month and additionally where DUE_90 is bigger then 200.000 or DUE_60 is bigger then 500.00.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I only use Where&amp;nbsp;SnapshotDate=date(date#(monthend(now(),-1),'YYYY-MM-DD'),'YYYY-MM-DD'); it selects 31.10.2022, but as soon as I add the formulas with the DUE´s it doesnt select the correct SnapshotDate anymore. It also set´s all values in other measures like DUE_30 and DUE_0 to 0.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you advise how to solve this issue?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2002924#M83054</guid>
      <dc:creator>JohannesBoehmer</dc:creator>
      <dc:date>2022-11-10T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where function is not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2002933#M83055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try with&amp;nbsp;parenthesis&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Where &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;DUE_90&amp;gt;=200000 or DUE_60&amp;gt;=500000&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt; and SnapshotDate=date(date#(monthend(now(),-1),'YYYY-MM-DD'),'YYYY-MM-DD');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 10:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2002933#M83055</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2022-11-10T10:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where function is not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2003075#M83059</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first problem solved thanks but it´s still setting all value in DUE_30 and DUE_0 to zero. This is because my data have rows with same dimension information but different values. When I try to add sum(DUE_90) it shows invalid expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 13:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2003075#M83059</guid>
      <dc:creator>JohannesBoehmer</dc:creator>
      <dc:date>2022-11-10T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where function is not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2003335#M83075</link>
      <description>&lt;P&gt;&lt;U&gt;The WHERE clause doesn't set any values it is only for filtering the data,&amp;nbsp;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Check your data at source it would actually be 0 for the given conditions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 04:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-function-is-not-working-as-expected/m-p/2003335#M83075</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-11-11T04:36:05Z</dc:date>
    </item>
  </channel>
</rss>

