<?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: Set Analysis overriting filter criteria in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108343#M90512</link>
    <description>&lt;P&gt;There is no date comparison... your set isn't checking a range, it's comparing the two dates?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 10:00:29 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2023-08-22T10:00:29Z</dc:date>
    <item>
      <title>Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108329#M90505</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;once again (and hopefully the last time for now) a question regarding set analysis.&lt;/P&gt;
&lt;P&gt;I have a really simple set expression, where I only want to include records with two matching dates (which are in seperate tables, but associated by the key field):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Leistungskatalog = {"*"}, FallBewegungKey = {"=Leistungsdatum = BewegungDatum"}&amp;gt;} AnzahlLeistung)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The values which are generated by this expressions are correct, however if I select a value for the Leistungskatalog field, it still uses the filter, although I explicitly set it to &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;{"*"}&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If I delete the second condition, it's working fine and the selection in this field is ignored:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Leistungskatalog = {"*"}&amp;gt;} AnzahlLeistung)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Any ideas how to get this working?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108329#M90505</guid>
      <dc:creator>alliedarmour</dc:creator>
      <dc:date>2023-08-22T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108331#M90506</link>
      <description>&lt;P&gt;This is how it's supposed to work - a defined value is meant to override any selections. You can use *= to get the intersection of the full set ("*") with the selection, if that's what you're after here?&lt;/P&gt;
&lt;P&gt;The second part with the dates doesn't maje much sense to me. I think it would evaluate to either true of false since you're checking of two dates are identical. Is &lt;STRONG&gt;FallBewegungKey &lt;/STRONG&gt;a true/false field?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108331#M90506</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-08-22T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108335#M90508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237020"&gt;@alliedarmour&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think you should ignore the &lt;SPAN&gt;Leistungskatalog&amp;nbsp;&lt;/SPAN&gt;field selections as below:&lt;/P&gt;
&lt;P&gt;Sum({$&amp;lt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Leistungskatalog,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;Leistungskatalog = {"*"}, FallBewegungKey = {"=Leistungsdatum = BewegungDatum"}&amp;gt;} AnzahlLeistung)&lt;/P&gt;
&lt;P&gt;I hope it can helps.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108335#M90508</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2023-08-22T09:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108336#M90509</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1. Yeah. but it doesn't override the current selection if I add the date comparison. In other words If I use the first Set expression and then select a value for Leistungskatalog, it applies this filter and "overrides" the * selection with the selected value.&lt;/P&gt;
&lt;P&gt;2. No, it's not a true/false field - I want to include all records (it's like an ID field) which have matching dates in those two date fields.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108336#M90509</guid>
      <dc:creator>alliedarmour</dc:creator>
      <dc:date>2023-08-22T09:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108340#M90510</link>
      <description>&lt;P&gt;Thanks for your reply, but still not working - seems to be the date comparison somehow breaks it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108340#M90510</guid>
      <dc:creator>alliedarmour</dc:creator>
      <dc:date>2023-08-22T09:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108343#M90512</link>
      <description>&lt;P&gt;There is no date comparison... your set isn't checking a range, it's comparing the two dates?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108343#M90512</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-08-22T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108345#M90513</link>
      <description>&lt;P&gt;I'm relatviely new to Qlik - so I want to get those keys / records which have matching date values in the two fields, If those match, add the record to the set - is this the wrong way?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108345#M90513</guid>
      <dc:creator>alliedarmour</dc:creator>
      <dc:date>2023-08-22T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis overriting filter criteria</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108366#M90515</link>
      <description>&lt;P&gt;What you are trying to do with:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Leistungsdatum = BewegungDatum&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;isn't a set analysis else a (separate) if-loop which of course will consider the set selections.&lt;/P&gt;
&lt;P&gt;I suggest to re-think the used data-model if it's really suitable for your view-requirements. Officially recommended is to apply a star-scheme with a single-fact table and n dimension-tables.&lt;/P&gt;
&lt;P&gt;By having multiple date-fields you may also need multiple calendars and/or also a canonical calendar and/or as-of-tables and/or including various (pre-) calculation within the facts or the dimensions, for example subtracting the date-values against each other to create their differences as offset-values and the above expression may look like:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Leistungskatalog = {"*"}, DateOffset = {0}&amp;gt;} AnzahlLeistung)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-overriting-filter-criteria/m-p/2108366#M90515</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-22T10:35:11Z</dc:date>
    </item>
  </channel>
</rss>

