<?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: concat does not work in my variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581748#M739577</link>
    <description>&lt;P&gt;Hi Dilipranjith,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the typos... I tried your definition and corrected the variable name, now I receive error:&lt;/P&gt;&lt;P&gt;Error: Garbage after expression: "10"&lt;/P&gt;&lt;P&gt;new qvw file attached..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Micahel&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 21:48:55 GMT</pubDate>
    <dc:creator>msmichael</dc:creator>
    <dc:date>2019-05-17T21:48:55Z</dc:date>
    <item>
      <title>concat does not work in my variable</title>
      <link>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581734#M739575</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have two fields - myyear and mymonth. There's a list for myyear for users to choose a year.&lt;/P&gt;&lt;P&gt;I created two variables, one is vSelectedYear, definition is&amp;nbsp;=GetFieldSelections([myyear]), this is used to record the year that is currently selected by user.&lt;/P&gt;&lt;P&gt;The other variable is called "vYearPlugMonths", the purpose of the variable is to get the list of months that are available in the selected year, plus the unselected years..&lt;/P&gt;&lt;P&gt;For example, I have data list below,&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;myyear&lt;/TD&gt;&lt;TD&gt;mymonth&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so when user selects 2016, the variable should be: 2017,2018,1,2,5&amp;nbsp; (because 1, 2, 5 are available months in 2016)&lt;/P&gt;&lt;P&gt;when user selects 2017, the variable should be: 2016,2018,10,11,12 (because 10,11,12 are available months in 2017)&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;I used this definition: =Concat({&amp;lt;myyear-={'$(vSelectedYear'}&amp;gt;} [myyear]) &amp;amp; Concat({1 &amp;lt;myyear={'$(vSelectedYear)'}&amp;gt;} chr(39) &amp;amp; [mymonth] &amp;amp; chr(39), ',')&lt;/P&gt;&lt;P&gt;but it did not work.&lt;/P&gt;&lt;P&gt;Could anyone please shed some light? The qvw file is attached..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581734#M739575</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2024-11-16T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: concat does not work in my variable</title>
      <link>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581745#M739576</link>
      <description>&lt;P&gt;change your variable to below. red is pieces i added&lt;/P&gt;&lt;P&gt;=Concat(&lt;FONT color="#FF0000"&gt;DISTINCT&lt;/FONT&gt;{&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&amp;lt;myyear-={'$(vSelectedYear&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;'}&amp;gt;} [myyear]) &amp;amp; Concat({1 &amp;lt;myyear={'$(vSelectedYear)'}&amp;gt;} chr(39) &amp;amp; [mymonth] &amp;amp; chr(39), ',')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the variable name in the text box was not right&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 21:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581745#M739576</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-17T21:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: concat does not work in my variable</title>
      <link>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581748#M739577</link>
      <description>&lt;P&gt;Hi Dilipranjith,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the typos... I tried your definition and corrected the variable name, now I receive error:&lt;/P&gt;&lt;P&gt;Error: Garbage after expression: "10"&lt;/P&gt;&lt;P&gt;new qvw file attached..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Micahel&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 21:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581748#M739577</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2019-05-17T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: concat does not work in my variable</title>
      <link>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581753#M739578</link>
      <description>remove the = at start of the variable definition.&lt;BR /&gt;&lt;BR /&gt;Mark as answered and close the thread please</description>
      <pubDate>Fri, 17 May 2019 23:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concat-does-not-work-in-my-variable/m-p/1581753#M739578</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-17T23:16:38Z</dc:date>
    </item>
  </channel>
</rss>

