DataProperty selectedProperty = dataSetTable.getDataProperty(columnIndex);
DataProperty groupByProperty = dataSetTable.getGroupByProperty();
Dashboard dashboard = DashboardHandler.lookup().getCurrentDashboard();
if (groupByProperty != null) {
// When the table is grouped then get the interval selected.
Interval selectedInterval = groupByProperty.getDomain().getIntervals()[rowIndex];
dashboard.filter(selectedProperty.getPropertyId(), selectedInterval, FilterByCriteria.ALLOW_ANY);
} else {
Object selectedValue = dataSetTable.getValueAt(rowIndex, columnIndex);
Collection values = new ArrayList();
values.add(selectedValue);