<?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 Analysis in variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15029#M1042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh dear, I did this as a dirty workaround and it's gonna be a pig!&amp;nbsp; Thanks anyway I'll add another workaround for this replace nonsense and hopefully I'll be there.&lt;/P&gt;&lt;P&gt;Cheers for the quick response, enjoy your day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 10:38:18 GMT</pubDate>
    <dc:creator>wallerjc</dc:creator>
    <dc:date>2018-02-13T10:38:18Z</dc:date>
    <item>
      <title>Set Analysis in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15027#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time( fractile( {&amp;lt;[Year]={$(=Max([&lt;SPAN style="font-size: 10pt;"&gt;Year]))},&amp;nbsp; [ColA]={`n/a`}&amp;gt;} [ColB], 0.5), `hh:mm`)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This works when I'm using it in a table and returns as expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I try to place this in my Load script, inside of a variable:&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;set vTest = 'time( fractile( {&amp;lt;[Year]={$(=Max([&lt;SPAN style="font-size: 10pt;"&gt;Year]))},&amp;nbsp; [ColA]={`n/a`}&amp;gt;} [ColB], 0.5), `hh:mm`)&lt;/SPAN&gt;';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;n.b. I have replaced ' with ` to keep the string playing nice.&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;Replacing my original expression in my table now returns NULL, not the value as expected. &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;I have found it is this part of the expression ($(=Max([&lt;SPAN style="font-size: 10pt;"&gt;Year])))&lt;/SPAN&gt; which isn't happy living inside of the variable, could anyone help or advise why this would be?&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;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;James.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15027#M1040</guid>
      <dc:creator>wallerjc</dc:creator>
      <dc:date>2018-02-13T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15028#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Engine sees $ and tries to calculate. Try to wrap your extension into replace function - examples: &lt;A href="https://community.qlik.com/thread/7455"&gt;Stop Dollar Sign Expansion in the script (Escape Character ??? )&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15028#M1041</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-02-13T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15029#M1042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh dear, I did this as a dirty workaround and it's gonna be a pig!&amp;nbsp; Thanks anyway I'll add another workaround for this replace nonsense and hopefully I'll be there.&lt;/P&gt;&lt;P&gt;Cheers for the quick response, enjoy your day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-variable/m-p/15029#M1042</guid>
      <dc:creator>wallerjc</dc:creator>
      <dc:date>2018-02-13T10:38:18Z</dc:date>
    </item>
  </channel>
</rss>

