Search Community
- Force.com Discussion Boards
- :
- Salesforce User Discussions
- :
- Product Discussion
- :
- Report formula - percentage based on number of row...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-13-2006 08:33 AM
I have a simple summary report (with details hidden) that looks like thisOverall Rating Number: 1 (9 records)
Overall Rating Number: 2 (7 records)
Overall Rating Number: 3 (6 records)
Overall Rating Number: 4 (13 records)
Grand Totals (35 records)
Is there a way to display percentages for each line to display the following (or something similar):
Overall Rating Number: 1 (9 records) 26%
Overall Rating Number: 2 (7 records) 20%
Overall Rating Number: 3 (6 records) 17%
Overall Rating Number: 4 (13 records) 37%
Grand Totals (35 records)
I have not been able to create a summary formula that can do this. it would look something like this:
Number_of_rows_summarized / Total_rows_returned_by_report
Any ideas?
wkuehler
Solved! Go to Solution.
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-26-2006 09:32 PM
I think this is what you're asking for - can you create a custom formula on that report, with a format like this:
{!Lead.Lead_Rating__cUM} / {!RowCount}
and then group by Lead Rating? You could get really fancy and make it a matrix report and then drill across by some other valuable criteria.
Let me know if that works for you (and make sure you change the "Lead_Rating" to whatever your field's name is and on the right object).
Best,
Chris
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-29-2006 07:10 PM
Chris
That formula takes the numeric value sum of each row and divides it by the number of records for that row. What I need is the number of records for each row divided by the total number of records returned.
Any ideas?
-wkuehler
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-29-2006 09:05 PM
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-30-2006 02:52 PM
{rowcount} / {returned_rows_total}
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-20-2007 02:28 AM
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-19-2007 05:22 PM
Overall Rating Number: 2 (7 records) 20%
Overall Rating Number: 3 (6 records) 17%
Overall Rating Number: 4 (13 records) 37%
Grand Totals (35 records)
Region: North America (1 record)
Region: Latin America (1 record)
Region: Asia (1 record)
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-24-2008 04:38 PM
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-28-2008 12:59 PM
Thank you for posting this -- I was able to use it. One caveat, though -- you are only allowed to create 5 custom summary formulas on an individual report, so if your picklist has greater than 5 choices, you will not be able to include them all.
Re: Report formula - percentage based on number of rows returned by report
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-08-2010 01:43 PM
Here's a more generic way of calculating percentages in a report summary formula for N number of categories
1. Create a custom formula number field on the object, e.g. "Record Exists", set equal to 1 (no conditions in the formula)
2. Use this summary formula in the report:
Object__c.Record_Exists__c

