SAP Knowledge Base Article - Public

3190820 - Multiple Dimensions with setDimensionFilter

Symptom

You want to know the following regarding setDimensionsFilter.

1.Can I set the filters of MULTIPLE dimensions at once.

2,Can I set more than 1 values for a dimension using setDimensionFilter ?

Environment

SAP Analytics Cloud 1.0;

Cause

This is a functional gap.

Resolution

1, Currently there is no feature to set the filters of multipe dimensions in one sentence from Application Designer.

But you can use several sentences to achieve that as below:

"

Table_1.getDataSource().setDimensionFilter("0BC_CUST", "0HIER_NODE!LOW_PRIO");

 

Table_1.getDataSource().setDimensionFilter("4FRV82L09HYEETSX0PUD4Y7SV", "4FRV82SOSGK3XGCD6JWPF06IN");

"

If you don't want to refresh after one sentence, you can use “pauserefresh” as below:

"

Table_1.getDataSource().setRefreshPaused(true);

 

Table_1.getDataSource().setDimensionFilter("0BC_CUST", "0HIER_NODE!LOW_PRIO");

Table_1.getDataSource().setDimensionFilter("4FRV82L09HYEETSX0PUD4Y7SV", "4FRV82SOSGK3XGCD6JWPF06IN");

"

2, setDimensionFilter can only set 1 value.

Keywords

KBA , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud 1.0