<?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: Using GetSelectedFields in set analysis via variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608337#M45145</link>
    <description>&lt;P&gt;Thanks, this worked perfectly!&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 06:26:24 GMT</pubDate>
    <dc:creator>Perus_Pena</dc:creator>
    <dc:date>2019-08-01T06:26:24Z</dc:date>
    <item>
      <title>Using GetSelectedFields in set analysis via variable</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608069#M45112</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have simple table listing months which is used to select YearMonth values from multiple tables. I have then multiple measures that I'd like to declare as variables in the Script editor. I will be calculating e.g. v.Count_A / v.Count_B type of measures.&lt;/P&gt;&lt;P&gt;This works as a measure:&amp;nbsp;COUNT(distinct {&amp;lt;YearMonth={'$(=getfieldselections(SelectedPerioid))'}&amp;gt;} %_ID)&lt;/P&gt;&lt;P&gt;But if I use this in QlikScript like this:&lt;/P&gt;&lt;P&gt;Let v.Count = 'COUNT(distinct {&amp;lt;YearMonth={"$(=getfieldselections(SelectedPerioid))"}&amp;gt;} %_ID)';&lt;/P&gt;&lt;P&gt;--&amp;gt; Will show&amp;nbsp;COUNT(distinct {&amp;lt;YearMonth={""}&amp;gt;} %_ID) on the app side.&lt;/P&gt;&lt;P&gt;I guess the $ will make the script will return "" for the field selection as there is no variable with that name. So how can I force that $(=get...Perioid) to be used on the app side?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pena&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608069#M45112</guid>
      <dc:creator>Perus_Pena</dc:creator>
      <dc:date>2024-11-16T20:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetSelectedFields in set analysis via variable</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608080#M45113</link>
      <description>&lt;P&gt;let's try with the below syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&amp;nbsp;v.Count = 'COUNT(distinct {&amp;lt;YearMonth={' &amp;amp; '$' &amp;amp; '(=getfieldselections(SelectedPerioid))}&amp;gt;} %_ID)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope this could help.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 13:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608080#M45113</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2019-07-31T13:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetSelectedFields in set analysis via variable</title>
      <link>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608337#M45145</link>
      <description>&lt;P&gt;Thanks, this worked perfectly!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 06:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-GetSelectedFields-in-set-analysis-via-variable/m-p/1608337#M45145</guid>
      <dc:creator>Perus_Pena</dc:creator>
      <dc:date>2019-08-01T06:26:24Z</dc:date>
    </item>
  </channel>
</rss>

