Solved

Group Name formula

Posted on 2008-10-10
4
340 Views
Last Modified: 2011-10-19
I need a formula that will look at a table (Problemsummarym1.Assignment) and based on the information in the table will come up with a group name.  For example, if the assignment information is Boston or Atlanta it will come back with a group name of East and if the assignment information is Los Angeles or Seattle it will come back with a group name of West.  

I also need a sub-total formula that will total the information per group (I am using formulas to get the totals per assignment's category).  I know this is probably confusing so I have attached a screenshot of the information I am gathering.

The tables I am using are:
Problemsummarym1.assignment
Problemsummarym1.category.
Group-Formula.jpg
0
Comment
Question by:SAW56
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 250 total points
ID: 22688407
Is the East/West value stored in the table?  If so, group by that value first, then use the city for the second group.  Add your summary formulas in the group footers.
If East or West is not in the table, use a switch formula to hard-code the values

Create a formula with this and then use the formula for your top level group, with the city as the second group
switch({City} IN ["Atlanta", "Boston"], "East", {City} IN ["Los Angeles", "Seattle"], "West")

0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 22688457
You can create a formula to separate the cities into groups.

Do you have any fields that might help in determining the region.

If not then something like

If {City} in ['Atlanta', 'Boston', ...] then
    'East'
Else If {City} in ['Los Angeles', 'Seattle', ...] then
    'West'
Else If {City} in [...] then
    'Midwest'

etc

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question