Jump 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.

Calculating Across A TO Group

Featured Replies

Hi all. I have been trying to pull a percentage using values from 2 different tables across a TO group. It seems like it shouldn't be too complicated but I have run into a snag. I am looking for the pecent of sales a salesperson sold from a group of leads called. I have provided an image of the TO group in question. It has been stripped down to just the TOs in question.

From a layout based on the Employees 2 TO I have been able to pull in the number of leads a salesman called with a field in the Leads table that gets the found Count, filtered through the relationship from the Leads 2 TO. In the same way I have been able to get a found count of sales from the Tickets table (a ticket is an invoice) filtered through from the Tickets 2 TO.

So it seems that I should be able to get a percent of sales with a calculation field in Employees with a calc such as:

Tickets 2::zfound / Leads 2::zfound

(zfound is a maintanance field I add to every table that gets the found count)

However, when I try to create a calculation field in Employees, the Leads 2 and Tickets 2 TOs are listed in the specify Calculation dialog box as unrelated tables and can't be refferenced in a calculation.

Questions:

Why are these TOs not recognised as related?

How can I achieve my goal?

Thanks for any help :P

Relationships.jpg

Edited by Guest

Caveat: I did not fully understand your explanation, and my remarks are targeted at selected snippets only:

I have been able to pull in the number of leads a salesman called with a field in the Leads table that gets the found Count, filtered through the relationship

That's not possible. A relationship ignores any found set.

when I try to create a calculation field in Employees, the Leads 2 and Tickets 2 TOs are listed in the specify Calculation dialog box as unrelated tables and can't be refferenced in a calculation.

I believe you need to select 'Evaluate this calculation from the context of: [ Employees 2 ]' - since Leads 2 and Tickets 2 are related only to this TO.

  • Author

Hi Comment. The evaluate from did the trick.

As for the found count thing. I have a field (in every table actually) called zfound with a calculation of Get(FoundCount). I don't remember where I first heard the technique but when accessing the field through a filtered relationship it returns the number of filtered records. I remember reading about this as an alternative to the Count() function. It is supose to be faster.

Thanks again :P

I remember reading about this as an alternative to the Count() function. It is supose to be faster.

Something I've picked up (from either here or TechNet) is to have an unstored Get( RecordNumber ) field and use Last() function on it through the relationship to get the "count" of related records.

Create an account or sign in to comment

Important Information

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

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.