<?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: Change the definition of a dimension by macro without remove/add in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418175#M155546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I don't know the number of dimension. As I mentioned, the user can change the order of dimensions. For example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I have 5 dimension called Dim1, Dim2, Dim3, Dim4, Dim5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - The user change the order of dimension to have a new pivottable (ex : Dim1, Dim4, Dim3, Dim2, Dim5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now I want with one clic to reset the pivottable, it means I want the dimension in the right order (Dim1, Dim2, Dim3, Dim4, Dim5)...But I don't know the number of each dimension (but I know the label or the definition of the dimension if it helps)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 12:11:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-29T12:11:15Z</dc:date>
    <item>
      <title>Change the definition of a dimension by macro without remove/add</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418173#M155544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to change with a macro the definition of a dimension, without remove/add a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a pivottable dimension (=Dim1). When the user clic on a button, the dimension change and become Dim2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to remove/add dimension to keep the properties of the dimension (for example the conditional show).&lt;/P&gt;&lt;P&gt;I can't use variables beacause the user can change the order/number of columns/rows (=change the order of dimensions in the graphe).&lt;/P&gt;&lt;P&gt;I would like to reset the pivottable (reset the order of dimensions = the order/number of columns/rows) with one clic, it means with macro I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 08:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418173#M155544</guid>
      <dc:creator />
      <dc:date>2013-05-29T08:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change the definition of a dimension by macro without remove/add</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418174#M155545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you're looking for is the MoveDimension member. This would move the dimension that's in first position into second position:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set chart=ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;chart.MoveDimension 0,1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 11:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418174#M155545</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-29T11:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change the definition of a dimension by macro without remove/add</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418175#M155546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I don't know the number of dimension. As I mentioned, the user can change the order of dimensions. For example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I have 5 dimension called Dim1, Dim2, Dim3, Dim4, Dim5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - The user change the order of dimension to have a new pivottable (ex : Dim1, Dim4, Dim3, Dim2, Dim5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now I want with one clic to reset the pivottable, it means I want the dimension in the right order (Dim1, Dim2, Dim3, Dim4, Dim5)...But I don't know the number of each dimension (but I know the label or the definition of the dimension if it helps)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 12:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418175#M155546</guid>
      <dc:creator />
      <dc:date>2013-05-29T12:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change the definition of a dimension by macro without remove/add</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418176#M155547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find my solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will change the definition of the dimension, the label and the conditional show. I didn't want to delete the dimension to keep the conditional show but I just find a way to replace it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, I have a problem with MoveDimension. I don't know why but it doesn't work. I download the last update of QlikView but it doesn't change anything. The solution with MoveDimension was to sort the dimensions thanks to their label (&amp;nbsp; &lt;EM&gt;objProp.Dimensions(j).Title&lt;/EM&gt; ), but I have to let this down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 16:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-definition-of-a-dimension-by-macro-without-remove-add/m-p/418176#M155547</guid>
      <dc:creator />
      <dc:date>2013-06-03T16:01:29Z</dc:date>
    </item>
  </channel>
</rss>

