<?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 Variable in a dimension not working :-( in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723892#M259752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dimension.. where vThisWeek is a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (SalesWeek= vThisWeek,'Yes')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works fine, but then I want to change it using a macro and hence want to use another variable i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vReportNeeded =&amp;nbsp;&amp;nbsp;&amp;nbsp; vThisWeek OR SalesWeek = vLastWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then have if( SalesWeek=vReportNeeded, 'Yes') but it doesn't seem to work and produces no figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ant to throw various week values at it, hence the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any ideas please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 10:24:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-07T10:24:19Z</dc:date>
    <item>
      <title>Variable in a dimension not working :-(</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723892#M259752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dimension.. where vThisWeek is a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (SalesWeek= vThisWeek,'Yes')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works fine, but then I want to change it using a macro and hence want to use another variable i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vReportNeeded =&amp;nbsp;&amp;nbsp;&amp;nbsp; vThisWeek OR SalesWeek = vLastWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then have if( SalesWeek=vReportNeeded, 'Yes') but it doesn't seem to work and produces no figures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ant to throw various week values at it, hence the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any ideas please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723892#M259752</guid>
      <dc:creator />
      <dc:date>2014-07-07T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in a dimension not working :-(</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723893#M259753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, using macro you have to get and set value from variables, not using =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get value from variable:&lt;/P&gt;&lt;P&gt;set vFromDateTransito = ActiveDocument.Variables("vFromDateTransito")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set value:&lt;/P&gt;&lt;P&gt; set ValorVariable = ActiveDocument.Variables("vTest2")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v = "1"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValorVariable.SetContent v , true &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723893#M259753</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-07-07T11:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in a dimension not working :-(</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723894#M259754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for the reply but it does nto help I am afraid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that sets the variable, but after it has set the variable the dimnesion will still not produce figures from it &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723894#M259754</guid>
      <dc:creator />
      <dc:date>2014-07-07T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in a dimension not working :-(</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723895#M259755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use with $ sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in dimension&amp;nbsp; use like '$(Variable name)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723895#M259755</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-07T11:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in a dimension not working :-(</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723896#M259756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How frustratiingly simple - thank you !! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 13:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-in-a-dimension-not-working/m-p/723896#M259756</guid>
      <dc:creator />
      <dc:date>2014-07-07T13:00:58Z</dc:date>
    </item>
  </channel>
</rss>

