Element Details: Crosstab+Filter
 Back


Available in: Logi Info Source code name: CrosstabFilter

The Crosstab Filter converts the Data Layer into a "cross-tab" format.

Crosstab Filters are used exclusively with the Crosstab Table element.

To create a Crosstab Filter, you must specify a Crosstab Column, a Label Column, a Value Column, and a Value Function. These come from the results of the DataLayer. The Crosstab Column creates a column for each distinct value. Each row is represented by the distinct values in the Label Column. The "cells" are derived from the Value Column by adding, counting, or averaging (depending on the Value Function) all the values unique to each Crosstab and Label Column.

Input rows that have blank Label Column values or blank Crosstab Column values are not included in the output. To include these rows, add a CalculatedColumn element before the Crosstab that sets blank values to some non-blank value.

Other DataLayer filters cannot be applied to the crosstab columns.

Element Group:Organize Data



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
CrosstabColumn
UserDefined
(Required) Specifies a column name returned in the DataLayer. Each distinct value adds a new column to the DataLayer.
CrosstabLabelColumn
UserDefined
(Required) Specifies a column name returned in the DataLayer. Each distinct label value adds a new row to the crosstabbed DataLayer. Display the column in a Crosstab Table with "@Data.ColumnName~", where ColumnName is the name of the column.
CrosstabValueColumn
UserDefined
(Required) Specifies a column name returned in the DataLayer. The column should contain values which are aggregated into each cell of the table.
CrosstabValueFunction
Sum
Stdev
Mode
Min
Median
Max
DistinctCount
Count
Average
Any
(Required) Specifies how values are calculated into the Value Column. For the CrosstabFilter element, the "Any" function displays a value from any of the input rows. This may be used when the CrosstabValueColumn is a string that is not appropriate for aggregation, especially when there is one record to represent each crosstab cell.
ID
UserDefined
The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
IncludeCondition
True
False
An expression that evaluates to a value of True or False. If the expression is blank, or evaluates to true the element is processed. If the expression evaluates to false, the element is skipped. Expressions should be in VBScript or JavaScript syntax. For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript. Typically, you would compare values using an operator, such as "@Session.value~ < 0". Use quotes when working with strings: "@Session.myValue~" == "SomeValue"
MaxCrosstabColumns
UserDefined
Sets the maximum number of crosstab columns returned by the Crosstab Filter. A column is created for each distinct value of the Crosstab Column. In some cases this number should be limited so that the table does not become too wide. The default Max Crosstab Columns is 100.
MaxCrosstabRows
UserDefined
Sets the maximum number of crosstab rows returned by the Crosstab Filter. In some cases this number should be limited so that the table does not become too large in memory. Defaults to 10,000 rows.



PARENT ELEMENTS

Click element to drill down for more information.

DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Data Services
DataLayer.Definition List
DataLayer.ETL
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.GPX File
DataLayer.JSON
DataLayer.LDAP
DataLayer.Linked
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.SimpleDB
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML


CHILD ELEMENTS

Click element to drill down for more information.

Crosstab Row Summary Column
Extra Crosstab Calculated Column
Extra Crosstab Label Column Extra Crosstab Value Column


 Back to top


 Chart Debug