<?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 Count cells in dynamic table to limit data that user can display in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-cells-in-dynamic-table-to-limit-data-that-user-can-display/m-p/1906287#M1217927</link>
    <description>&lt;P&gt;Hello. I need to limit data that user can display in dynamic table using Calculation Condition (or macro).&lt;/P&gt;
&lt;P&gt;For Straight Table in my model it is simple - i can put count(DISTINCT $(=concat( DimName, ' &amp;amp; '))) for rows count and (GetSelectedCount(DimHierarchy) +&amp;nbsp;GetSelectedCount(ExprHierarchy)) for column count, multiply and it this a needed count to use in&amp;nbsp;Calculation Condition&lt;/P&gt;
&lt;P&gt;Can i get something similar in Pivot Table?&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; tried using macro that can calculate actual rows and columns:&lt;/P&gt;
&lt;P&gt;Sub GetChartSize()&lt;/P&gt;
&lt;P&gt;Set varObject = ActiveDocument.getsheetobject("CH06")&lt;/P&gt;
&lt;P&gt;chartCol = varObject.GetColumnCount&lt;/P&gt;
&lt;P&gt;chartRow = varObject.GetRowCount&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vChartCol").SetContent chartCol, True&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vChartRow").SetContent chartRow, True&lt;/P&gt;
&lt;P&gt;End sub&lt;/P&gt;
&lt;P&gt;But i dont know where to put this macro&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 02:50:50 GMT</pubDate>
    <dc:creator>b00zzy</dc:creator>
    <dc:date>2022-03-17T02:50:50Z</dc:date>
    <item>
      <title>Count cells in dynamic table to limit data that user can display</title>
      <link>https://community.qlik.com/t5/QlikView/Count-cells-in-dynamic-table-to-limit-data-that-user-can-display/m-p/1906287#M1217927</link>
      <description>&lt;P&gt;Hello. I need to limit data that user can display in dynamic table using Calculation Condition (or macro).&lt;/P&gt;
&lt;P&gt;For Straight Table in my model it is simple - i can put count(DISTINCT $(=concat( DimName, ' &amp;amp; '))) for rows count and (GetSelectedCount(DimHierarchy) +&amp;nbsp;GetSelectedCount(ExprHierarchy)) for column count, multiply and it this a needed count to use in&amp;nbsp;Calculation Condition&lt;/P&gt;
&lt;P&gt;Can i get something similar in Pivot Table?&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; tried using macro that can calculate actual rows and columns:&lt;/P&gt;
&lt;P&gt;Sub GetChartSize()&lt;/P&gt;
&lt;P&gt;Set varObject = ActiveDocument.getsheetobject("CH06")&lt;/P&gt;
&lt;P&gt;chartCol = varObject.GetColumnCount&lt;/P&gt;
&lt;P&gt;chartRow = varObject.GetRowCount&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vChartCol").SetContent chartCol, True&lt;/P&gt;
&lt;P&gt;ActiveDocument.Variables("vChartRow").SetContent chartRow, True&lt;/P&gt;
&lt;P&gt;End sub&lt;/P&gt;
&lt;P&gt;But i dont know where to put this macro&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 02:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-cells-in-dynamic-table-to-limit-data-that-user-can-display/m-p/1906287#M1217927</guid>
      <dc:creator>b00zzy</dc:creator>
      <dc:date>2022-03-17T02:50:50Z</dc:date>
    </item>
  </channel>
</rss>

