<?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 Filter on an IF-Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-on-an-IF-Statement/m-p/108890#M510485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table whit the lost, new and enduring customers. &lt;SPAN lang="en"&gt;This table shows the name of the customer and whether this is a new customer (new) is an existing customer (=) or that we have lost this customer (lost). &lt;SPAN lang="en"&gt;If there is a record for the current year in the database it means that turnover has been booked and that the customer is active this year. The same applies for last year. Based on this information, we know what the status of the customer is and I have processed this in the following (simple) function:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(&lt;/P&gt;&lt;P&gt;MIN(PeriodeJaar)= vCurrentYear,'New',&lt;/P&gt;&lt;P&gt;(IF(&lt;/P&gt;&lt;P&gt;MAX(PeriodeJaar)=((vCurrentYear)-1),'Lost',&lt;/P&gt;&lt;P&gt;'=')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO, now I know of the customer is a new, lost or enduring customer. I would only like to be able to filter the status, for example: I only want to see the lost customers. Then I choose 'Lost' in a filter. This sounds simple, but i don't know how. Maybe because this is an calculating value that makes it difficult?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the picture below: If i select 'lost' in the filter than the data in the chart will be filtered and show only the lost customers. Is that possible?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_Question.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209955_QV_Question.PNG" style="height: 251px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 14:13:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-06T14:13:05Z</dc:date>
    <item>
      <title>Filter on an IF-Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-on-an-IF-Statement/m-p/108890#M510485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table whit the lost, new and enduring customers. &lt;SPAN lang="en"&gt;This table shows the name of the customer and whether this is a new customer (new) is an existing customer (=) or that we have lost this customer (lost). &lt;SPAN lang="en"&gt;If there is a record for the current year in the database it means that turnover has been booked and that the customer is active this year. The same applies for last year. Based on this information, we know what the status of the customer is and I have processed this in the following (simple) function:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(&lt;/P&gt;&lt;P&gt;MIN(PeriodeJaar)= vCurrentYear,'New',&lt;/P&gt;&lt;P&gt;(IF(&lt;/P&gt;&lt;P&gt;MAX(PeriodeJaar)=((vCurrentYear)-1),'Lost',&lt;/P&gt;&lt;P&gt;'=')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO, now I know of the customer is a new, lost or enduring customer. I would only like to be able to filter the status, for example: I only want to see the lost customers. Then I choose 'Lost' in a filter. This sounds simple, but i don't know how. Maybe because this is an calculating value that makes it difficult?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the picture below: If i select 'lost' in the filter than the data in the chart will be filtered and show only the lost customers. Is that possible?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV_Question.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209955_QV_Question.PNG" style="height: 251px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 14:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-on-an-IF-Statement/m-p/108890#M510485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-06T14:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on an IF-Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-on-an-IF-Statement/m-p/108891#M510486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a dimension to be able to filter their results - maybe with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;MIN(PeriodeJaar)= vCurrentYear,'New',&lt;/P&gt;&lt;P&gt;(IF(&lt;/P&gt;&lt;P&gt;MAX(PeriodeJaar)=((vCurrentYear)-1),'Lost',&lt;/P&gt;&lt;P&gt;'=')))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, OrganisatieNm)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More to the logic could you find here: &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-on-an-IF-Statement/m-p/108891#M510486</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-07T10:29:33Z</dc:date>
    </item>
  </channel>
</rss>

