<?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: Expand Variables in 1 line... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468918#M483939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was syntax error on my part. Your sample was perfect thanks for that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 13:55:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-14T13:55:36Z</dc:date>
    <item>
      <title>Expand Variables in 1 line...</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468916#M483937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really should let this go but is it possible to write this in 1 line of code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to be coded in the loadscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make what I want work I have done the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created 2 variables in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vAsAtRollingType = =AsAtRollingField&lt;/P&gt;&lt;P&gt;2. vAsAtDateSelected = =$(vAsAtRollingType)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second one just expants the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vAsAtRollingType = MyFieldWith1PossibleValueWhichIsJan-2012&lt;/P&gt;&lt;P&gt;2. vAsAtDateSelected = Jan-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above works as a two step process. Can I write it in one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only(=$(vAsAtRollingType ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously the above doesn't work but something similar? Or does it have to be a 2 step process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally it could all be coded in the load script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 07:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468916#M483937</guid>
      <dc:creator />
      <dc:date>2013-06-13T07:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expand Variables in 1 line...</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468917#M483938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you're trying to do. Have a look at the attached example. I didn't create the variable in the script, but that doesn't matter. It'll work the same if you do create the variable in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 12:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468917#M483938</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-13T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expand Variables in 1 line...</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468918#M483939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was syntax error on my part. Your sample was perfect thanks for that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-Variables-in-1-line/m-p/468918#M483939</guid>
      <dc:creator />
      <dc:date>2013-06-14T13:55:36Z</dc:date>
    </item>
  </channel>
</rss>

