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.

How to calc % of a Found Set?

Featured Replies

I have a product layout that summarizes results of a found set based on a "ProductType" field. I would like that layout to also reflect for each product type the percentage of the total in that found set of sales.

For example, with what I have now, I can search for any date range of sales and then get results like this:

Food 45 $5300

Drinks 25 $2700

Cutlery 30 $1500

Then trailing grand summary part gives total items and total dollars. I'd like to display % of items and dollars for each product type, relative to the found set.

Do you mean you want the % of the product type over the total found set?

Like Food is 45 and the % will be 45/100, 45%, 5300/9500, 55.79%.

If yes then the solution will be

create a calculation field, set it as ??? total_items/sum_items*100

and create another one for dollars.

You also can use Round function to set it to 2 decimal.

Regards,

Henry

  • Author

Forgot to mention an added twist. In this layout, I'm actually looking to compare the sub-summary of a field with the grand summary of the same field.

So I have one field called TotalPrice which is a summary field of Price. So for the layout, on the sub-summary each product type displays TotalPrice, which is the total price for that product type when sorted. Then, I have the grand summary of TotalPrice at the bottom. So what I'm looking for is the following, as a percentage:

Sub-summary of TotalPrice / Grand Summary of TotalPrice

  • Author

Oh, thanks! I'll check that out.

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.