<?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 Adding new Dimension from selected values in Listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200441#M58962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never tried the macro myself, I just wanted to let you know that somebody had looked into it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cant help you any further than the posted link, sorry&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jun 2010 12:48:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-24T12:48:32Z</dc:date>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200438#M58959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have a 2 list boxes and a bar graph... I want to select a value in Listbox1 and the selected value will be the dimension of my graph... and then when I select another value from Listbox2 it should be added after the first value/dimension of my graph. But I can't make this work.&lt;/P&gt;&lt;P&gt;Any suggestions for this? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 05:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200438#M58959</guid>
      <dc:creator />
      <dc:date>2010-06-24T05:25:51Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200439#M58960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a file in the 'Share qlikviews' section about just that!&lt;/P&gt;&lt;P&gt;Enjoy&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/media/p/91101.aspx"&gt;http://community.qlik.com/media/p/91101.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 08:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200439#M58960</guid>
      <dc:creator />
      <dc:date>2010-06-24T08:44:19Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200440#M58961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesper...&lt;/P&gt;&lt;P&gt;wow! thanks for the link.. I saw the macro...&lt;/P&gt;&lt;P&gt;Since I'm not changing the Expressions. I removed the code for adding Expressions.. my problem is the chart.AddDimesions seems not working...&lt;/P&gt;&lt;P&gt;or should I put a code somthing like this:&lt;/P&gt;&lt;P&gt;&lt;B&gt;set&lt;/B&gt; p = chart.GetProperties&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;exps = p.Expressions &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;exps = p.Expressions exps = p.Expressions &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;expItem = exps.Item(i).Item(0).Data.ExpressionVisual &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; chart.SetProperties p&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the counterpart of ExpressionVisual for Dimension?&lt;/P&gt;&lt;P&gt;THANKS! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 12:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200440#M58961</guid>
      <dc:creator />
      <dc:date>2010-06-24T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200441#M58962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never tried the macro myself, I just wanted to let you know that somebody had looked into it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cant help you any further than the posted link, sorry&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 12:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200441#M58962</guid>
      <dc:creator />
      <dc:date>2010-06-24T12:48:32Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200442#M58963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nadsky, responding to your private message. As I recall, the approach I've used for dynamic reporting is very similar to Nick's approach. So I'll start by just posting my own template, in case that answers your questions in some way. If you're not adding and removing expressions, then it looks like you can strip my macro down to the below code:&lt;/P&gt;&lt;P&gt;sub rebuild()&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle 'wait for QlikView to finish before modifying report&lt;BR /&gt; set selectedDimensions = ActiveDocument.getField("Dimensions").getSelectedValues&lt;BR /&gt; selectedDimensionMax = selectedDimensions.Count - 1&lt;BR /&gt; if selectedDimensionMax &amp;gt;= 0 then 'bypass if nothing is selected&lt;BR /&gt; set chart = ActiveDocument.getSheetObject("CH01")&lt;BR /&gt; chartDimensionMax = chart.GetColumnCount - 1&lt;BR /&gt; for i = chartDimensionMax to 0 step -1 'remove existing dimensions&lt;BR /&gt; chart.removeDimension i&lt;BR /&gt; next&lt;BR /&gt; for j = 0 to selectedDimensionMax 'add selected dimensions&lt;BR /&gt; chart.addDimension selectedDimensions.Item(j).Text&lt;BR /&gt; next&lt;BR /&gt; end if&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 17:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200442#M58963</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-24T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200443#M58964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your chart is supposed to always have two dimensions, though, and only WHAT those dimensions are is dynamic, I wouldn't use the macro approach. I'd use two cyclic groups. So your first cyclic group would contain all the fields allowed as the first dimension. Your second cyclic group would contain all the fields allowed as the second dimension. Those two groups would be your two dimensions. You'd be selecting from groups instead of list boxes, but it's pretty much the same idea, and avoids macro code (you want to avoid macro code when you can).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 17:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200443#M58964</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-24T17:52:19Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200444#M58965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the sample macro code you gave me... The code is working, it deletes the existing Dimensions.. retrieves the selectedDimensions (checked by msgbox(selectedDimensions.Item(j).text)) but my chart don't display ANY dimensions.&lt;/P&gt;&lt;P&gt;Is there something I need to update? like chart.Properties or something?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 06:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200444#M58965</guid>
      <dc:creator />
      <dc:date>2010-06-25T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200445#M58966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check attachment, I've commented all expressions' code. It works for dimensions only now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 23:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200445#M58966</guid>
      <dc:creator />
      <dc:date>2010-07-02T23:51:15Z</dc:date>
    </item>
    <item>
      <title>Adding new Dimension from selected values in Listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200446#M58967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have same situation here too. i need to add selected expressions to the table ( either straight table or pivot table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default some expressions will be there in the table. but user needs extra expressions that will be available in the list box, so that he will be able to add to the table on the fly if he needs to. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide me a macro code to do that with an example, as im new to this environment. &lt;/P&gt;&lt;P&gt;that will be a great help for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 02:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-new-Dimension-from-selected-values-in-Listbox/m-p/200446#M58967</guid>
      <dc:creator />
      <dc:date>2011-05-19T02:39:20Z</dc:date>
    </item>
  </channel>
</rss>

