Find average at group level of multiple grouped fields

Can this not be done in Crystal
I am trying to total and average at the group level like this:
((Sum ({@Unscheduled}, {@monthName}))/(Sum ({@total}, {@monthName}))*100)
--  {@Unscheduled} =           if ({Table_Name.status} = "Unscheduled" and not({Table_Name.StartDate}>= currentdate))
then 1
I am grouping by month. The formula {@Unscheduled} gave me the total for each month of that ticket type and I was able to sum 3 other ticket types and sum total of all ticket types. But when I try to find the average of each with this
((Sum ({@Unscheduled}, {@monthName}))/(Sum ({@total}, {@monthName}))*100)
I get an error saying division canu2019t be done with zero, but there are no zeros  when shown separately on the report.
I guess my question is Can you not perform calculations at the group level with multiple fields.
Any insight would be appreciated and I apologize if this is somewhat incoherent.

You could do this like this, I think:
If Sum ({@total}, {@monthName}) = 0 Then
    0
Else
    Sum ({@Unscheduled}, {@monthName}) / Sum ({@total}, {@monthName}) * 100;

Similar Messages

  • Group number for multiple groups

    I have a report that has two groups. I would like to get the total number of groups in Group 2 under each group of Group 1. I know there is a Group Number field in the special fields but that will only give me the group number of Group 2 for the whole report. To clarify assuming Group 1=A and Group 2=B:
    A-1
         B-1
         B-2
         B-3
    A-2
         B-1
         B-2

    HI,
    If i understood exactly, You want to display Number of B groups  in group A's Footer. Like
    A-1
    B-1
    B-2
    B-3
    Total No Of B:3
    A-2
    B-1
    B-2
    Total No Of B:2
    Right?!!
    For this You need to write 3 formulas,
    1, First Formula,
    Shared numberVar Num:=0;
    Drag and drop this formula field into GroupA header. And Suppress it
    2,Second formula,
    Shared numberVar Num:=Num+1;
    Num
    Drag and drop this formula field into GroupB header. And Suppress it
    3,Third one,
    shared numberVar Num;
    Num;
    Drag and drop this formula field into GroupA Footer With Appropriate Label(Like "Total No Of B:"). This will give you the count of B's in GroupA footer.
    Regards,
    Salah.
    Edited by: salahudheen muhammed on Oct 8, 2009 3:09 PM

  • Bug in report sorting? Sort doesn't work in last group level.

    Is this a known error? Is there documentation from Oracle about it?
    My query is a simple select from a table. I then created three group levels. Each group contains a value for sorting (up arrow next to column). However, data is not sorted by the value in the third group.
    Try:
    create table test_sort (a number, b varchar2(5), c varchar2(5));
    insert into test_sort (a, b, c) values (1, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'B', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'Z');
    insert into test_sort (a, b, c) values (1, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Y');
    insert into test_sort (a, b, c) values (2, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'A', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'X');
    Create a query tabular report with the wizard (select * from test_sort). Then make the groups: first a, then b, then c. Make sure that there is an arrow next to the values (sorting).
    The report only displays a and b values sorted.
    Edited by: user489847 on Jun 3, 2010 1:19 AM

    Hello,
    This is the normal behaviour documented here :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_col_break_order.htm
    Restrictions
    Break Order has no effect on columns that belong to the lowest group of a particular query.
    Break Order only affects columns in groups that are above the lowest child group of a query.
    You have to add an "ORDER BY" in the SQL query in order to sort the columns belonging to the "lowest group"
    Regards

  • Repeating group level headings.

    Using the table wizard, I have created a "group above" table with two levels like this:
    Group Level 1
    Group Level 2
    table_element_1 table_element_2 table_element_n
    On the first page, both group level 1 and group level 2 print. As I get subsequent group level 2 breaks, the report won't repeat level 1 so I only get Group level 2 in my heading. The output is coming out like this:
    Group Level 1
    Group Level 2
    table_element_1 table_element_2 table_element_n
    Group Level 2a
    table_element_1 table_element_2 table_element_n
    Group Level 2b
    table_element_1 table_element_2 table_element_n
    I always want to repeat group level 1 in my table heading. Is there a an xml or template command that I can use to say "always print" ?
    I'd like to see it like this:
    Group Level 1
    Group Level 2
    table_element_1 table_element_2 table_element_n
    Group Level 1
    Group Level 2a
    table_element_1 table_element_2 table_element_n
    Group Level 1
    Group Level 2b
    table_element_1 table_element_2 table_element_n

    Probably you are using tables to format it as each group.
    so in-order to display the group level element 1 ,
    You got to display that element before the second group table .
    its like
    <for-each:level1>
    <GRP-LEVEL1-ELEMENT>
    <for-each:level2>
    <GRP-LEVEL2-ELEMENT>
    ..................something else
    <end-for-each>
    <end-for-each>
    you can select the table and table properties, repeat as header row in top of every page
    pass me your template and xml to fusionDOTobjectATgmailDOTcom.
    i wll have a look at where you went wrong ;)

  • Portal Activity Reports for multiple groups

    Hi,
    Can the report display the count of users belonging to multiple groups or would it have to be created seperately for each group. I have tried to use wild cards and commas and nothing worked, the field does not accept more than one valid group name to be entered. Any ideas how to work around this without having to create a different report for different groups?
    Thanks

    Hi EAmin,
    You can only show information about users who belong to a specific group and not multiple groups. But if you want to show users in multiple groups, you can create a new group (say temp) and add the other groups to temp. Now, configure the report to display users in group temp.
    Rajiv

  • Reclassification package running on GNONE group level

    Hi all
    I am having trouble with Reclassification process where BPC is posting at GNONE group level also with GROUP CURRENCY. Reclass is executing POST CONSOLIDATION  DATA.
    Ex:
    Unit         Act       GROUP     DataSoruce                       Amount
    1000    ACT1     GNONE       UPLOAD_DATA                200
    1000    ACT1     GROUP1       UPLOAD_DATA               200   --- Post Consolidation Data
    Reclass DM for Unit - 1000
    Result:
    1000    ACT1     GNONE       UPLOAD_DATA                200
    1000    ACT1     GNONE       RECLASS                        - 200    :  Post RECLASS
    1000    ACT1     GROUP1       UPLOAD_DATA               200   --- Post Consolidation Data
    1000    ACT1     GROUP1      RECLASS                        - 200   :   Post RECLASS
    My concern is GNONE level  from Reclass Result and I am using STANDARD BPC SCRIPPT Logic
    Any Inputs are highly appreciated
    Thanks
    Ramana

    Resolved now

  • Employee group - Pay scale group - level

    Hi all,
    How can i assign Pay scale group - level for Employee group?
    Thanks,

    Hi Quang Le Vinh
    I know the solution that you can assign the values directly in IT0008 (of course T588M has to allow this).
    In the customizing "basic pay" in the personnel administration section, you have to set up the possible combinations (definition of the values).
    BR,
    Benno

  • Report grouped by time not grouping by time

    Hi All,
       I have a report with one grouping level of a Time field and have it set to ascending "for each hour". When I run the report, it doesn't group by time instead it repeats by hour (12 am - 12am and then 12 am - 12 am) as if it's grouping by a date level which I do not have in my report. Previously this report had a date group level but I have removed the date grouping from my report.
    Any suggestion why this is happening? I am using CR2008.
    Thank you in advance,

    Are you sure its grouped by hour, go into change group and check, looks like its grouped by AM/PM which is the category next to hour. You might have selected the wrong category by accident.
    Ian

  • How to determine what the current group level is?

    Post Author: mavrick5
    CA Forum: Formula
    I hope someone can help me urgently.  I have a complex report which has multiple drill down levels.  I am printing values for sales and qty at each drill down level as well as a calculation for average selling price.  What I want to do is calculate the average for the totals, not calculate the average per detail line and then calculate the average of the average (if you understand what I mean).  I have the averages calculating correctly except the total line in each drill down. How can I determine in a formula what group total I am currently printing (eg. group footer 1, group footer 2, etc.).  If I can determine which group footer I am currently printing, then I can change my calculation based upon the drill down level and the group footer. Thanks in advance.

    Post Author: yangster
    CA Forum: Formula
    think you are looking for the functiondrilldowngroupleveljust pop that into a formula and drag it into your report you'll see it counts from 0 when no drilldown has been invokedi use drilldowngoruplevel a lot to display different page headers depending on drill down level

  • ACS USER IN MULTIPLE GROUP

    Dear all
    I have an ACS running 4.2 ver.We have integrated this with AD as well.
    We had created some groups in acs for vpn and its is dynamically mapped with respective department.Its working fine know.
    We have designed wireless implementation here with dynamic vlan assignment.
    This is not working beacause user is already a member of one group in acs.I know that i can edit that group and do the wireless parameter settings.
    But i would like to know wheather the user can be a member of multiple group or user will be associated with first  group.
    If we have an option for the user to be in a multliple group how can we do this.
    If any one has faced this issue pls reply me at the earliest.
    regards
    -Danish

    Its a bit long winded, but by using multiple Network Access Policies (NAP) in ACS 4.2 you can create specific windows group mappings per NAP.
    The NAP is selected dynmically by NAS IP, or NDG or any content within the incoming RADIUS packet. So usually its possible to match on something. NAPs may also have chunks of re-usable RADIUS attributes (Shared Radius Authorisation Components) which can be used instead of setting RADIUS attributes at group level - can reduce the management overhead.
    Its not a perfect solution, but should get to where you need to be without having to upgrade.
    Facing an ACS audit? Find out how aaa-reports! can help at www.extraxi.com

  • BW Report Designer - Group level changes

    Dear all,
    we intent to use BW Report Designer and want to insert page breaks between group level changes
    so that we get one page per item of a group (as it is possible in Crystal reports).
    Example:
    Sales organization is listed in column 1 of our query - we need one page per item -
    page 1 - Sales organization 100
    page 2 - Sales organization 200
    Concerning to the online documentation it should be possible, but we can't find this functionality
    within the BW Report designer.
    Could anybody assist us?
    Thanks
    Hagen

    Check the below post and you'll have your solution! Hope this helps.
    Page Breaks in Report Designer

  • Problem with multiple group functions

    Hello Everyone...
    I have a huge problem with trying to create a report.
    Here is the situation:
    1. I have a database that registers certain events for units. Each event is stored in a separate register.
    2. There is a specific code that the units have that I need to identify their origin, because they must be grouped by origin. The origin is identified by the first digit of the code. This code only appears in the events that occur after production.
    3. Before that, an order number is used to identify the events.
    4. What I need is to identify the time difference between two specific events, and get the following: average, standard deviation, count, and level of service. The level of service is the percentage of units in which the difference was no higher than the average plus the standard deviation.
    I managed to create a query that does that, but it is too slow.
    Since I can't reveal my code, I will try to explain in words what I did:
    1. I created two almost identical queries that obtain the event information I need. The first one obtains the information of the event that occurs the earliest. (let's call this queries 1 and 2)
    2. As this is supposed to be a generic query that only needs to be modified for different events, it contemplates the case that the event is before production and does not include the specific code I mentioned earlier. So I created another query that uses the order number and looks for a (later) production event to obtain that code. (let's call this query 3).
    3. Then I obtained count, standard deviation and average for the difference between events.
    4. Then, for the service level, I had to create an outside query that again uses queries 1, 2, and 3 because it needs the information of individual units to calculate it. So here is the structure of my query, using some pseudocode (I'm not revealing any actual code):
    Select (averagestd.origin, average, stddev,
    sum(case
    when abs(q2.vehicle_event_dt - q1.vehicle_event_dt -
    average) <= stddev then
    1
    else
    0
    end) / count service_level from
    (select q1.origin,
    avg(q2.vehicle_event_dt -q1.vehicle_event_dt),
    stddev(q2.vehicle_event_dt - q1.vehicle_event_dt),
    count(*) from
    (select {event data} from query1, query3 where
    query1.order_number = query3.order_number) q1,
    (select {event data} from query2, query3 where
    query1.order_number = query3.order_number) q2
    where q1.order_number=q2.order_number) avgstd,
    (select {event data} from query1, query3 where
    query1.order_number = query3.order_number) q1,
    (select {event data} from query2, query3 where
    query1.order_number = query3.order_number) q2
    where q1.order_number = q2.order_number and
    q1.origin = avgstd.origin
    The database is huge and it's taking too long to run it.
    Do you have any idea on how can I optimize this query?
    All the information in all queries comes from the same table.
    Thank you very much for your help.
    Eduardo Schnadower

    Okay, so my report is set up as above with 4 groups
    group 1 group code
    group 2 sub group code
    group 3 customer code
    group 4 product code
    what i need to be able to do is select the sub group total and run a sub report to display the products total for that sub group and then the same for group, run a report from the group total to show the products which make up that group total. Is there any other way to acheive this?
    Cheers Paul

  • SSL Multiple Tunnel Groups with Multiple group policies

    Hello folks.
    Have a query and cant seem to find an answer on the web.
    I have configured SSL Clientless VPN on a lab ASA5510, using 2 tunnel groups, one for enginneers and one for staff, mapped to 2 different group policies, each with different customisation. I have mapped the AD groups to the tunnel groups using both ACS and now LDAP (currently in use), both working successfully, using group lock and LDAP map of IETF-Radius-Class to Group name ensures engineers get assigned to the engineers tunnel group and staff get mapped to the staff tunnel group only.
    The question i have is....is there a way to use a single tunnel group to map the user based on AD group which will then use the correct Group-policy (1 tunnel group to multiple group-polciies). I have seen examples of doing this with different URLs but want to know if they can all use the same URL and avoid using the drop down list using aliases.
    It may be a simple "No" but it would be nice to know how to do it without using the URLs or drop down list. Users are easily confused ......

    Easy. Disable the drop-down list, and use the authentication-server (LDAP or Radius) in the DefaultWEBVPNGroup. By default when you browse to the ASA, it will be using the DefaultWEBVPNGroup. Let LDAP or Radius take care of the rest.
    You will get the functionality you are looking for.
    HTH
    PS. If this post was helpful, please rate it.

  • I want to add a contact to multiple groups in address book.

    I know in gmail it's easy to do this but I don't know how to on Lion.  I don't want the contacts to show up twice but I need them to be in multiple contact groups.  Thanks in aadvance!

    From Address Book Help:
    When viewing the list of groups, select one or more contacts and drag them to a group or folder.If the list of groups isn’t displayed, choose View > Groups or click the Groups icon at the top of the Address Book window.
    When viewing the list of contacts and a card, drag one or more contacts to the Groups icon at the top of the Address Book window until the page turns to show the list of groups, and then continue dragging the contacts to the group where you want to add them.Took a while to find out, all so different to SL.

  • Crystal 8.5 to XI summing multiple groups

    In 8.5 when you inserted a "summary" you could insert a total for multiple groups and a grand total all in one screen. In XI, I no longer see that functionality. If I have three groups, Year, Month, Store, and I want to get total dollars by each group and a grand total, do I have to insert a total for each group separately?Thank you!

    There is a new option added in CRXIR2 "Add to all group levels" in insert summary page. This option is available in CRXIR2 onwards, but not in CRXI.
    Hope this helps!
    Raghavendra

Maybe you are looking for

  • FPGA memory limitation

    Hi... I have tried to use more than 2 MB memory (using memory blocks) on FPGA. During compilation Xilinx tool chain generated error "AR #21955"....which is explained as memory limitation (in xilinx website). Can't we create memory blocks of more than

  • I just got a windows 7 64 bit laptop. I have a T3 Palm. What desktop version should I install?

    I just got a win.7- 64 bit laptop.  I have a T3 Palm.  What version of Palm desktop should I install on my new laptop?  I know there is a program written by Dimitry to be able to use a 64 bit machine.  Can anyone tell me which desktop version to use?

  • Changing to NTFS in Lion

    I want to change the format of an external hdd to ntfs file system in lion. How do i do that?

  • Mail folders in Library are a Mess!

    1) I have a G5 and a G4 laptop both with the same Mail POP accounts set up in Mac Mail of each computer. The only way I have found to sync the two is manually (I do have .mac I don't use it as I have never figured out the syncing) - I go through the

  • 3rd Gen IPod connection to Windows

    I have a 3rd gen IPod (touch wheel) that came with a fire wire cable. I've been running the IPod on a Mac, but now want to switch to a PC. Question: must the PC have a firewire port or can I buy a USB cable and connect to the PC via USB? If yes, must