RATIO_TO_REPORT() OVER () —- % of Total Function alternative

A workaround for this scenario is to use the RATIO_TO_REPORT() OVER () formula in the Formula column, and then select one of the Round functions from the Function drop down menu.

The steps below show how to create a Transaction Saved Search to show the total sales per customer and the percentage related to the total sales of the company. The search results include both scenarios described before for the purpose of comparison.

  1. Navigate to Lists > Search > Saved Searches > New
  2. Select Transaction
  3. Enter Search Title
  4. Under the Criteria tab > Standard subtab, add these two filters:
  5. Type = is any of Cash Sale, Invoice
  6. Main Line = is true
  7. Under the Results tab > Columns subtab, add these four fields:
  8. Field = Customer (Main Line)Fields… Name | Summary Type = Group
  9. Field = Amount | Summary Type = Sum
  10. Field = Formula (Percent) | Summary Type = Sum
  11. Function = Round to Hundreds
  12. Formula = RATIO_TO_REPORT(sum({‌amount})) OVER ()
  13. Field = Amount | Summary Type = Sum
  14. Function = % of Total
  15. Click Save or Save and Run

Leave a comment

Your email address will not be published. Required fields are marked *