cancel
Showing results for 
Search instead for 
Did you mean: 

Custom CDS View - Two Source Aggregation

11-07-2023 11:17 AM
935 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hello,

I'm developing a custom CDS view with 2 sources.

I have a question about the aggregation in the "Element Properties".

Do you know if the aggregation only works for the primary source fields?

When I add the secondary source and in the aggregation I try the "SUM" doesn't work.

Thank you.

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

Tayane
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Francisco,

The aggregation works for primary and associated fields.

Aggregations are used to define the interpretation of numeric data e.g. in an analytical scenario. As a result to setting an aggregation, a field is e.g. interpreted as measure when you use it in a custom analytical query later on. That's why you must define an aggregation behavior for each numeric field in an analytical scenario, except for the representative key. Optionally, you can also define timestamps and dates as measures if this is required for your business case.

Kind regards.

AngelaDai
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Francisco,

As far as i know , aggregation do not only works for the primary source fields.

Best regards,

Angela