Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Analytical View unable to expose data using XS engine

$
0
0

Hi Ramesh,

 

This is an old post but we encountered a similar issue when exposing an Analytic View via an odata service so this might help others.

 

I believe the problem is solved by specifying how you wish to aggregate the data. This can be done in the service OR via the requested url.

 

In the service, you can add:

 

service {      "sample.odata::av_sample" as "Sample"     keys generate local "ID"     aggregates always (SUM of "VAL");
}

 

Have a look on this thread for more information on this - http://scn.sap.com/thread/3346465

 

 

Alternatively, you can also specify the aggregation in the url by adding:

 

$aggregate=sum(VAL) as VAL

 

 

For both methods. when you call the url specify the group you wish to create by the $select parameter:

 

sample.xsodata/Sample/?$select=COL1,VAL

 

 

This will return the sum of the VAL column for each value in COL1.

 

Hope this helps!


Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>