Solved

Group Name formula

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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…
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 …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

770 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