Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: Average of Tags using SAP PCo Query

$
0
0

Hi,

 

After you set a Data Range, set the Interval Count to the number of rows the aggregate returns. For the Duration of 1 Day, setting Interval Count to 24 will return 24 rows of 1 hour Averages.

 

You will need to execute multiple queries with different interval counts for the same duration in order to get the results you want. So for a duration of 1 day or 24 hours:

 

Interval Count=24 -> 24 1-hour average rows

Interval Count=4 -> 4 6-hour average rows

Interval Count=3 -> 3 8-hour average rows

Interval Count=1 -> 1 24-hour average row.

 

In your case, since you are after hourly averages for multiple hours, I would recommend you set your Duration to 24 and then the duration/Interval Count = number of hours in each row returned. For multiple day intervals you will need to adjust the Interval count so that it still returns the number of hours in each interval over the Duration period.

 

Regards, Steve


Viewing all articles
Browse latest Browse all 4841

Trending Articles



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