SAP Knowledge Base Article - Public

3515668 - SAC - Application.getFileDataSource(modelID).setDimensionFilterWithHierarchy() doesnt work for dimension without hierarchy

Symptom

The issue arises when using the setDimensionFilterWithHierarchy function, which requires a hierarchy parameter.

For dimensions without a hierarchy, setting the parameter to "" doesn't update the filter. The user intends to apply a dimension property as a filter, but since properties can't have a hierarchy, this approach fails.

Environment

SAP ANALYTICS CLOUD

Cause

Wrong configuration

Resolution

For the setDimensionFilterWithHierarchy API, the hierarchy parameter is mandatory. If there's no hierarchy in the dimensions, use Alias.FlatHierarchy for the parameter.

See Also

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, API, setDimensionFilterWithHierarchy, Alias.FlatHierarchy, Analytic application
 
, KBA , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud 1.0