<?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: addDimension in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817609#M288243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked for a sample to my customer. &lt;/P&gt;&lt;P&gt;If I get the one , yes I will post it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 12:03:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-12T12:03:57Z</dc:date>
    <item>
      <title>addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817598#M288232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question for macro.&lt;/P&gt;&lt;P&gt;My customer is developing a macro like the followings.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 10pt; font-family: gulim, serif;"&gt;sub sortingEquipTrendChart(equips)&lt;BR /&gt; chartX = 639&lt;BR /&gt; chartY = 128&lt;BR /&gt; orignX = 0&lt;BR /&gt; orignY = chartY&lt;BR /&gt; flg = 0&lt;BR /&gt; objs = ActiveDocument.ActiveSheet.GetSheetObjects&lt;BR /&gt; for i=lbound(objs) to ubound(objs)&lt;BR /&gt;&amp;nbsp; if objs(i).GetObjectType = 12 then&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 10pt; font-family: gulim, serif;"&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;dimen =&amp;nbsp; "=if(EQ_ID='" &amp;amp; equips(flg) &amp;amp; "',EQ_ID)"&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; objs(i).RemoveDimension 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; objs(i).RemoveDimension 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff6600;"&gt;objs(i).AddDimension(&lt;SPAN style="text-decoration: underline;"&gt;dimen&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp; --&amp;gt; It doesn't work. &lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; objs(i).AddDimension("STS2_SEQ")&amp;nbsp; --&amp;gt; &lt;STRONG&gt;OK, It works fine.&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set pos = objs(i).GetRect&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if flg&amp;lt;&amp;gt;0 then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; orignY = orignY + (pos.Height - 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pos.Top = orignY&lt;BR /&gt;&amp;nbsp;&amp;nbsp; objs(i).SetRect pos&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set pos = nothing&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flg = flg + 1&lt;BR /&gt;&amp;nbsp; end if&lt;BR /&gt; next&lt;BR /&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #222222; font-size: 10pt; font-family: gulim, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But he want to know it is possible to use 'addDimension' with a parameter including expression like &lt;STRONG style="color: #222222; font-family: gulim, serif; font-size: 13.3333330154419px;"&gt;"=if(EQ_ID='" &amp;amp; equips(flg) &amp;amp; "',EQ_ID)"&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your recommendation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817598#M288232</guid>
      <dc:creator />
      <dc:date>2014-12-11T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817599#M288233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wanki,&lt;/P&gt;&lt;P&gt;try to put in your dimension a differente field name and test your macro, if your sub is correct the problem is the correct syntax in &lt;STRONG style="font-size: 13.3333330154419px; font-family: gulim, serif; color: #222222;"&gt;"=if(EQ_ID='" &amp;amp; equips(flg) &amp;amp; "',EQ_ID)"&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to verify the text for dimension and user for this a variable where you compone your dimension and a message box &lt;STRONG&gt;msgbox v_dimension&lt;/STRONG&gt; to see output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User the function CHR( &lt;EM&gt;number ASCII Character&lt;/EM&gt; ) to concatenate char " and ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Luca Jonathan Panetta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817599#M288233</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2014-12-11T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817600#M288234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally it is possible to create calculated dimensions per macro. In your case the syntax with the quotes looks not correct. Use outside from your expression double-quotes an inside single-quotes. The expression should look if you would write inside the chart and then wrapped it in double-quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817600#M288234</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-11T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817601#M288235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Luca Jonathan Panetta,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&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; font-size: 13.3333330154419px;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&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; font-size: 13.3333330154419px;"&gt;I tested to see v_dimension ( v_dimension = vTest = "=if(EQ_ID='" &amp;amp;&amp;nbsp; &lt;STRONG&gt;"TEST"&lt;/STRONG&gt; &amp;amp; "',EQ_ID)"), it works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;But if I change the string like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;v_dimension = vTest = "=if(EQ_ID='" &amp;amp;&amp;nbsp; &lt;STRONG&gt;equips(flg)&lt;/STRONG&gt; &amp;amp; "',EQ_ID)", it doesn't work.&lt;/SPAN&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; font-size: 13.3333330154419px;"&gt;Maybe the variable can not accept&amp;nbsp; to call a function in the string.&lt;/SPAN&gt;&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;WanKi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 01:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817601#M288235</guid>
      <dc:creator />
      <dc:date>2014-12-12T01:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817602#M288236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Marcus,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to test that you mentioned.&lt;/P&gt;&lt;P&gt;If I put the function call in the string, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;v_dimension = vTest = "=if(EQ_ID='" &amp;amp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;equips(flg)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; &amp;amp; "',EQ_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it impossible to call a function in string to assign to variable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 01:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817602#M288236</guid>
      <dc:creator />
      <dc:date>2014-12-12T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817603#M288237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about my mail.&lt;/P&gt;&lt;P&gt;The equips(flg) is not a function but a array.&lt;/P&gt;&lt;P&gt;So, it works fine.&lt;/P&gt;&lt;P&gt;Very sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 01:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817603#M288237</guid>
      <dc:creator />
      <dc:date>2014-12-12T01:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817604#M288238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sorry about my mail.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The equips(flg) is not a function but a array.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;So, it works fine.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Very sorry.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 01:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817604#M288238</guid>
      <dc:creator />
      <dc:date>2014-12-12T01:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817605#M288239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Wanky, but what is the solution?&lt;/P&gt;&lt;P&gt;Have you solved your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Luca Jonathan Panetta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 08:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817605#M288239</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2014-12-12T08:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817606#M288240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LUca Jonathan&amp;nbsp; Panetta, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't solve yet. &lt;/P&gt;&lt;P&gt;I am looking for a solution.&amp;nbsp; &lt;/P&gt;&lt;P&gt;But I donn't know the answer. &lt;/P&gt;&lt;P&gt;Thank you so much for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;WAnKi, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817606#M288240</guid>
      <dc:creator />
      <dc:date>2014-12-12T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817607#M288241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could include other variables or functions in this variable but the result should return:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"=YourExpression()"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This meant it's not enough that it is a string it needed the outside double-qoutes as string-part. Therefore you need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Gulim','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; color: #222222; mso-ansi-language: EN-US;"&gt;dimen =&amp;nbsp; """"=if(EQ_ID='" &amp;amp; equips(flg) &amp;amp; "',EQ_ID)""""&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create additionally quotes. Further with &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Gulim','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; color: #222222; mso-ansi-language: EN-US;"&gt;'" &amp;amp; equips(flg) &amp;amp; "'&lt;/SPAN&gt;&lt;/STRONG&gt; you would check the field &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Gulim','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; color: #222222; mso-ansi-language: EN-US;"&gt;EQ_ID&lt;/SPAN&gt;&lt;/STRONG&gt; against a string, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817607#M288241</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-12T10:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817608#M288242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example where I try to test your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Luca Jonathan Panetta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817608#M288242</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2014-12-12T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817609#M288243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked for a sample to my customer. &lt;/P&gt;&lt;P&gt;If I get the one , yes I will post it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 12:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817609#M288243</guid>
      <dc:creator />
      <dc:date>2014-12-12T12:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817610#M288244</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; font-size: 13.3333330154419px;"&gt;Marcus,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried to do that, but didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The equips() is the variable that is declared as an array.&lt;/P&gt;&lt;P&gt;So I printed the value of 'dimen' ( dimen =&amp;nbsp; "=if(EQ_ID='" &amp;amp;&lt;STRONG&gt; equips(flg)&lt;/STRONG&gt; &amp;amp; "',EQ_ID)").&lt;/P&gt;&lt;P&gt;The result is the following. Maybe it's ok.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="skhynix.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73340_skhynix.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp; the statement, &lt;SPAN style="color: #222222; font-family: gulim, serif; font-size: 13px;"&gt; objs(i).AddDimension(&lt;STRONG&gt;dimen&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: gulim, serif; font-size: 13px;"&gt;), it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 12:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817610#M288244</guid>
      <dc:creator />
      <dc:date>2014-12-12T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817611#M288245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need it wrapped in double-quotes otherwise it would all content after the first single-quote interpret as comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 12:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817611#M288245</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-12T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817612#M288246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wanki,&lt;/P&gt;&lt;P&gt;yes is possible to use a variable to set you dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look this post &lt;A _jive_internal="true" href="https://community.qlik.com/message/30950#30950" title="http://community.qlik.com/message/30950#30950"&gt;http://community.qlik.com/message/30950#30950&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct SUB is &lt;STRONG&gt;takeII&lt;/STRONG&gt;()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Luca Jonathan Panetta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 12:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817612#M288246</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2014-12-12T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: addDimension in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817613#M288247</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; font-size: 13.3333330154419px;"&gt;Luca Jonathan Panetta !!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&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; font-size: 13.3333330154419px;"&gt;WoW !! ^^&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 13:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/addDimension-in-Macro/m-p/817613#M288247</guid>
      <dc:creator />
      <dc:date>2014-12-12T13:47:39Z</dc:date>
    </item>
  </channel>
</rss>

