<?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: Pass parameters to variable containing set expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pass-parameters-to-variable-containing-set-expression/m-p/5772#M455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you have a typo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MaxString({1&amp;lt;AppName={$1}&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;&amp;gt;&lt;/SPAN&gt;,SheetName={$2}}SheetId)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MaxString({1&amp;lt;AppName={$1},SheetName={$2}&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;&amp;gt;&lt;/STRONG&gt;}SheetId)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 20:03:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-23T20:03:14Z</dc:date>
    <item>
      <title>Pass parameters to variable containing set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-parameters-to-variable-containing-set-expression/m-p/5771#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Qlik Sense 3.2.2 I'm trying to dynamically generate a set expression in order to reduce repetitive coding in my app's sheets. I've seen some examples of this but only in a QlikView context. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my set up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sheet variable &lt;STRONG&gt;vSheetId&lt;/STRONG&gt; is defined as:&lt;/P&gt;&lt;P&gt;=MaxString({1&amp;lt;AppName={$1}&amp;gt;,SheetName={$2}}SheetId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From another expression, I call this variable and pass the appropriate values for the App and Sheet IDs I want to look up:&lt;/P&gt;&lt;P&gt;=$(vSheetId('IRL', 'Overview'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;These values are in a data island table in my model. There are multiple combinations of these IDs that I need for different objects in my app.&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;I've tried several variations on this, but none have worked. If I simply hard code the set expression instead of using the $1 and $2 parameters, everything works. For example this works: &lt;SPAN style="font-size: 13.3333px;"&gt;=MaxString({1&amp;lt;AppName={IRL}&amp;gt;,SheetName={Overview}}SheetId)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is what I'm trying to do even possible in QlikSense? If so, where am I wrong with my syntax, or is there an alternative way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 19:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-parameters-to-variable-containing-set-expression/m-p/5771#M454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-23T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameters to variable containing set expression</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-parameters-to-variable-containing-set-expression/m-p/5772#M455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you have a typo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MaxString({1&amp;lt;AppName={$1}&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;&amp;gt;&lt;/SPAN&gt;,SheetName={$2}}SheetId)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MaxString({1&amp;lt;AppName={$1},SheetName={$2}&lt;STRONG style=": ; color: #ff0000; font-size: 14pt;"&gt;&amp;gt;&lt;/STRONG&gt;}SheetId)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 20:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-parameters-to-variable-containing-set-expression/m-p/5772#M455</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T20:03:14Z</dc:date>
    </item>
  </channel>
</rss>

