Clean Power Research Support Center logo

PowerClerk Support Center

Project Pages
Project Admin Page
Locating the Project Admin Page
How to Use the Project Admin page
Project View/Edit Page
Locating the Project View/Edit Page
How to use the Project View/Edit Page
Program Design Menu
Automations
Questions to Ask
Locating the Automations feature
How to create an Automation
Automation Triggers
Automation Action Rules
Validation Rules
Scheduled Triggers
Troubleshooting Automations
FAQs
Channels
Questions to ask yourself
Locating the Channels feature
What are Channels?
Types of Channels
Channel Type: Mark as Child
Channel Type: Make Successor
Channel Type: Create Related Project
Channel Type: Submit Related Project
Channel Type: Project Lookup
How to create a Channel
Channel Signals and Automations
Updating Channel Configurations
Using Channels in Test Environments
FAQs
Communications
Questions to ask yourself
Locating the Communications feature
Creating Communication templates
Finding Data Tags
Images in Communications
Sending Mass Communications
Project Attachments and Content Library Items
Smart Templates
Upgrading to Smart Templates
Upgrading when a Test Environment Exists
Broken Template Tags
Examples of Broken Template Tags
PowerClerk Mass Communication Policy
FAQs
Connections
Questions to ask yourself
Locating the Connections feature
What are Connections
How to Create a Web Connector
Define the Web Connector
Connecting, Testing, and Enabling the Web Connector
Creating a Web Connector Configuration
Utilizing Connections on PowerClerk
Maintaining and Editing the Web Connector
Web Connector Payload Type Format
Retrieving Project Information via Built in Fields
Error Handling
Custom List Lookup
Create a Custom List Lookup
Utilizing Custom List Lookup
FAQs
Content Library
Questions to ask yourself
Locating the Content Library feature
Uploading content to the Content Library
Use with Communication Templates
Use for Front Page content
FAQs
Custom API IDs
Questions to Ask
Locating the Custom API IDs feature
How to edit a Custom API ID
FAQs
Data Fields
Questions to ask yourself
Locating the Data Fields feature
Viewing Available Data Fields
Managing Data Fields
Attachment Data Fields
Referencing Data Fields with Template Tags
Text Validation Rules
Custom Lists and Data Field Groups
Table form element
Enabling PV + Battery Element
FAQs
Deadlines
Questions to ask yourself
Locating the Deadlines feature
What are Deadlines
How to Create a Deadline
Deadline Automation Action Rules
Utilizing Project Admin Page for Deadlines
Communication Templates for Deadlines
Deadline Set/Satisfy Options
Program-Wide Deadline Actions
Reporting on Deadlines
Deadlines in Project List Columns
FAQs
Document Templates
Questions to ask yourself
Locating the Document Templates feature
How to define a new Template
Configuring Excel Files using PowerClerk Data Field Tags
How to define a new Merged Document
eSignatures
DocuSign template tags
Mapping eSignature tags
Smart Templates
FAQs
eSignature Envelopes
Questions to Ask
Locating the eSignature Feature
What are eSignature Envelopes?
eSignature Checklist: The Prerequisites to create a new Envelope
How to set up Advanced eSignature Envelopes Step-by-Step
How to add an eSignature Envelope to a form
eSignature Automation Trigger
Viewing Completed eSignature Envelopes
Resending eSignature Notifications
Canceling eSignatures
FAQs
Forms
Questions to ask yourself
Locating the Forms feature
How to create and edit Forms
Adding data fields
Form Versions and Draft Forms
Configuring Forms
Form Field Elements
Field Properties
Conditional Visibility
Sensitive Data Fields
Location Form Element
Address Autocomplete
Exporting a Form to Excel
VersaForms
FAQs
Formulas and Calculated Fields
Questions to ask yourself
Locating the Formulas feature
How to work with Formulas and Calculated Fields
Formula Data Dictionary
Dynamic Formula References
Rules of Formula References
Advanced Visibility Rules
Video Guides: Formulas
FAQs
Front Page
Questions to ask yourself
Locating the Front Page feature
How to edit the Front Page
FAQs
Incentive Design
Questions to ask yourself
Locating the Incentive Design feature
How to create and edit Incentive Designs
Incentive Options for One-Time Incentive Type
Incentive Design Options
FAQs
Milestones
Questions to ask yourself
Locating the Milestones feature
How to define a Milestone
FAQs
Project List Columns
Questions to ask yourself
Locating the Project List Columns feature
How to use Project List Columns
FAQs
Project Summary
Questions to ask yourself
Locating the Project Summary feature
How to edit the Project Summary
FAQs
Project Views
Questions to ask yourself
Locating the Project Views feature
How to edit Project Views
FAQs
Roles
Questions to ask yourself
Locating the Roles feature
How to create and edit a Role
Access Groups
Access Groups and Automations
Access Groups and Data Imports
Access Groups and Reports
FAQs
Themes
Overview
How Themes are Stored in PowerClerk
Creating a Theme
PowerClerk Theme Example
Workflow
Questions to ask yourself
Locating the Workflow feature
How to create and edit the Workflow
Transitions
Workflow Example Overview
FAQs
Admin Menu
Announcements
Locating the Announcements feature
Creating an Announcement
Triggering an Announcement
Managing Announcements Topic List
Managing Announcement Topic Enrollment Via User Account
Prerequisites for Using Announcements
Business Days
Questions to ask yourself
Locating the Business Days feature
Setting up Business Days
FAQs
Dashboards
Questions to ask yourself
Locating the Dashboards feature
How to create widgets in your Dashboard
Other Dashboard Actions
Data Import
Questions to ask yourself
Locating the Data Import feature
Steps to Complete a Data Import
Data Import Configurations
Column Header Types
Automatic Data Imports via SFTP
Revert Data Imports
FAQs
Duplicate Check
Questions to ask yourself
Locating the Duplicate Check feature
How to use Duplicate Checks
FAQs
ePayment History
Locating the ePayments History feature
Using ePayment History
ePayment Management
Locating the ePayments Management feature
What is ePayment Management
Set Up Stripe ePayments
Configuring Transaction Fees
Configuring Payment Methods Availability
Import Projects
Questions to ask yourself
Locating the Import Projects feature
How to Import Projects
Managing Data Field Mappings
Copying Projects
Creating Projects
FAQs
Operation Status
FAQs
Questions to ask yourself
How to use the Operation Status feature
Locating the Operation Status feature
Program Info
Project Inquiry
Locating the Project Inquiry feature
How to edit the Project Inquiry Settings
Automating Communications for Project Inquires
Inquiry Summary
Questions to ask yourself
Locating the Program Info feature
How to edit the Program Info menu
Notification Banners
Usage Info
FAQs
Program Statistics
Questions to ask yourself
Locating the Program Statistics feature
FAQs
How to use Program Statistics
Reports
Questions to ask yourself
Locating the Reports feature
How to setup Reports
Multi-instance reports
Sharing Reports
Integrate scheduled Reports
Cross-Program Reports
Handling Sensitive Data in Reports
Viewing Report Failures
Maximum Number of Columns Allowed in a Report
FAQs
User Administration
Questions to ask yourself
Locating the User Administration feature
How to work with User Administration
FAQs
Test Environment
What are Test Environments
Locating the Test Environment feature
How to Open a Test Environment
Questions to ask yourself
Test Environment Behavior
PowerClerk Sandbox Instance
FAQs
Tools Menu
My Account
Questions to Ask
Locating the My Account feature
How to use the My Account feature
Lockouts and Password Resets
Setting up Multi-Factor Authentication
Missing, lost, or stolen mobile devices: resetting Multi-Factor Authentication
Disabling Multi-Factor Authentication
Recovery Guidelines for MFA Administrators
FAQs
FormSense
Questions to Ask
Locating the FormSense feature
How to use the FormSense feature
FAQs
Grant Access
Project Grants vs Broad Grants (i.e. "Grant Access")
Questions to Ask
Locating the Project Grant feature
Locating the Grant Access feature
How to use the Grant Access feature
FAQs
Integration Guides & API
ePayments
Questions to ask yourself
How to Integrate with ePayment Provider
How to Set up ePayments on a Form
Managing ePayments
Reporting on ePayments
ePayments in Test Environments
How to add ePayments
FAQ
PowerClerk API
Integrating with the PowerClerk API
Questions to Ask
What is the PowerClerk API?
API Documentation for Developers
What can the PowerClerk API do?
Single Sign On (SSO)
Questions to Ask
PowerClerk SSO Configuration
Entra ID Configuration (SAML)
Entra ID Configuration (OIDC)
Okta IDP Configuration (SAML)
SP Configuration
SSO for multiple programs
IDP Configuration Troubleshooting
FAQs
Integration Guide 001: How to configure an ArcGIS Connector – ArcGIS Implementation
Integration Guide 002: How to configure Electric Power Research Institute’s (EPRI) DRIVE Connect software with PowerClerk
PowerClerk Video Guides
Setting up Roll-up Reports
New User Video Guide
Configuring Forms
Roles and User Administration
Setting up Business Days
Formulas and Advanced Visibility Rules
Visualize Workflows
Dashboards
FormSense
Milestones
ArcGIS
Project Summary
Automation with Formulas in Action Rules
API
Edit Forms - Tutorial #1
SFTP Automatic Data Import
Calculated Fields
Web Connector Setup
Edit Forms - Tutorial #2
Build A Formula
Help Articles
How to Submit a Support Ticket
Understanding Your PowerClerk Program Design
Workflow
Forms
Automations
Communications
Data Fields
Deadlines
PowerClerk Program Launch
PowerClerk User Group Sessions (UGS)
Learning Management System (LMS)
Join us for Reflow!
NEW: PowerClerk Certifications

Formulas and Calculated Fields

Use Formulas to perform calculations in Forms that assist applicants and increase data accuracy.

Formulas feature


Questions to ask yourself about Formulas:

Are there parts of the program application where providing in-form calculations would increase the accuracy of data inputs (like showing an applicant their long-term average PV energy output)?

Are there Data Fields that need to be calculated or created for certain Reports or Dashboards?

Which Forms do require calculations that can be handled by Formulas?
Should a Formula result trigger an Automation?
Do you have elements on forms that should only be displayed based on a Formula result?

Locating the Formulas feature

Anyone in a Role with the Edit Formulas privilege can edit Formulas by opening the PROGRAM DESIGN menu and clicking on Formulas.
 

Locating the Formulas feature

Figure 1: PROGRAM DESIGN >> Formulas

 

How to work with Formulas and Calculated Fields

The Formulas feature has been designed to enable operations to be performed automatically by PowerClerk by using references to Data Fields and constants. These can be used to create logical conditions such as to selectively run Automation action rules, create Validation rules for Automations, create Conditional Visibility rules, and much more. An intuitive drag-and-drop Formula editor is used to configure Formulas.

Calculated Fields are different than Formulas in that they are discreet Data Fields. This means that unlike Formulas, they house the data result of the Formula as a part of the project record. This allows the calculated results to be displayed real-time on Forms, to be used in Project List Columns, or to run local calculations for the purpose of more detailed Reporting.
 
Formulas can perform numeric operations (E.g. addition, subtraction, multiplication, division, etc.), Boolean operations (greater than, less than, is equal to, is same as, is not same as, etc.) on numeric data fields, and can also perform Boolean operations (is equal to, is not) on Boolean data fields (true/false). PowerClerk can also run calculations that result in a Date data field and run specific operations on Multi-Instance data fields such as tables. A few examples have been provided in Figure 2 and Figure 3 below. The top-right of the formula editor will tell you the data type that the formula result will be in.
 

Example Numeric Formula

Figure 2: Example Numeric Formula

 

Example Boolean Formula

Figure 3: Example Boolean Formula


Once a Formula has been saved, you can create a Calculated Field (Fig. 4) to use on your Forms, as Project List Columns, or in a Report. The definition of a Calculated Field cannot be edited. Additionally, any changes to the original formula after the Calculated Field’s creation will not be reflected in the Calculated Field, and a new one will need to be created. If editing a calculated field is needed, you must select “Copy to New Formula”, edit the newly created formula, and then create a new Calculated Field from the newly edited formula.
 
In the example in Figure 5 below, the Calculated Field created from the Formula comparing Estimated Annual Production to Historical Annual Consumption (kWh) designed in Figure 3 above populates the result automatically in the Form and updates automatically as data field values change.
 

Example Boolean Formula

Figure 4: Example Boolean Formula

 

Calculated Field element in a Form

Figure 5: Calculated Field element in a Form

 
Formulas can also be used within Automations to trigger Action Rules as shown in Figure 6 below:
 

Formulas in Automations

Figure 6: Formulas in Automations

 
To see where all of your formulas or calculated fields have been referenced throughout the program, navigate to Formulas in the Program Design menu and use the Generate All Formula References or Generate All Calculated Field References button at the bottom of the page. This generates and downloads a CSV file of all Formulas or Calculated Fields and shows which Automation Rules, Forms, and Project List Columns contain references, or where Template Tags referring to the Calculated Field are used in the program. In the case of Formulas, it also shows where a Formula is referenced within another Formula.
 
 

Formula Data Dictionary

 

Supported Data Types (Input):
Color Data Type Reference
Blue accepts Numeric inputs Blue accepts Numeric inputs Numeric constant or Data Field Reference types (integer, decimal, price)
Orange accepts Boolean inputs Orange accepts Boolean inputs True, False, (Multiple) Choice, Drop-down List, Attachment Approval/Rejection or Data Field references types which return a True/False result (Checkbox, Boolean Calculated Field Result)
Green accepts Text inputs Green accepts Text inputs Text String or Text Data Field reference types (Single Line Text, Paragraph Text, Email, or Contact Data Fields)
Purple accepts Date inputs Purple accepts Date inputs Date or Date Field reference
Black accepts Dynamic inputs Black accepts Dynamic inputs Formula reference types (Numeric, Boolean/Relational, Text, Date)
Additionally, inputs can also accept formula operations that match their respective data types.

 

Supported Formula Operations (Output):
Numeric Operations
(Returns a Numeric result)
Operator Name Description
Addition Addition Adds two values
Subtraction Subtraction Subtracts two values
Multiplication Multiplication Multiplies two values
Division Division Divides two values
Constant Constant Can contain any Numeric value (defined within formula)
Data Field Reference Can reference any Numeric Data Field
If, Then, Else Compares sets of data and tests the results:
     If the results are true, the THEN instructions are taken
     If not, the ELSE instructions are taken e.g. If (A = TRUE), Then B, Else C
Min Min Returns the smallest value from the two Numeric values provided e.g. (1,2) = 1
Max Max Returns the largest value from the two Numeric values provided e.g. (1,2) = 2
Exponent Exponent Represents how many times a Numeric value is multiplied by itself
e.g. (2^5) = 2 x 2 x 2 x 2 x 2 = 32
Log Log e.g. Log (1000) = 3 (10 x 10 x 10 = 10^3 = 1,000)
Round Round Rounds provided field to the number of decimal places configured
Days Between Days Between Returns the difference between two provided date fields

 
 

Relational Formula Operations
(Subset of Boolean Formula Operations that tests a relationship and returns a True/False result)
Operator Name Description
Equal To Numeric
Equal to Text
Equal To Accepts a Numeric or Text input. “Ignore Case” is configurable for Text Equal To operators, ignoring capitalization and undercase within inputs.
Not Equal To Numeric
Not Equal to Text
Not Equal To Accepts a Numeric or Text input
Greater Than Greater Than Accepts a Numeric input
Less Than Less Than Accepts a Numeric input
Greater Than or Equal To Greater Than or Equal To Accepts a Numeric input
Less Than or Equal To Less Than or Equal To Accepts a Numeric input
Is Before/After Is Before/After Accepts a Date input

 
 

Logical Formula Operations
(Returns a True/False result)
Operator Name Description
And And True if and only if both conditions are true
Or Or True if either condition is true (or if both are true)
Not Not Changes true to false, and false to true
True True Constant of true
False False Constant of false
Boolean Data Field Reference References a Checkbox Data Field or Boolean formula result
Is Attachment Approved Reference Determines if an Attachment is approved by an administrator
Is Attachment Approved Reference Determines if an Attachment is rejected by an administrator
Attachment or Data Field Is Empty Determines if an Attachment or Data Field is Empty
Choice Data Field Reference Equals Choice References a Multiple Choice Data Field & looks to see if the Data Field is equal to the designated choice in the argument
Choice Data Field Reference Does Not Equal Choice References a Multiple Choice Data Field & looks for if the Data Field is not equal to the designated choice in the argument
Is Envelope Completed Determines if an eSignature Envelope is completed
Current Status Determines if a project’s current status matches the specified status

 
 

Text Formula Operations
(Returns a Text result except for the Length of Operation, which returns a Numeric result)
Operator Description
Text References any Text value entered
Text Data Field Reference References Single Line Text, Paragraph Text, Email, or Contact Data Fields
If Then Else Compares Boolean Data field or Formula result and tests the Text results
     If the results are true, the THEN instructions are taken
     If not, the ELSE instructions are taken e.g. If (A = TRUE), Then B, Else C
Length of Determines the length of a given Text value and returns a Numeric value
e.g. Length of (PowerClerk) = 10
Concatenate Combines two Text values and returns a concatenated Text string
e.g. “potat” + “oes” = “potatoes”
Project Number Enables referencing the respective project number (e.g. “CPR-00123”) within a Formula
Text() Reference non-string Data Field types such as Numeric, Boolean,
Choice, and Date Data Fields as text representations
enabling usage of non-string Data Fields in context of any of the other Text Formula
Operators (e.g. IF/THEN/ELSE, LENGTH OF(), CONCATENATE)

 
 

Date Formula Operations
(Returns a Date result)
Operator Description
Date References a designated Date constant
Date Data Field Reference References a Date Data Field
Time before/after References a Numeric value before/after a Date or Date Data Field reference e.g. (7) days after (Date)
Time: If Then Else References a Boolean Data Field or Formula result and tests the Date results.
If the results are true, the THEN instructions are taken
If not, the ELSE instructions are taken e.g. If (A = TRUE), Then B, Else C

 
 

Formula Reference Operations
(Returns a result based on the primary operation)
Operator Description
Formula Reference Place a Formula reference within any other Formula
operator to avoid having to create multiple
layers of complex Formulas:
Formula Reference

 
 

Multi-Instance Formula Operators
(validation of multi-instance fields to ensure all field instances adhere to the desired criteria)
Operator Description
All Match Returns Boolean True if all instance values across the entire multi-instance field match, or False if not.
Value of All Match If all values across the multi-instance field match, returns that exact single value (whether that value is Numeric, Text, Boolean, or Date).
Sum All Returns the summation of all values across a multi-instance field of Numeric data type.
Count True Provides an integer value (e.g. 1, 2, or 3, etc.) based on the number of Boolean (e.g. Checkbox) “True” values are found across the multi-instance field.
Count Matching Text Provides an integer value (e.g. 1, 2, or 3, etc.) based on the number of matching Text (e.g. Single Line Text) values that are found across the multi-instance field.

 
 

Dynamic Formula References

Use Dynamic Formula References to simplify complex Formula expressions by referencing existing Formulas as components (or Formula segments) of the larger Formula. My defining simple formulas first, these can then be “nested” into a larger formula to create more complex definitions.
 
To reference a Formula within another Formula, please use the Formula Reference operand that is listed under the “Dynamic” section in the Formula editor:
 

Dynamic Formula References

Figure 7: Dynamic Formula References

 
The Dynamic Formula Reference operator itself is not designated to return a Numerical, Boolean, Text, or Date result. Once a Dynamic Formula Reference operator is placed into a Formula container, the operator will turn into the respective data type. Then, a list of the available Formula Reference Expressions (matching the respective data type) will be displayed under the Properties tab on the right-hand side of the editor.
 
Please Note: Formulas can also reference Calculated Fields. Currently only one level of reference is supported (i.e. you cannot reference Calculated Fields that reference other Calculated Fields).
 

Adding a Formula Reference

Figure 7a: Adding a Formula Reference determines data type

Formula Reference Types

Figure 7b: Dynamic Formula Reference data types


 

Rules of Formula References
  1. Incomplete Formulas cannot be referenced.
     

    Formula Reference Rule 1

    Figure 8a: Formula Reference Rule 1

     

  2. You cannot create circular Formula References.
     

    Formula Reference Rule 2

    Figure 8b: Formula Reference Rule 2

     

  3. A Formula Reference cannot be the only component of a Formula.
     

    Formula Reference Rule 3

    Figure 8c: Formula Reference Rule 3

     

 
Completed Formulas that incorporate Dynamic Formula References may be used to create Calculated Fields. Please note: Once the Calculated Field has been created, any Formula Reference is fully resolved into the Calculated Field and indistinguishable from other Formula components.
 
When the Calculated Field is included on a Form, and configured to “Show Details” (as shown in Figure 9), each individual component of the Formula will be displayed as any prior Formula References have been flattened into the Calculated Field.
 

Formula Reference

Figure 9a: Formula showing the Formula Reference

Formula Reference

Figure 9b: Calculated Field as displayed on a Form without any Formula References any longer

 

Advanced Visibility Rules

To create an advanced visibility rule (see Forms), start by defining a formula that returns a Boolean result. This formula can then be used to establish the Advanced Visibility Rule.
 
Users can link a field element’s Advanced Visibility Rule to the source Formula. The source formula is the original version used in the rule and will reflect any updates made to it. When a source Formula is updated, the user will have the option to update all linked Advanced Visibility Rules with a single button click.
 
Note: To begin using this feature, existing Advanced Visibility Rules must be manually linked the first time. PowerClerk will create this link for all Advanced Visibility Rules going forward.
 
How to Link Advanced Visibility Rules
To establish a connection between a formula used as an advanced visibility rule and the form it’s applied to, the formula must be linked to the source formula. A warning appears at the top of the Form Editor in forms containing unlinked Advanced Visibility Rules. This alert contains a button, “Link Advanced Visibility Rules”, to allows users to create the links to the source Formulas where PowerClerk will attempt to match up formulas automatically, see figure below.
 

Linked Advanced Visibility Warning

Figure 10: Linked Advanced Visibility Warning

 
Users can choose whether to accept or reject each automatic match. If a match is rejected, the Advanced Visibility Rule can be manually linked by replacing it with the appropriate formula.
 
When the confidence level is ‘High’, the checkbox is selected automatically. For ‘Medium’ or ‘Low’ confidence levels, the checkbox remains unselected by default.
 

Linking Advanced Visibility Rules

Figure 11: Linking Advanced Visibility Rules

 
Link in the Form Editor
When a field’s Advanced Visibility Rule is linked to a source Formula and the Form is Published to save these links, the user will now have a clickable link to the Formula within the Form Editor, see figure below.
 
In the example below, the link appears next to the text ‘Snapshot of formula.’ The clickable link is labeled ‘Non-Solar Inverter Generator – DER 1.
 

Link to source formula Before and After

Figure 12: Link to source formula Before and After

 
Updating a Formula and linked Advanced Visibility Rules
When a formula is updated on the formula page, the ‘Replace Visibility Rules’ button in the Formula list should be used. This button appears for Logical Formulas (indicated by the ‘Type’ column header) and enables a lookup of any forms that have linked Advanced Visibility Rules to the selected formula.
 
For example, if the user wants to view any Advanced Visibility rules for the formula “Non-Solar Inverter Generator – DER 1”, the user will click the drop-down arrows and select Replace Visibility Rules.
 

Replace Visibility Rules button

Figure 13a: Replace Visibility Rules Button

 
If none of those forms have drafts, the user can click the “Start Replacement” button. This will publish new versions of the form with the Advanced Visibility Rules updated and an updated clickable link in the Form Editor, see figure below.
 

Start Replacement Button

Figure 13b: Start Replacement Button

 
After selecting “Start Replacement”, the Result will display “Success”, see Figure A below. To avoid creating visibility loops, PowerClerk skips the replacement if the form validation fails – see Figure B below.
 

Replacement Successful

Figure 14a: Replacement Successful
Replacement Skipped

Figure 14b: Replacement Skipped

 

Video Guides

Build A Formula

This video guide will demonstrate how to build a formula through our visual design surface. Use PowerClerk to calculate key data fields that streamline your administrator workflow.

 

Automation with Formulas in Action Rules

The following video will present you the concept of triggering Automations based on a Formula’s result:

 

Formulas and Advanced Visibility Rules

To control the Conditional Visibility of From fields you can use Formula logic to adapt the display of your Forms to a vast variety of business scenarios:

 

Calculated Fields

Display the results of Formula calculations on Forms, Communications, Document Templates, and Reports. This video demonstrates how to use Calculated Fields within your program:

 
A full list of all Video Guides can also be found here.

FAQs

Have additional questions? Contact us to nominate your FAQ and help others find answers to your own questions concerning this feature.

Create A Support Ticket

Not finding your answer here?  Submit a question to our support team at the PowerClerk Ticket System and leverage the PowerClerk team’s expertise.