<?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 Create a pivot with rows and columns in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304546#M587035</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;from an empty PIVOT chart, i'm adding dimensions and expressions with a script through functions like that :&lt;/P&gt;&lt;P&gt;chart.AddDimension &lt;/P&gt;&lt;P&gt;chart.AddExpression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can i say that i want the dimensions to be seen on rows or colums ?&lt;/P&gt;&lt;P&gt;the user can drag the rows into columns&amp;nbsp; but is it possible to do it in design time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 16:57:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-25T16:57:36Z</dc:date>
    <item>
      <title>Create a pivot with rows and columns in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304546#M587035</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;from an empty PIVOT chart, i'm adding dimensions and expressions with a script through functions like that :&lt;/P&gt;&lt;P&gt;chart.AddDimension &lt;/P&gt;&lt;P&gt;chart.AddExpression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can i say that i want the dimensions to be seen on rows or colums ?&lt;/P&gt;&lt;P&gt;the user can drag the rows into columns&amp;nbsp; but is it possible to do it in design time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 16:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304546#M587035</guid>
      <dc:creator />
      <dc:date>2011-07-25T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a pivot with rows and columns in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304547#M587036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check property NumberOfLeftDimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample from APIGUIDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;rem Create HLO system table on new sheet&lt;/P&gt;&lt;P&gt;set Sheet=ActiveDocument.CreateSheet&lt;/P&gt;&lt;P&gt;set Hlo=Sheet.CreatePivotTable&lt;/P&gt;&lt;P&gt;Hlo.AddDimension "$Field"&lt;/P&gt;&lt;P&gt;Hlo.AddDimension "$Table"&lt;/P&gt;&lt;P&gt;Hlo.AddExpression "Only([$Field])"&lt;/P&gt;&lt;P&gt;set Prop = Hlo.GetProperties&lt;/P&gt;&lt;P&gt;Prop.TableProperties.PivotAlwaysFullyExpanded=true&lt;/P&gt;&lt;P&gt;Prop.Dimensions.Item(0).SortCriteria.SortByAscii=0&lt;/P&gt;&lt;P&gt;Prop.Dimensions.Item(0).SortCriteria.SortByLoadOrder=1&lt;/P&gt;&lt;P&gt;Prop.Dimensions.Item(1).SortCriteria.SortByAscii=0&lt;/P&gt;&lt;P&gt;Prop.Dimensions.Item(1).SortCriteria.SortByLoadOrder=1&lt;/P&gt;&lt;P&gt;Prop.TableProperties.NumberOfLeftDimensions = 1 &lt;/P&gt;&lt;P&gt;Hlo.SetProperties Prop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 18:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304547#M587036</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-25T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Create a pivot with rows and columns in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304548#M587037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 20:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-pivot-with-rows-and-columns-in-script/m-p/304548#M587037</guid>
      <dc:creator />
      <dc:date>2011-07-25T20:45:40Z</dc:date>
    </item>
  </channel>
</rss>

