Solved

Group Name formula

Posted on 2008-10-10
4
334 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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now