---
description: "Learn more about: Cube.CollapseAndRemoveColumns"
title: "Cube.CollapseAndRemoveColumns"
---
# Cube.CollapseAndRemoveColumns

## Syntax

<pre>
Cube.CollapseAndRemoveColumns(<b>cube</b> as table, <b>columnNames</b> as list) as table
</pre>

## About

Changes the dimensional granularity of the filter context for the `cube` by collapsing the attributes mapped to the specified columns `columnNames`. The columns are also removed from the tabular view of the cube.
