<?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 Pivot Table - Shraes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228139#M80195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a way to tell using the API. I believe this is because individual values can be expanded. For Product, you could have A expanded and B collapsed. There isn't an element for each value of Product, only one for the entire Product dimension. Basically, there would be no way to handle having different statuses between records. I'm not sure if that makes it more or less confusing. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;Within the chart, there is some ability to determine whether the dimensions of the records in question are expanded or collapsed. Use the function Dimensionality(). Add another expression to my chart and set the expression to:=Dimensionality().&lt;/P&gt;&lt;P&gt;If the first dimension is collapsed, that expression should equal 1. If the second is collapsed, then it should equal 2. If they are both expanded, then it should equal 3. I'm not sure what exactly you could use that for though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2010 22:11:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-01T22:11:17Z</dc:date>
    <item>
      <title>Pivot Table - Shraes</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228136#M80192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to calculate the shares in a Pivot Table.&lt;/P&gt;&lt;P&gt;My dimensions are Product, Classification, and Month&lt;/P&gt;&lt;P&gt;As we know in a pivot table we can move the position of the dimension. So I can have any combination like Classification, Month, and Product&lt;/P&gt;&lt;P&gt;Question: I would like to know if there is a way I can find the order or position of my dimension in a pivot table when I change the order of my dimensions.&lt;/P&gt;&lt;P&gt;I would also like to know the dimensions are available when I expand and collapse my dimensions in a pivot table.&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 17:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228136#M80192</guid>
      <dc:creator />
      <dc:date>2010-02-01T17:58:51Z</dc:date>
    </item>
    <item>
      <title>Pivot Table - Shraes</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228137#M80193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with Dimensions using the API is somewhat difficult.&lt;/P&gt;&lt;P&gt;I have attached a sample app and a macro that should tell you the order of the Dimensions. This macro requires that each Dimension have a Title (&amp;lt;use field name&amp;gt; will not work). I couldn't find the property which told me the field or expression defining the Dimension, as that would have been preferrable.&lt;/P&gt;&lt;P&gt;Here's the macro:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Dims&lt;BR /&gt; set cht=ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt; set Prop = cht.GetProperties&lt;BR /&gt; set dimz = Prop.Dimensions&lt;BR /&gt; ActiveDocument.Variables("vDim1").SetContent dimz.Item(0).Title.v,true&lt;BR /&gt; ActiveDocument.Variables("vDim2").SetContent dimz.Item(1).Title.v,true&lt;BR /&gt; ActiveDocument.Variables("vDim3").SetContent dimz.Item(2).Title.v,true&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This macro sets three variables, which gives you the order (Dim1 = first, Dim2 = second...). I'm not sure I know what you mean by figuring out which dimensions are available. I don't know how much more info you can get from the API at this level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 20:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228137#M80193</guid>
      <dc:creator />
      <dc:date>2010-02-01T20:07:48Z</dc:date>
    </item>
    <item>
      <title>Pivot Table - Shraes</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228138#M80194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for taking time and replying . That is what I need.&lt;/P&gt;&lt;P&gt;My second half of my question was - If I have 3 dimensions in my pivot and when I collapse one of them I can see only two. So,is there any way we can find which dimensions are Expanded and which dimension is collapsed.&lt;/P&gt;&lt;P&gt;Thanks again Miller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 20:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228138#M80194</guid>
      <dc:creator />
      <dc:date>2010-02-01T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Pivot Table - Shraes</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228139#M80195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a way to tell using the API. I believe this is because individual values can be expanded. For Product, you could have A expanded and B collapsed. There isn't an element for each value of Product, only one for the entire Product dimension. Basically, there would be no way to handle having different statuses between records. I'm not sure if that makes it more or less confusing. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;Within the chart, there is some ability to determine whether the dimensions of the records in question are expanded or collapsed. Use the function Dimensionality(). Add another expression to my chart and set the expression to:=Dimensionality().&lt;/P&gt;&lt;P&gt;If the first dimension is collapsed, that expression should equal 1. If the second is collapsed, then it should equal 2. If they are both expanded, then it should equal 3. I'm not sure what exactly you could use that for though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 22:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Shraes/m-p/228139#M80195</guid>
      <dc:creator />
      <dc:date>2010-02-01T22:11:17Z</dc:date>
    </item>
  </channel>
</rss>

