2 of 2 people found this helpful
In the event frame template inside the AF Library, you can create attribute there. Once you have the attribute, right click on your attribute > Limits...
After that, you can set the Data Reference column to be Formula, then click on the Settings... to bring up the Formula Configuration. If this is unclear, please see the screenshot below.
For programming with AF SDK, you can refer to New Attributes Traits post for traits, Configure a Notification via AF SDK for PI Notifications, Creating Asset-Based Analytics Programmatically (Rollup and Event Frame Generation) and Creating and viewing Asset-based analytics programmatically for PI Analysis Service.