<?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 qliksense table not filter the set expression condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518220#M106071</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am migrating qlikview to qliksense&lt;/P&gt;
&lt;P&gt;this is qlikview expression&lt;/P&gt;
&lt;DIV&gt;If(Currency='USD',&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; SUM({$&amp;lt;[AA.PostingDate] ={"&amp;lt;=$(=[Ageing Filter])"}&amp;gt;}&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if([Ageing Filter] - [AA.DueDate]&amp;lt;1 AND [Ageing Filter] - [AA.DueDate]&amp;lt;-30,AA.AmountUSD)),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;(SUM({$&amp;lt;[AA.PostingDate] ={"&amp;lt;=$(=[Ageing Filter])"}&amp;gt;}&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if([Ageing Filter] - [AA.DueDate]&amp;lt;1 AND [Ageing Filter] - [AA.DueDate]&amp;lt;-30,AA.AmountLCY))/MAX({&amp;lt;DateNum={$(EndDate)}&amp;gt;} FX1.USDRate))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;in qlikview is working properly&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i rewrite the code as below&lt;/P&gt;
&lt;DIV&gt;If(Currency='USD',&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; SUM({$&amp;lt;[PostingDate] ={"&amp;lt;=$(sfilter)"}&amp;gt;},&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if($(sfilter) - [AA.DueDate] &amp;lt;1 AND $(sfilter) - [AA.DueDate]&amp;lt;-30, AA.AmountUSD))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;SUM({$&amp;lt;PostingDate] ={"&amp;lt;=$(sfilter)"}&amp;gt;}&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;if($(sfilter) - [AA.DueDate] &amp;lt;1 AND $(sfilter)- [AA.DueDate] &amp;lt;-30,AA.AmountLCY))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /MAX({$&amp;lt;DateNum={"$(sfilter)"}&amp;gt;} FX1.USDRate)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;)&lt;/DIV&gt;
&lt;P&gt;above sfilter is the variable of user selected date in&amp;nbsp; num format but it not filtering the condition (&amp;lt;=$(sfilter)) starting date to posting date instead it return all the row (postingdate) in the table . it is not applying the filter completely.&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 14:38:40 GMT</pubDate>
    <dc:creator>ramakrishna124</dc:creator>
    <dc:date>2025-05-19T14:38:40Z</dc:date>
    <item>
      <title>qliksense table not filter the set expression condition</title>
      <link>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518220#M106071</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am migrating qlikview to qliksense&lt;/P&gt;
&lt;P&gt;this is qlikview expression&lt;/P&gt;
&lt;DIV&gt;If(Currency='USD',&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; SUM({$&amp;lt;[AA.PostingDate] ={"&amp;lt;=$(=[Ageing Filter])"}&amp;gt;}&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if([Ageing Filter] - [AA.DueDate]&amp;lt;1 AND [Ageing Filter] - [AA.DueDate]&amp;lt;-30,AA.AmountUSD)),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;(SUM({$&amp;lt;[AA.PostingDate] ={"&amp;lt;=$(=[Ageing Filter])"}&amp;gt;}&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if([Ageing Filter] - [AA.DueDate]&amp;lt;1 AND [Ageing Filter] - [AA.DueDate]&amp;lt;-30,AA.AmountLCY))/MAX({&amp;lt;DateNum={$(EndDate)}&amp;gt;} FX1.USDRate))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;in qlikview is working properly&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i rewrite the code as below&lt;/P&gt;
&lt;DIV&gt;If(Currency='USD',&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; SUM({$&amp;lt;[PostingDate] ={"&amp;lt;=$(sfilter)"}&amp;gt;},&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; if($(sfilter) - [AA.DueDate] &amp;lt;1 AND $(sfilter) - [AA.DueDate]&amp;lt;-30, AA.AmountUSD))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;SUM({$&amp;lt;PostingDate] ={"&amp;lt;=$(sfilter)"}&amp;gt;}&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;if($(sfilter) - [AA.DueDate] &amp;lt;1 AND $(sfilter)- [AA.DueDate] &amp;lt;-30,AA.AmountLCY))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; /MAX({$&amp;lt;DateNum={"$(sfilter)"}&amp;gt;} FX1.USDRate)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;)&lt;/DIV&gt;
&lt;P&gt;above sfilter is the variable of user selected date in&amp;nbsp; num format but it not filtering the condition (&amp;lt;=$(sfilter)) starting date to posting date instead it return all the row (postingdate) in the table . it is not applying the filter completely.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 14:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518220#M106071</guid>
      <dc:creator>ramakrishna124</dc:creator>
      <dc:date>2025-05-19T14:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: qliksense table not filter the set expression condition</title>
      <link>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518245#M106077</link>
      <description>&lt;P&gt;When writing a expression in QS you often see a kind of preview of the measure in the bortom of that expression input box. Does that preview look as you would expect? If not then adress those issues.&lt;/P&gt;&lt;P&gt;It is har do be specific not seeing your variable definition. Is it a static value or a field name or an expression?&lt;/P&gt;&lt;P&gt;If it is a field name, does the field name have spaces in it? If so then try to add square brackets around the dollar expansion, like this: [&lt;SPAN&gt;$(sfilter)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 03:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518245#M106077</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-05-20T03:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: qliksense table not filter the set expression condition</title>
      <link>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518250#M106078</link>
      <description>&lt;P&gt;G'day,&lt;/P&gt;&lt;P&gt;I'm reviewing ChatGPT 4.1 at present so thought your question would be a candidate for testing it's code capabilities. Below is a response from the model... Let me know if it fits/works for you...&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;Summary of Issues Migrating from QlikView to Qlik Sense&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Set Analysis Syntax:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;In your expression, the set analysis brackets were sometimes missing or misplaced ([PostingDate] instead of &amp;lt;[PostingDate]&amp;gt;).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Variable Expansion:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;In Qlik Sense, variables in set analysis need $(=sfilter) for numeric/date variables, not $(sfilter) (which just expands as a string).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Conditional Logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The original logic was impossible:&lt;BR /&gt;if(X &amp;lt; 1 AND X &amp;lt; -30, ...)&lt;BR /&gt;A value can’t be less than both 1 &lt;STRONG&gt;and&lt;/STRONG&gt; -30 at the same time. Most likely you meant “between -30 and 1”:&lt;BR /&gt;if(X &amp;lt; 1 AND X &amp;gt; -30, ...)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;Set Analysis Only Pre-filters:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Remember: set analysis selects records &lt;STRONG&gt;before&lt;/STRONG&gt; calculation.&lt;BR /&gt;Your if() conditions further filter which records are summed but only within the set.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;Corrected Qlik Sense Expression&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;See attached formatted text&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 04:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/qliksense-table-not-filter-the-set-expression-condition/m-p/2518250#M106078</guid>
      <dc:creator>Scotchy</dc:creator>
      <dc:date>2025-05-20T04:47:26Z</dc:date>
    </item>
  </channel>
</rss>

