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
Solved

Group Name formula

Posted on 2008-10-10
4
339 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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