<?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: Expand a Pivot Table to a certain Level with a Macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433413#M566761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;no one ever had that problem? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 15:13:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-18T15:13:11Z</dc:date>
    <item>
      <title>Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433410#M566758</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;&lt;/P&gt;&lt;P&gt;unfortunately i wasn't successful with finding an answer to this by searching in here and the documentation, so I need to ask you... Is there a known way to expand a pivot table to a certain level using a macro? For example a table with maybe 5 dimensions is fully expanded, but when the macro runs, it should be collapsed/changed so only the first 2 dimensions are expanded. The same of course when the table is fully collapsed... after the macro also the first 2 dimensions should be expanded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 07:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433410#M566758</guid>
      <dc:creator />
      <dc:date>2012-12-13T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433411#M566759</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 dont know about macro but following code will help you for dynamic pivot table based on level of selection in list box.&lt;/P&gt;&lt;P&gt;I have created 5 levels in pivot. This figure we can vary based on levels selection.&lt;/P&gt;&lt;P style="margin: 0 0 0 0.75in;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;1. &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;Write inline table in the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Levels:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;[&lt;BR /&gt; Levels&lt;BR /&gt; Level1&lt;BR /&gt; Level2&lt;BR /&gt; Level3&lt;BR /&gt; Level4&lt;BR /&gt; Level5&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; // here you have to give name to each filed , database name of field or script. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Linkl:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;[&lt;BR /&gt; GroupFieldname,GroupField&lt;BR /&gt; Brandcode,BCode&lt;BR /&gt; Item Category Code,ICode&lt;BR /&gt; Product Group Code,PCode&lt;BR /&gt; Outlet Code,OCode&lt;BR /&gt; Item No,INo&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;2. &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;In the Setting-&amp;gt;Document Setting-&amp;gt;General-&amp;gt;Alternate State-&amp;gt;Add&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #31849b;"&gt;Grp1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;…………………&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #31849b;"&gt;&amp;nbsp; Grp5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;3. &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;In the Variable define: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vlevel1 &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;= only ( {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #31849b;"&gt;Grp1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt; GroupField &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;) ………………&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt; vlevel5 &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;= only ( {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #31849b;"&gt;Grp5&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt; GroupField &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;4. &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;In the sheet Add Container&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;4.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;In the List box Set property for each level as Always one selected and &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.75in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Title :&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;Level1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.75in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Field :&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;GroupField&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.75in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Alternate State:&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: #31849b;"&gt;Grp1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;…………………………….. Similarly 4 others as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;4.2 Add listbox : &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;Levels&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: #222222;"&gt;5. Add Pivot Table&amp;nbsp; -&amp;gt; Go to Dimension&amp;nbsp; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;5.1 Add Calculated Dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-indent: 0.5in;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;$(vlevel1) ……………………&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt; =&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;$(vlevel5) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;5.2 Checked Enable Condition Checkbox &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;('Level1',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Times New Roman','serif';"&gt;$(vlevelvarchar)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;)&amp;gt;0 …………………… Similarly 4 others as well.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;5.3 Checked Label&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;Grp1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: maroon;"&gt;GroupFieldname&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;) ……………….………… Similarly 4 others as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 0 0.5in;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 08:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433411#M566759</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2012-12-13T08:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433412#M566760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Nirav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid this won't solve my problem but nevertheless it is an amazing piece of code, thank you, I am sure I will need it soon!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 08:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433412#M566760</guid>
      <dc:creator />
      <dc:date>2012-12-13T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433413#M566761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;no one ever had that problem? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433413#M566761</guid>
      <dc:creator />
      <dc:date>2012-12-18T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433414#M566762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use bookmarks with the Include Layout State option selected, so create a bookmark for the levels of expansion you need (without any selections) and apply the bookmark through actions via a button or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433414#M566762</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-18T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expand a Pivot Table to a certain Level with a Macro?</title>
      <link>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433415#M566763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how i create bookmarks for the levels of expansion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 04:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expand-a-Pivot-Table-to-a-certain-Level-with-a-Macro/m-p/433415#M566763</guid>
      <dc:creator />
      <dc:date>2013-06-13T04:07:58Z</dc:date>
    </item>
  </channel>
</rss>

