Converting the IhRawData Value Column From Variant to Float
Procedure
- After you have added the Historian OLE DB Provider database connection and added Historian database tables, select the Fields tab in the Standard Report Expert.The following figure shows how the Fields tab should appear.
- Click the Formula button.The Formula Name dialog box appears.
- Enter a name.You can enter any name that you want.The Formula Editor appears.Note: You can also access the Formula Editor by selecting Field Object from the Insert menu. This opens the Field Explorer. Right-click the formula fields and select New from the pop-up menu.
- Enter the following text in the Formula field:ifnumerictext({ihRawData.Value}) then cdbl({ihRawData.Value}) else 0The Formula Editor should look similar to the following figure.
- Click the Save button.
- Use the formula as a normal numeric column instead of the Value column in the report.