Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Percentage Calculation of Total Records with a complete status

Featured Replies

  • Newbies

I have a table whose records are shown as portal.  One of the fields is populated with a "Yes" or "No" and that depends on whether it is complete or not.  I'd like to have a separate field that gives me the percentage of completed tasks (Number of records with a Yes / Total Number of Records * 100).    Thanks for the help.

Try

PatternCount ( List ( otherTable::completed ) ; "Yes" ) / Count ( otherTable::primaryKey) * 100 

Having said that, it may be better to define the "completed” field as number field, and use a checkbox with a value list of 1, where a check (value of 1) indicates the task(?) is completed. Then your calculation is 

Sum ( otherTable::completed? ) / Count ( otherTable::primaryKey) * 100 
  • Author
  • Newbies

Great.  Thanks for your help.  I had done something like this and was able to get it.  Now just have to figure how to get the calculation to be applied every time the finished field is set from yes to no or vice versa..... I tried doing it with ExecuteSQL as follows:

 

ExecuteSQL ("SELECT COUNT (Finished) FROM Job_History_Task where Finished='Yes'" ; "" ; "") / ExecuteSQL ("SELECT COUNT (RecordID) FROM Job_History_Task" ; "" ; "")  *  "100"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.