<?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 expression using &amp;quot;expression search&amp;quot; only evaluates in $ context in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211320#M23277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting cross-post about philosophy of "flag field" versus "evaluate on-the-fly [in set expression]". &lt;A href="https://community.qlik.com/message/679173"&gt;Re: Set modifier problem with empty column&lt;/A&gt; . Difference almost negligible, maybe I should consider a flag field for clarity, which is more important for me as I work with a team on this Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Oct 2016 07:06:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-23T07:06:48Z</dc:date>
    <item>
      <title>Set expression using "expression search" only evaluates in $ context</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211317#M23274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my test-data&lt;/P&gt;&lt;P&gt;But the user could provide their own data;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year, id&amp;nbsp;&amp;nbsp;&amp;nbsp; , col1, col2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, 2012-1, 3, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, 2013-1, 4, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014, 2014-1, 5, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, 2012-2, 6, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, 2013-2, 7, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014, 2014-2, 8, 0&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I want to get the id of ALL rows where col1&amp;lt;=col2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But when I use this Set expression (with {1} for ALL), and the Set expression filter relies on an "expression search"...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;=CONCAT({1&amp;lt;id={'=col1&amp;lt;=col2'}&amp;gt;}DISTINCT id, '|')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It doesn't seem to evaluate in the {1} all context where I want it to ignore the user's selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i.e. it seems to evaluate in the {$} context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So instead of returning 2012-1, 2013-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It returns 2012-1 if the user's clicked 2012, 2013-1 if the user's clicked 2013, and only returns both 2012-1, 2013-1 (which is what I want), if the user deselects the year field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the same in attached Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this behavior mentioned in the documentation? Am I making a mistake? Note the workarounds I considered, can you give me any alternatives?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4107" target="_blank"&gt;The Expression Search&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211317#M23274</guid>
      <dc:creator />
      <dc:date>2024-11-16T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using "expression search" only evaluates in $ context</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211318#M23275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=CONCAT({1&amp;lt;id={'=&lt;STRONG&gt;Only({1} &lt;/STRONG&gt;col1&amp;lt;=col2&lt;STRONG&gt;)&lt;/STRONG&gt;'}&amp;gt;}DISTINCT id, '|')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember that the advanced search is basically creating a hypercube with id being the dimension and the search string being the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 21:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211318#M23275</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-10-22T21:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using "expression search" only evaluates in $ context</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211319#M23276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;"advanced search" -- is that the same thing as Henric's "expression search" mentioned in his blog?&lt;/LI&gt;&lt;LI&gt;"creating a hypercube" means that the outer {1} I used for the containing Set expression is not applied -- it's creating a totally new hypercube and applying the True/False results as a filter.&lt;/LI&gt;&lt;LI&gt;"search string being the expression" -- and since's it's a "plain old expression", while ONLY might be implied in my expression (that's true, right? ONLY is &lt;STRONG&gt;implied&lt;/STRONG&gt;?) , when you use ONLY() &lt;STRONG&gt;explicitly&lt;/STRONG&gt;, then you can introduce a new set expression, which reintroduces the "ALL" requirement with {1}:&amp;nbsp; ONLY({1}...).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experimented with =ONLY({1}col1)&amp;lt;=ONLY({1}col2),&amp;nbsp; I did not get good results, but maybe I made a typo... or in fact they are very different things and ONLY({1}col1) is NULL, and same for ONLY({1}col2), and so the "advanced search"/"expression search" could not evaluate, and so Qlikview produces zero results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cool. Thanks, Stefan. I am assuming your answer works (not testing now), and marking it correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 07:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211319#M23276</guid>
      <dc:creator />
      <dc:date>2016-10-23T07:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using "expression search" only evaluates in $ context</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211320#M23277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting cross-post about philosophy of "flag field" versus "evaluate on-the-fly [in set expression]". &lt;A href="https://community.qlik.com/message/679173"&gt;Re: Set modifier problem with empty column&lt;/A&gt; . Difference almost negligible, maybe I should consider a flag field for clarity, which is more important for me as I work with a team on this Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 07:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211320#M23277</guid>
      <dc:creator />
      <dc:date>2016-10-23T07:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression using "expression search" only evaluates in $ context</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211321#M23278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) In my understanding, 'advanced search' and 'expression search' are describing the same feature in this context (though 'expression search' is actually the better naming, giving a hint of how it works)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Correct, that's how I understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Correct &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=ONLY({1}col1)&amp;lt;=ONLY({1}col2) should return the same results as my suggested search expression, if you don't get results, than maybe your dimension used in the hypercube (id) is not granular enough to show unambiguous expression results? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-using-quot-expression-search-quot-only-evaluates/m-p/1211321#M23278</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-10-23T10:29:23Z</dc:date>
    </item>
  </channel>
</rss>

