<?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: Unintended filtering in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671490#M50786</link>
    <description>&lt;P&gt;By the way, if you are happy with the solution, mark the topic as solved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 23:20:34 GMT</pubDate>
    <dc:creator>jberna26</dc:creator>
    <dc:date>2020-01-31T23:20:34Z</dc:date>
    <item>
      <title>Unintended filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671005#M50729</link>
      <description>&lt;P&gt;Hi, hoping you can help with this one!&amp;nbsp; The data model has two tables, &lt;STRONG&gt;Projects&lt;/STRONG&gt; (master, unique Number) and &lt;STRONG&gt;Metrics&lt;/STRONG&gt; (which are point-in-time records with a 0:n association to the Projects table (there may be no records, there may be several). A single project instance of Metrics looks like this…&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="P2.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27731i7E6F7F0735289633/image-size/medium?v=v2&amp;amp;px=400" role="button" title="P2.png" alt="P2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My desired output is a table list of &lt;STRONG&gt;all &lt;/STRONG&gt;projects (filterable) with a column of the latest MetricCondition (MetricCurrent=’True’, of a specific MetricName (StatusMessageAge in this example) when it exists, &lt;STRONG&gt;‘NA’ when it does not&lt;/STRONG&gt;. I am not sure if this is the best way, but I can achieve the display with this column expression:&lt;/P&gt;&lt;P&gt;Only({$&amp;lt;MetricName={'StatusMessageAge'},MetricCurrent={'True'}&amp;gt;}MetricCondition)&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;problem is that the table only displays records when the association exists&lt;/STRONG&gt; (when there is a qualified Metrics record). I need to display &lt;STRONG&gt;all&lt;/STRONG&gt; the Projects. I have tried a few things (if(….), alt(….), MxString instead of Only,...) but cannot get any to work (I may not be structuring the statements correctly).&lt;/P&gt;&lt;P&gt;Open to any ideas. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671005#M50729</guid>
      <dc:creator>sskinner</dc:creator>
      <dc:date>2020-01-30T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671078#M50739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46627"&gt;@sskinner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not completely sure I understood.&lt;/P&gt;&lt;P&gt;So you are applying that measure, with the dimension Project in a table?&lt;/P&gt;&lt;P&gt;But since you are applying filters (and "measuring") the MetricCondition, if it doesn't exist for one project, that project will not show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try and go to add-ons of the table and show the zero values, but since you want to show 'NA', it will not solve your problems.&lt;/P&gt;&lt;P&gt;You said you tried an if statement, can you give an example?&lt;/P&gt;&lt;P&gt;I would try something like:&lt;/P&gt;&lt;P&gt;If(Count(MetricCondition)=0, 'NA',&lt;SPAN&gt;Only({$&amp;lt;MetricName={'StatusMessageAge'},MetricCurrent={'True'}&amp;gt;}MetricCondition))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671078#M50739</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-30T21:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671322#M50766</link>
      <description>&lt;P&gt;Hi, yes - your understanding is correct.&amp;nbsp; Here is the kinds of thing I was trying (to evaluate the return of the set-analysis);&lt;BR /&gt;if(Only({$&amp;lt;MetricName={'StatusMessageAge'},MetricCurrent={'True'}&amp;gt;}MetricCondition)&amp;lt;&amp;gt;Null(),MetricCondition,'NA')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Your statement, however, seems to work!&lt;/STRONG&gt; (I will do some more testing). Can you explain the logic for me though?&amp;nbsp; When count(MetricCondition) is evaluated, is that applied to the data after it has gone through the set analysis part of the statement?&amp;nbsp; For example, will it still work if there are "Metric" records with that project number but none that meet the conditions of MetricName={'StatusMessageAge'},MetricCurrent={'True'}? (I will try that)&lt;/P&gt;&lt;P&gt;Thank-you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 13:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671322#M50766</guid>
      <dc:creator>sskinner</dc:creator>
      <dc:date>2020-01-31T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671489#M50785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46627"&gt;@sskinner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no, sorry, it was an oversight on my part.&amp;nbsp;&lt;BR /&gt;You should use the same set analysis in the count, so that it works properly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just to explain my line of thought, you would have to assign a value to the nulls in the measure ( in this case NA), otherwise it wouldn’t work. Alt here wouldn’t work as well, as the result is not in number format.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;An if statement is non deterministic in a front end object, and the set analysis is calculated once per object, but evaluated for every row (or is it the other way around? I’m never sure &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that I cleared it up a little more &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671489#M50785</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-31T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unintended filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671490#M50786</link>
      <description>&lt;P&gt;By the way, if you are happy with the solution, mark the topic as solved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unintended-filtering/m-p/1671490#M50786</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-31T23:20:34Z</dc:date>
    </item>
  </channel>
</rss>

