<?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: Variable within a set expression not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514283#M749163</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=only({&amp;lt;CONNECTED_MONTH={"$(vCurrentMonth)"}&amp;gt;}CONNECTED_MONTH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technically it should be single quotes, but there is a bug in QV 12.20 that requires double quotes when the modifier field is a dual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 13:29:42 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-11-29T13:29:42Z</dc:date>
    <item>
      <title>Variable within a set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514254#M749160</link>
      <description>&lt;P&gt;Hi - I previously posted and gained an answer for only selecting certain values within a straight table.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Only-include-certain-values-in-straight-table/m-p/82670#M20818" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Only-include-certain-values-in-straight-table/m-p/82670#M20818&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I now have a requirement to select based on a variable being included in the set expression.&lt;/P&gt;&lt;P&gt;If i set the expression like the following it works:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CONNECTED_MONTH={'Nov 2018'}&amp;gt;}CONNECTED_MONTH)&lt;/P&gt;&lt;P&gt;But when I set it like the below it doesnt:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CONNECTED_MONTH={"=vCurrentMonth"}&amp;gt;}CONNECTED_MONTH)&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CONNECTED_MONTH={"vCurrentMonth"}&amp;gt;}CONNECTED_MONTH)&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CONNECTED_MONTH={vCurrentMonth}&amp;gt;}CONNECTED_MONTH)&lt;/P&gt;&lt;P&gt;The variable is working fine and is the following:&lt;/P&gt;&lt;P&gt;vCurrentMonth is&amp;nbsp; =MonthName(Today(1))&lt;/P&gt;&lt;P&gt;What am I doing wrong. the field in question it is validating has been derived and shows Nov 2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas welcome thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514254#M749160</guid>
      <dc:creator>martin_hamilton</dc:creator>
      <dc:date>2024-11-16T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable within a set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514270#M749161</link>
      <description>&lt;P&gt;hi, maybe try and analyze the value of the variable,&lt;/P&gt;&lt;P&gt;only({&amp;lt;CONNECTED_MONTH={&lt;FONT color="#FF0000"&gt;'$(vCurrentMonth)'&lt;/FONT&gt;}&amp;gt;}CONNECTED_MONTH)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 13:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514270#M749161</guid>
      <dc:creator>phillipmacd</dc:creator>
      <dc:date>2018-11-29T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable within a set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514282#M749162</link>
      <description>&lt;P&gt;Or one of these&lt;/P&gt;&lt;PRE&gt;=Only({&amp;lt;CONNECTED_MONTH ={"$(=vCurrentMonth)"}&amp;gt;} CONNECTED_MONTH)
=Only({&amp;lt;CONNECTED_MONTH ={"$(=$(vCurrentMonth))"}&amp;gt;} CONNECTED_MONTH)&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 13:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514282#M749162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-29T13:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable within a set expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514283#M749163</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=only({&amp;lt;CONNECTED_MONTH={"$(vCurrentMonth)"}&amp;gt;}CONNECTED_MONTH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technically it should be single quotes, but there is a bug in QV 12.20 that requires double quotes when the modifier field is a dual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 13:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-within-a-set-expression-not-working/m-p/1514283#M749163</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-29T13:29:42Z</dc:date>
    </item>
  </channel>
</rss>

