Symptom
You are encountering error "Service cannot be used" after added an Calculation Measure in Custom Analytical Query.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to application Custom Analytical Queries.
- Select the required custom analytical query.
- Add-> Calculated Measure.
- Edit the Expression of the Calculated Measure.
- Save and Preview.
- Error "Service cannot be used".
Cause
You have input element which type is not a measure but a dimension in the expression of the calculated measure in custom analytical query.
Resolution
Elements which type is a Dimension cannot be used for Calculated Measure. This is system standard behavior.
You can add required calculation directly to the data source of the custom query which is a custom CDS view based on your business need, and then view it in your custom query.
Keywords
dimension, measure, calculated measure, custom analytical query, custom CDS view , KBA , BC-SRV-APS-EXT-AQD , Fiori based Query Designer , Problem
SAP Knowledge Base Article - Public