cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Aggregating a calculation view proxy entity

andrefernandes
Participant
0 Likes
1,066

Tutorials: https://developers.sap.com/tutorials/hana-cloud-cap-calc-view.html
--------------------------

Hey folks,

While doing the tutorial, I wondered how the setup would handle aggregations in the calculation view. The tutorial used DIMENSION as Data Category for the calculation view, but what if it used CUBE instead with a simple counter as a calculated column?

I did a quick test just adding COUNTER to an aggregation calc view.

If we queried in the resulting odata service something like /V_Aggregation?$select=COUNTER,INTHEADER_ID, I would expect 3 entries (as there are three unique INTHEADER_ID values in the Items table) as well as the number of times that value appears:

Instead, however, I saw the values were not aggregated at all

How can we enforce the aggregation on the calculation view side?

Best regards,

André

Accepted Solutions (0)

Answers (0)