<?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: Making an expression bypass filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1651930#M731098</link>
    <description>If that expression works and returns what you want but is affected by any filter (which is expected behavior in QlikView) try by adding&lt;BR /&gt;&lt;BR /&gt;FirstSortedValue({1} DISTINCT StartDate, PersonID)&lt;BR /&gt;&lt;BR /&gt;Note the {1} in there, which could stand for "for this expression, use the full set of rows, regardless any selections".</description>
    <pubDate>Wed, 27 Nov 2019 14:34:23 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2019-11-27T14:34:23Z</dc:date>
    <item>
      <title>Making an expression bypass filters</title>
      <link>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1651467#M731097</link>
      <description>&lt;P&gt;Hi there, I'm quite new to QV but try to get my head around it.&lt;/P&gt;&lt;P&gt;I've got a database where I register people attending various events. Each event has a different date, and some people attend several events. When I wish to export my list of people attending these events, I only wish to show the date of the first event they attended.&lt;/P&gt;&lt;P&gt;So I wrote this line in an expression:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;FirstSortedValue(Distinct StartDate,PersonID)&lt;/STRONG&gt;&lt;BR /&gt;This line allows me to view the date only of the first event they attended.&lt;/P&gt;&lt;P&gt;However, my problem is that once I start using filters like "Month" or "Year", my diagram only shows the people that attended events during that month.&lt;BR /&gt;&lt;BR /&gt;For example, lets say I have 6 people. 3 of them attended an event in June, but all 6 attended an event in July. That'd make my list show:&lt;/P&gt;&lt;P&gt;without filter:&lt;BR /&gt;3 users with 2019-06-01 and 3 users with 2019-07-01.&lt;BR /&gt;&lt;BR /&gt;with filter (lets say for July)&lt;BR /&gt;3 users with 2019-07-01.&lt;BR /&gt;&lt;BR /&gt;However, when showing people for July I still want the 3 persons showing from June, as they too attended the event in July. But when I use filter for July, those 3 people are not showing as their start date was not in July, it was in June. But I want all 6 people showing with the correct start date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I messed around with some stuff I found on the forums. Mainly using stuff like&lt;BR /&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;&lt;SPAN&gt;$StartDate={'Year','Month'}&lt;/SPAN&gt;&amp;gt;}Distinct StartDate,PersonID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I realize I have no idea of what I'm doing.&lt;/P&gt;&lt;P&gt;The diagram I'm using has 1 dimension and several expressions, but I only want THIS expression to bypass the selected filters (atleast month and year), and instead show the date of which a person attended his/her first event.&lt;/P&gt;&lt;P&gt;I realize all this probably makes NO SENSE what so ever... but I hope anyone can help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1651467#M731097</guid>
      <dc:creator>Hypersnooze</dc:creator>
      <dc:date>2024-11-16T01:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Making an expression bypass filters</title>
      <link>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1651930#M731098</link>
      <description>If that expression works and returns what you want but is affected by any filter (which is expected behavior in QlikView) try by adding&lt;BR /&gt;&lt;BR /&gt;FirstSortedValue({1} DISTINCT StartDate, PersonID)&lt;BR /&gt;&lt;BR /&gt;Note the {1} in there, which could stand for "for this expression, use the full set of rows, regardless any selections".</description>
      <pubDate>Wed, 27 Nov 2019 14:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1651930#M731098</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-11-27T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Making an expression bypass filters</title>
      <link>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1655688#M731099</link>
      <description>&lt;P&gt;Did Miguel's post get you what you needed?&amp;nbsp; If so, be sure to return to the thread and use the Accept as Solution button on his post to give him credit for the assistance and let other Community Members know this worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I have in addition to what he provided is a Design Blog link that will give you some further details on Set Analysis:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the base URL for the Design Blog area too in case you want to do some other searches, this is a good area to search for how-to related items:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 22:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-an-expression-bypass-filters/m-p/1655688#M731099</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-09T22:20:00Z</dc:date>
    </item>
  </channel>
</rss>

