OSIsoft: Get time-summary calculations with PI Calculated Data function (PI DL 2013 Excel Add-in)

OSIsoft: Get time-summary calculations with PI Calculated Data function (PI DL 2013 Excel Add-in)


[00:02] What is the PI Calculated Data function?
[00:42] Why use PI Calculated Data instead of MS Excel functions?
[02:06] Add a Calculated Data function: select data item
[02:36] Add a Calculated Data function: Specify start & end time
[03:00] Add a Calculated Data function: Link cell references
[03:25] Add a Calculated Data function: Specify time interval
[03:51] Add a Calculated Data function: Show time stamps
[04:31] Formatting tips for Calculated Data functions
[05:22] Copy & paste Calculated Data functions
[05:56] Speed up your spreadsheet by clearing raw data

The PI Calculated Data function allows you to calculate the Minimum, Maximum, Standard Deviation, Range, Average, Count, or Mean of the PI System's timeseries data.

Video content is copyright of OSIsoft, LLC © 2013. All rights reserved. Any redistribution or reproduction of part or all of the contents in any form is prohibited other than for your personal and non-commercial use.
Closed Caption:


The Calculated Data Function in PI DataLink
allows you to do quick, basic calculations
with things like taking the maximum-the minimum
over a time range for a tag. So what I have
here is I have some PI
tag--CDG158 in this case--and what I've
done over here is I've asked, I want to know what
was the daily maximum every day for a week?
We can see every day is represented
here and then at a different time each day
calculated has found the maximum.
And over here, this is an example of what I might try to
do if I wasn't going to use calculated data. So what I might
do is I would use a compressed
data query--so this is a compressed data query right
here--to just bring in all the raw
values for this tag over this week. And you'll
see that now I have seventeen hundred values on my
sheet. And you can imagine if I started to
do this for maybe twenty tags all at once this could be a lot of
data on my sheet; it's going to make my sheet bigger, it's going to take it
longer to load and the performance
as far as interacting with the PI Server is going to be
lower. And also if I want to know what was
the maximum value over this week, in Excel
I can ask for it using the max function. That
works but there is one limitation with
it, it will give me the maximum but it's more
difficult to find out exactly when this maximum happened
in this list of data. The thing is a lot of Excel functions
are extremely powerful but they are not built around the idea that you
have time based data whereas all the PI
System calculations underneath "calculated data" are built
around the assumption that you have time based data.
So I can very quickly do the
same calculation with calculated data that I'm doing
right there with Excel
right away in one cell. So in one cell I can know when the
maximum was, what it was and I don't need to have seventeen hundred
values on my sheet and I get to know exactly what
time this maximum happened--really easily, really painlessly.
So that's what we're going to see right now. So I'm just
going to delete all of this so you can get a sense
of what I'm doing here and it starts off
with--I'll just delete this too. I want to know what's the daily
maximum and we'll see some other calculated data queries.
First I need to know what data item I'm after so I'll search
and I'll go into my PI
Server and I'll search for a PI
tag and I find it and I'll just click
"okay" right there and the start time, well I'm interested in what's happening
over the last week so "t minus 7d".
So today minus seven days from now.
Until today so this morning at
midnight.
And then what's the daily maximum? So the raw values; well we saw how to
do that, that is just with compressed data.
But what we're interested in is what to do with calculated data so I'll just click on
"calculated data" here and then it asks for
much the same thing. So data item--that's going to be the
data item--the start time will be the start time, the end time will be
the end time here. So I click in "data
item" field and I click on my data item "B2"
and click on "start time", click on my start time "B3",
click on "end time" field and click in
B4 right there. Now the time
interval, that's going to be how often do I want this interval to
be so I'm asking for the daily maximum so I'm going to type
in "1D" for one day. I could also put this
on my sheet and just refer to that but I'm just going to type it in this field
here. And then I need to say
what calculation mode I want. Well I'm interested in a
maximum so I'm going to select "maximum" from that drop-down menu
there and I'll say
"apply" and I get a number of maximums. Now I'm interested
in what time did these maximums happen
at so I can click on "show min or max
time" and now I can see the time
at which this maximum happened.
If I were to show start time and end
time this shows me the start time
of this frame that I'm looking at--which day
am I looking at to see the maximum--and when does that
day end. So this is basically the eleventh of
March is this row and then the twelfth of March is
this row and the thirteenth of March is this row.
And on the eleventh of March at
six fifty-three am the maximum for the entire day
happened right there.
Now if I want to see other calculated
data items I can put those in really
easily. So this is the maximum, what if I wanted to know the
minimum and maybe the
--well what other options do I have
here? The range; so maybe the range
for maximum and minimum; so the range.
We can ask for different calculations that we want and all it takes
is we'll take a calculated
data query--click in "calculated data" and get a
calculated data query and link it up in much the same way.
So I click in "data item", click here, click on "start
time"--my start time field would be B3--click on
end time, click on B4, time interval
that's one day again--1D
and I'm going to say
"minimum" and I'll say "apply" and I get the minimum for those
days. And if I want the range all I need to
do--well I could go through the same wizard; that works--or
I could just take this field here, copy
it and paste it and now
I have two calculated data queries and all I have to do now
is just change this to the range.
There.
So I have the range that this tag went
over and if you want to check this I could just say the range is equal to
this cell minus this
cell, scroll this down and you can see that the range is being
calculated correctly. With calculated
data you can very easily do all of these
calculations on the PI Server so you don't need to
have your spreadsheet filled, and filled, and filled with lots of raw
values that then you're doing calculations with Excel calculations
on. It can all be done on the PI Server which is
faster, you'll have a lighter weight spreadsheet, you can do all sorts
of powerful time range calculations; things that aren't
available to you in the standard Excel functions.



Video Length: 06:26
Uploaded By: OSIsoftLearning
View Count: 6,578

Related Software Products
Custom Excel Functions Add-In
Custom Excel Functions Add-In

Published By:
Dave Hawley

Description:
PAfter you install the add-in, you will have new Category in Excel's Native "Insert Function" dialog box. Most Custom Functions are grouped together. That is, B_ =Boolean (TRUE/FALSE) Function C_ =Color Function D_ =Date Function, L_ =Lookup Function. S_ =String (Text) Function. PPRE200* means the lowest version the custom function will work on. Please note, that the ...


Related Videos
Excel Tutorial 1 of 25 - How to Add in Excel - SUM Formula
Excel Tutorial 1 of 25 - How to Add in Excel - SUM Formula

Microsoft Excel Tutorial 1 of 25. How to total numbers in Excel using the SUM function and autosum feature. How to add separated groups of numbers together. How to use the SUM formula in Excel. hr / bClosed Caption:/b in this tutorial I'm going to show you a couple of different ways that you can total up numbers in Microsoft Excel here i have a spreadsheet where I have the number of TV sales for 2012 and 2011 and I want ...
Video Length: 03:29
Uploaded By: robertbobm
View Count: 407,192

Microsoft Excel: How to create add-in
Microsoft Excel: How to create add-in

Our Excel training videos on YouTube cover formulas, functions and VBA. Useful for beginners as well as advanced learners. New upload every Thursday. For details you can visit our website: http://www.familycomputerclub.com You can create a custom function and then convert it nto an add-in for regular use to save time. http://www.youtube.com/watch?v=K4F4m7...
Video Length: 06:02
Uploaded By: Dinesh Kumar Takyar
View Count: 43,372

Excel Magic Trick 276 MoreFunc Excel add-in 66 New functions
Excel Magic Trick 276 MoreFunc Excel add-in 66 New functions

See how to download and install MoreFunc. See new functions like: EVAL evaluates a text string FILENAME gives workbook name FILENAME gives file path FORMULATEXT shows formula in cell as text MRAND randomly generates numbers without repeating numbers. Series of random integers without repetitions COUNTDIFF counts unique records in a list MCONCAT concatenates arrays NBTEXT converts numbers to words hr / bClosed Caption:/b welcome to ...
Video Length: 06:24
Uploaded By: ExcelIsFun
View Count: 28,013

Excel 2010 Statistics #17 Ogive Chart Formula PivotTable Data Analysis Toolpak Add-in & Pareto Chart
Excel 2010 Statistics #17 Ogive Chart Formula PivotTable Data Analysis Toolpak Add-in & Pareto Chart

Download file: https://people.highline.edu/mgirvin/E... 1. Ogive Chart and Cumulative Frequencies -- Formulas (1:40 min) 2. Ogive Chart and Cumulative Frequencies -- PivotTable Pivot Table(21:00 min) 3. Pareto Chart (Sorted Column Chart for Categorical Data with Cumulative Percent Line) (28:20 min) 4. Ogive w Data Analysis Toolpak Add-in (30:51 mins) This is for the Highline Community College Busn 210 Statistical Analysis for Business and Economics taught by ...
Video Length: 35:11
Uploaded By: ExcelIsFun
View Count: 26,911

Excel Formula SUM ( How to add in Excel )
Excel Formula SUM ( How to add in Excel )

Check my blog here: http://www.techtutorialvideo.com/ In this tutorial it is described how to add numbers in Excel. An excel formula SUM is used to add numbers. Also there are two other ways are shown for addition in Microsoft Excel. At the end I have shown a common issue while adding numbers and the resolution for the same with a good example. Check the video tutorial for more details of Excel basic formula SUM(). If you have any question I will be happy to assist you. ...
Video Length: 05:46
Uploaded By: TechTutorialVideo
View Count: 14,866

Excel Magic Trick 316: Concatenate Selection w Criteria (MoreFunc Excel Add-in functions)
Excel Magic Trick 316: Concatenate Selection w Criteria (MoreFunc Excel Add-in functions)

With Formulas: see how to Count Unique Values, List Unique Value, Concatenate range of values with separator. See the MoreFun Add-in functions COUNTDIFF, UNIQUEVALUES, MCONCAT. Related videos: Excel Magic Trick 276 MoreFunc Excel add-in 66 New functions Excel Magic Trick # 272: Count Unique Or Duplicate Records Excel Magic Trick #187: Unique List w Dynamic Formula Excel Magic Trick 306: MCONCAT LOOKUP functions (CAT = 593) hr / bClosed Caption:/bbr ...
Video Length: 06:19
Uploaded By: ExcelIsFun
View Count: 10,653

Use the Solver Add-in for Excel to Produce a Specific Formula Result
Use the Solver Add-in for Excel to Produce a Specific Formula Result

This is Part 2 of my series of videos demonstrating how to use the SOLVER Add-in for Excel. Remember that SOLVER is not activated by default. I show you how to activate it in Part 1 of this series. Here, I want SOLVER to automatically change the Units Sold so that the resulting Gross Profit Sales are $25,000. This is similar to the way that I used SOLVER in Part 1. What is different? I, first, used the SUMPRODUCT Function to determine what would be a "reasonable target" ...
Video Length: 11:49
Uploaded By: Danny Rocks
View Count: 10,146

Excel 2010 VBA Tutorial 103 - Calling Add-In Functions
Excel 2010 VBA Tutorial 103 - Calling Add-In Functions

Official Website: http://yourprogrammingnetwork.co.uk Forum: http://yourprogrammingnetwork.co.uk/F... Facebook: https://www.facebook.com/YourProgramm... hr / bClosed Caption:/b hello and welcome to buy a hundredfont color="#CCCCCC" of/font font color="#CCCCCC"38,000 a/fontfont color="#E5E5E5" tutorial this tutorial is going/font to show you how you can reference your font color="#CCCCCC"Adam's functions from within/fontfont ...
Video Length: 06:10
Uploaded By: YourProgrammingNetwork
View Count: 6,360

Creating Excel XLL based user-defined functions (UDF) in C# or VB.NET
Creating Excel XLL based user-defined functions (UDF) in C# or VB.NET

See how to create custom UDFs: Excel Automation Add-ins and XLL add-ins in Visual Studio using C# or VB.NET. Find more info at http://add-in-express.com/excel hr / bClosed Caption:/b user-defined functions or Utes our custom functions in Excel that allowed the end-user utilizing within their formulas inside at the Excel workbooks without express you have two ways of creating Utes the first history an Excel automation atbr ...
Video Length: 16:27
Uploaded By: Add-in Express
View Count: 4,955

Copyright © 2025, Ivertech. All rights reserved.