Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
b00zzy
Contributor
Contributor

Count cells in dynamic table to limit data that user can display

Hello. I need to limit data that user can display in dynamic table using Calculation Condition (or macro).

For Straight Table in my model it is simple - i can put count(DISTINCT $(=concat( DimName, ' & '))) for rows count and (GetSelectedCount(DimHierarchy) + GetSelectedCount(ExprHierarchy)) for column count, multiply and it this a needed count to use in Calculation Condition

Can i get something similar in Pivot Table?

I  tried using macro that can calculate actual rows and columns:

Sub GetChartSize()

Set varObject = ActiveDocument.getsheetobject("CH06")

chartCol = varObject.GetColumnCount

chartRow = varObject.GetRowCount

ActiveDocument.Variables("vChartCol").SetContent chartCol, True

ActiveDocument.Variables("vChartRow").SetContent chartRow, True

End sub

But i dont know where to put this macro

0 Replies