<?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: Filter for Previous Day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679441#M449956</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will suggest to Flag all prev day in script and simplify your expression in UI.&lt;/P&gt;&lt;P&gt;And depending on&amp;nbsp;&lt;SPAN&gt;SCHEDULED_DT_TM&amp;nbsp;date format, you might have to format the date using DATE# and Date. I have used FLOOR() function to stripe out timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;tmp1:&lt;BR /&gt;LOAD *&lt;BR /&gt;, IF(FLOOR(&lt;SPAN&gt;SCHEDULED_DT_TM&amp;nbsp;&lt;/SPAN&gt;)=DATE(TODAY()-1,'DD/MM/YYYY'),1,0) AS [%Prev Day]&lt;BR /&gt;RESIDENT tmp;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you expression can be&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim: Dim1&lt;/P&gt;&lt;P&gt;Exp: SUM({&amp;lt;[%Prev Day] ={1}&amp;gt;} Sales)// this is an example, you can expand you SA as you wish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 12:45:18 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2020-02-26T12:45:18Z</dc:date>
    <item>
      <title>Filter for Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679433#M449954</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a straight table chart that needs to show only records for the previous day (yesterday). This table has 8 dimensions and no expressions, as no calculations are needed. The dimension I am trying to filter on is a date/time field (scheduled_dt_tm), and everything I have tried has not worked.&lt;/P&gt;&lt;P&gt;Is a calculated dimension the route I should take? Here is what I have tried to no avail:&lt;/P&gt;&lt;P&gt;=if(SCHEDULED_DT_TM = (today()-1), SCHEDULED_DT_TM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I on the right track? Any help would be greatly appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679433#M449954</guid>
      <dc:creator>elduderino</dc:creator>
      <dc:date>2020-02-26T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679438#M449955</link>
      <description>&lt;P&gt;If your timestamp has time fraction as well, you should try comparing integers instead, like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( &lt;STRONG&gt;Floor&lt;/STRONG&gt;(SCHEDULED_DT_TM)= (today()-1), SCHEDULED_DT_TM)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679438#M449955</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-02-26T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for Previous Day</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679441#M449956</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will suggest to Flag all prev day in script and simplify your expression in UI.&lt;/P&gt;&lt;P&gt;And depending on&amp;nbsp;&lt;SPAN&gt;SCHEDULED_DT_TM&amp;nbsp;date format, you might have to format the date using DATE# and Date. I have used FLOOR() function to stripe out timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;tmp1:&lt;BR /&gt;LOAD *&lt;BR /&gt;, IF(FLOOR(&lt;SPAN&gt;SCHEDULED_DT_TM&amp;nbsp;&lt;/SPAN&gt;)=DATE(TODAY()-1,'DD/MM/YYYY'),1,0) AS [%Prev Day]&lt;BR /&gt;RESIDENT tmp;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you expression can be&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim: Dim1&lt;/P&gt;&lt;P&gt;Exp: SUM({&amp;lt;[%Prev Day] ={1}&amp;gt;} Sales)// this is an example, you can expand you SA as you wish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-for-Previous-Day/m-p/1679441#M449956</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2020-02-26T12:45:18Z</dc:date>
    </item>
  </channel>
</rss>

