<?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: how to get the expand status when the pivot table is expand in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943778#M528149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no event raised when the table is expanded or collapsed, so you cannot fire an action or macro in response to the user expanding/collapsing the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can use macros (no Ajax), then you could create buttons to collapse/expand the table and hide or show columns at the same time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 14:36:45 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-10-09T14:36:45Z</dc:date>
    <item>
      <title>how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943776#M528147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all, &lt;/P&gt;&lt;P&gt;Got a problem to catch the status when ANY ROW is expand in a pivot table.&amp;nbsp; The table is originally collapsed, and when the table is in expand status, we would like to hide some expression columns that only make sense when&amp;nbsp; the table is in collapse status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to use the macro and variable to expand all/ collapse all.&amp;nbsp; But have no idea how to catch the status when the pivot table is expand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 14:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943776#M528147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943777#M528148</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 think there is not such event, that u can catch.&lt;/P&gt;&lt;P&gt;One of our customer had the same requirement but I think it is not possible, to get the current position in the tree in a pivot table for each row....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give a look on this post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/68363" title="https://community.qlik.com/thread/68363"&gt;https://community.qlik.com/thread/68363&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 14:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943777#M528148</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-10-09T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943778#M528149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no event raised when the table is expanded or collapsed, so you cannot fire an action or macro in response to the user expanding/collapsing the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can use macros (no Ajax), then you could create buttons to collapse/expand the table and hide or show columns at the same time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 14:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943778#M528149</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-09T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943779#M528150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the &lt;SPAN style="font-family: 'courier new', courier;"&gt;dimensionality()&lt;/SPAN&gt; function in your expressions to detect how exactly your pivot table has been collapsed/expanded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;dimensionality() = 0&lt;/SPAN&gt; means Totals row&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;dimensionality() = 1&lt;/SPAN&gt; means level 1 (first dimension value line or one dimension level without aggregation)&lt;/LI&gt;&lt;LI&gt;and so on.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the QV Desktop help article on &lt;SPAN style="font-family: 'courier new', courier;"&gt;dimensionality()&lt;/SPAN&gt;. It has a very clear explanation and a link to some very good examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this works only for horizontal dimensions. For vertical dimensions, you have to use &lt;SPAN style="font-family: 'courier new', courier;"&gt;secondarydimensionality()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 14:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943779#M528150</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-09T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943780#M528151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really a nice function. Thought I can not use it as&amp;nbsp; expression condition to hide the column (it dose not work), but I can define new expression value by using value of &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;dimensionality() as conditions&lt;/SPAN&gt; , like 'N/A'&amp;nbsp; to the expression columns to identify the data can not be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943780#M528151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T15:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the expand status when the pivot table is expand</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943781#M528152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No indeed, you can't use it in a conditional show for an expression as the function wouldn't know what to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can use it in the expressions themselves. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=IF (dimensionality() &amp;lt;= 1; Sum(&lt;EM&gt;stuff&lt;/EM&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will force an arbitrary expression to return all NULL values in every cell when a pivot table is expanded. That's already one step in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next one is a bit tricky. Pivot tables won't make expression columns disappear, even if they contain nothing more than NULL values. There is a technique however (using an INLINE Table or ValueList()) to create dynamic expressions instead of fixed-column expressions. And those will disappear instantaneously as soon as every cell contains a NULL-value.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/message/701151"&gt;Re: Hide a column in Pivot Table&lt;/A&gt; for more information and examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-the-expand-status-when-the-pivot-table-is-expand/m-p/943781#M528152</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-09T16:16:10Z</dc:date>
    </item>
  </channel>
</rss>

