<?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 How to filter on a Qlik Expression from the engine API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-filter-on-a-Qlik-Expression-from-the-engine-API/m-p/1800056#M14768</link>
    <description>&lt;P&gt;Hi, I am very, very new to QS. I am tasked with maintaining a legacy app that communicates with QS using the engine api which I have been playing with a bit but i am very far from finding how to do what i want to do with it&lt;/P&gt;&lt;P&gt;I realize my vocabulary can be a bit confusing but I am gonna try to make myself as clear as possible, so please bear with me.&lt;/P&gt;&lt;P&gt;I have an expression that evaluates to one of two field, my front end app has to filter on the fields but only have access to the expression:&lt;/P&gt;&lt;P&gt;let's call the expression vCompanyName. vCompanyName evaluates to either companyCodeAndName or companyRegistryCode.&lt;/P&gt;&lt;P&gt;my FE app needs to filter but only has access to vCompanyName.&lt;/P&gt;&lt;P&gt;Logically i would do the following:&lt;/P&gt;&lt;P&gt;step 1: call EvaluateEx on vCompanyName. This would yield either&amp;nbsp;companyCodeAndName or&amp;nbsp;companyRegistryCode&lt;/P&gt;&lt;P&gt;step 2: call GetField on the value returned from step 1&lt;/P&gt;&lt;P&gt;step 3: call Select on that field with the value i want to filter with&lt;/P&gt;&lt;P&gt;This however is error prone when and if other filters are being set that could impact the evaluation of vCompanyName.&lt;/P&gt;&lt;P&gt;what is the best way to go about this? is there a method in the api that allows me to filter using an expression?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 11:55:22 GMT</pubDate>
    <dc:creator>nazakc</dc:creator>
    <dc:date>2021-04-16T11:55:22Z</dc:date>
    <item>
      <title>How to filter on a Qlik Expression from the engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-filter-on-a-Qlik-Expression-from-the-engine-API/m-p/1800056#M14768</link>
      <description>&lt;P&gt;Hi, I am very, very new to QS. I am tasked with maintaining a legacy app that communicates with QS using the engine api which I have been playing with a bit but i am very far from finding how to do what i want to do with it&lt;/P&gt;&lt;P&gt;I realize my vocabulary can be a bit confusing but I am gonna try to make myself as clear as possible, so please bear with me.&lt;/P&gt;&lt;P&gt;I have an expression that evaluates to one of two field, my front end app has to filter on the fields but only have access to the expression:&lt;/P&gt;&lt;P&gt;let's call the expression vCompanyName. vCompanyName evaluates to either companyCodeAndName or companyRegistryCode.&lt;/P&gt;&lt;P&gt;my FE app needs to filter but only has access to vCompanyName.&lt;/P&gt;&lt;P&gt;Logically i would do the following:&lt;/P&gt;&lt;P&gt;step 1: call EvaluateEx on vCompanyName. This would yield either&amp;nbsp;companyCodeAndName or&amp;nbsp;companyRegistryCode&lt;/P&gt;&lt;P&gt;step 2: call GetField on the value returned from step 1&lt;/P&gt;&lt;P&gt;step 3: call Select on that field with the value i want to filter with&lt;/P&gt;&lt;P&gt;This however is error prone when and if other filters are being set that could impact the evaluation of vCompanyName.&lt;/P&gt;&lt;P&gt;what is the best way to go about this? is there a method in the api that allows me to filter using an expression?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 11:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-filter-on-a-Qlik-Expression-from-the-engine-API/m-p/1800056#M14768</guid>
      <dc:creator>nazakc</dc:creator>
      <dc:date>2021-04-16T11:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter on a Qlik Expression from the engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-filter-on-a-Qlik-Expression-from-the-engine-API/m-p/1800117#M14771</link>
      <description>&lt;P&gt;I assume at some point after filtering you are retrieving&amp;nbsp; data from Qlik, likely in a Hypercube.&amp;nbsp; You can use Set Analysis syntax in your hypercube Measures to include filtering with your data definition.&amp;nbsp; For example, instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Sum(Sales)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;with set filtering to three companies:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Sum({&amp;lt;&lt;SPAN&gt;companyRegistryCode={'AGX', 'YHO', 'IBM'}&lt;/SPAN&gt;&amp;gt;} Sales)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you have more questions tell us a bit more about what methods you are using to retrieve data and what programming language you are using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 13:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-filter-on-a-Qlik-Expression-from-the-engine-API/m-p/1800117#M14771</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-04-16T13:44:45Z</dc:date>
    </item>
  </channel>
</rss>

