<?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: Merge two string variables into one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728812#M261187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you have to do it in the variable-window of the frontend - not in the script as you have to replace the $-signs to avoid QV in executing them unintentional&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 00:07:58 GMT</pubDate>
    <dc:creator>danieloberbilli</dc:creator>
    <dc:date>2014-10-30T00:07:58Z</dc:date>
    <item>
      <title>Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728810#M261185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a variable with two other variables, year and previous week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vYear) &amp;amp;' - '&amp;amp; $(vPreviousWeek)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work though, what is the syntax? I want it to be for example "2014-39"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 23:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728810#M261185</guid>
      <dc:creator>annabergendal</dc:creator>
      <dc:date>2014-10-29T23:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728811#M261186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it depends on how you define vYear and vPreviousWeek &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example, with this in an input box&lt;/P&gt;&lt;P&gt;vYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =max(Year)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // field Year&lt;/P&gt;&lt;P&gt;vPreviousWeek&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =max(Week)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // field Week&lt;/P&gt;&lt;P&gt;v&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =$(vYear) &amp;amp; '-' &amp;amp; $(vPreviousWeek)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70041_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 23:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728811#M261186</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-29T23:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728812#M261187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you have to do it in the variable-window of the frontend - not in the script as you have to replace the $-signs to avoid QV in executing them unintentional&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 00:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728812#M261187</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-10-30T00:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728813#M261188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vYear = Year($(vToday)) and same for vWeek.&lt;/P&gt;&lt;P&gt;Should I define withuot '$' ? But it doesn't work without...&lt;/P&gt;&lt;P&gt;With the syntax &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=$(vYear) &amp;amp; '-' &amp;amp; $(vPreviousWeek) I get 1976 when vYear is 2014 and vWeek is 39.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728813#M261188</guid>
      <dc:creator>annabergendal</dc:creator>
      <dc:date>2014-10-30T07:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728814#M261189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=$(vYear) &amp;amp; ' - ' &amp;amp; $(vPreviousWeek)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728814#M261189</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-10-30T07:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728815#M261190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems that vPreviousWeek is also defined as year - thats why it substracts 39 years. Try Week() instead of Year &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728815#M261190</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-10-30T07:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728816#M261191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anna,&lt;/P&gt;&lt;P&gt;Pls share your complete variable logic &amp;amp; it depend on the logic being user there.normally if you variable having year&lt;/P&gt;&lt;P&gt;To use that varable, following is the syntax&lt;/P&gt;&lt;P&gt;$(variablename) or $(=variablename)&lt;/P&gt;&lt;P&gt;yoy can use eaither of those two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728816#M261191</guid>
      <dc:creator />
      <dc:date>2014-10-30T07:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728817#M261192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I think this was actually my problem, when using the created variable in a script I used $, when I take that away it works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728817#M261192</guid>
      <dc:creator>annabergendal</dc:creator>
      <dc:date>2014-10-30T07:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two string variables into one</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728818#M261193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I look at your statement: vYear = Year($(vToday)) and same for vWeek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you store "Today" date in a variable and then put it, as a date field, in other date function (Year($(Today)) in your case) that function may have a problem to convert your $(Today) variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To solve this you can replace&lt;/P&gt;&lt;P&gt;Year ($ (vToday))&lt;/P&gt;&lt;P&gt;with the syntax:&lt;/P&gt;&lt;P&gt;Year (Today ()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today() function will be converted correctly by Year() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same for the week function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 08:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-two-string-variables-into-one/m-p/728818#M261193</guid>
      <dc:creator />
      <dc:date>2014-10-30T08:34:51Z</dc:date>
    </item>
  </channel>
</rss>

