<?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 with conditional statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-with-conditional-statement/m-p/1697563#M727035</link>
    <description>&lt;P&gt;I guess in your table you have a date variable, lets assume is "year_total_sales"&lt;/P&gt;&lt;P&gt;You have to upload an auxiliary date table. If you are working just with year, you can upload it from Excel or inline&lt;/P&gt;&lt;P&gt;Do it like this&lt;/P&gt;&lt;P&gt;Aux_date:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;year as [Aux year]&lt;/P&gt;&lt;P&gt;from "Excel"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your expression, you must put this&lt;/P&gt;&lt;P&gt;sum(if(year_total_sales&amp;lt;[aux year] or InativeAt='',0,TotalSales))&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the filter, put the variable [Aux year] instead year_total_sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 05:35:06 GMT</pubDate>
    <dc:creator>ignacioroman</dc:creator>
    <dc:date>2020-04-29T05:35:06Z</dc:date>
    <item>
      <title>Filter with conditional statement</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-with-conditional-statement/m-p/1692889#M727034</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I am trying to create a filter with a condition.&lt;/P&gt;&lt;P&gt;I have a table like below:&lt;/P&gt;&lt;P&gt;Columns: I&lt;STRONG&gt;D, Store, InativeAt, TotalSales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and I have a list where I can choose the years. So I'm trying to apply the following filter:&lt;BR /&gt;If InativeAt IS NOT NULL AND YEAR of InativeAt&amp;nbsp; is lesser than SELECTED YEAR Set TotalSales as 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;This must not show the real value of TotalSales when the year selected is greater than the year of inativation of the store.&lt;BR /&gt;&lt;BR /&gt;I try to apply the statement on property of the table later column but I haven't sucessfully result, someone could help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-with-conditional-statement/m-p/1692889#M727034</guid>
      <dc:creator>Robertinho2077</dc:creator>
      <dc:date>2024-11-16T00:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter with conditional statement</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-with-conditional-statement/m-p/1697563#M727035</link>
      <description>&lt;P&gt;I guess in your table you have a date variable, lets assume is "year_total_sales"&lt;/P&gt;&lt;P&gt;You have to upload an auxiliary date table. If you are working just with year, you can upload it from Excel or inline&lt;/P&gt;&lt;P&gt;Do it like this&lt;/P&gt;&lt;P&gt;Aux_date:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;year as [Aux year]&lt;/P&gt;&lt;P&gt;from "Excel"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your expression, you must put this&lt;/P&gt;&lt;P&gt;sum(if(year_total_sales&amp;lt;[aux year] or InativeAt='',0,TotalSales))&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the filter, put the variable [Aux year] instead year_total_sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-with-conditional-statement/m-p/1697563#M727035</guid>
      <dc:creator>ignacioroman</dc:creator>
      <dc:date>2020-04-29T05:35:06Z</dc:date>
    </item>
  </channel>
</rss>

