Discussion Board for collaboration related to QlikView App Development.
Hello,
I am writing with a question on how we can get the total number of rows in straight table and use that as part of calculation condition? Basically, I want to be able to limit the straight table to only show if there are 50K or less rows in that straight table not on my result set after filters (elaborated on Dynamic table sub-point)
I have 2 tables where I want to implement this:
Things I've tried:
Thank you so much in advance,
Roebrich Perez
Assuming the Object ID of your dynamic table is 'Custom Table':
1) Create a variable to hold the row count of your table (ie. vCustomTableRows)
2) Create a macro to update the variable.
Sub Update_vCustomTableRows
set TargetVariable = ActiveDocument.Variables("vCustomTableRows")
set TableBox = ActiveDocument.GetSheetObject( "Custom Table" )
CustomTableRows = TableBox.GetRowCount
TargetVariable.SetContent CustomTableRows , true
End Sub
3) In the Calculation Condition of your custom table (General properties tab), add the criteria:
vCustomTableRows <= 50000
4) Add an action to execute the macro, to any events that would affect the number of rows in your table.
a) Selection of dimensions in the dynamic table
b) Data filters
c) ???
Assuming the Object ID of your dynamic table is 'Custom Table':
1) Create a variable to hold the row count of your table (ie. vCustomTableRows)
2) Create a macro to update the variable.
Sub Update_vCustomTableRows
set TargetVariable = ActiveDocument.Variables("vCustomTableRows")
set TableBox = ActiveDocument.GetSheetObject( "Custom Table" )
CustomTableRows = TableBox.GetRowCount
TargetVariable.SetContent CustomTableRows , true
End Sub
3) In the Calculation Condition of your custom table (General properties tab), add the criteria:
vCustomTableRows <= 50000
4) Add an action to execute the macro, to any events that would affect the number of rows in your table.
a) Selection of dimensions in the dynamic table
b) Data filters
c) ???