NoOfColumns - chart function

NoOfColumns() returns the number of columns in the current row segment in a pivot table.

Syntax:  

NoOfColumns([total])

Arguments:  

Argument Description
TOTAL

If the table is one-dimensional or if the qualifier TOTAL is used as argument, the current column segment is always equal to the entire column.

See: Defining the aggregation scope

If the pivot table has multiple horizontal dimensions, the current row segment will include only columns with the same values as the current column in all dimension rows except for the row showing the last dimension in the inter-field sort order.The inter-field sort order for horizontal dimensions in pivot tables is defined simply by the order of the dimensions from top to bottom.

Example:  

if( ColumnNo( )=NoOfColumns( ), 0, after( sum( Sales )))

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?