Group and count by range of amount

Hi all,
I have a list of 400,000 lines like this:
But I need grouped by amount of 10 and count the number of clients grouped, something like this:
I hope the pictures explain better my problem.
Thanks for your support
Carlos

Hi Carlos,
According to your description, this issue is more related to excel instead of excel development.
The Excel IT Pro Discussions forum is the better place for excel questions, we will move it there for you.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Group and count

    Hello Friends,
    I have a query where I select organization, item_num, and transaction_date.
    I need to group and count the result by transaction_date, so I will have 3 groups:
    First - will count records where transaction_date falls between the 1st and 10th of the month.
    Second - will count records where transaction_date falls between the 11th and 20th of the month.
    Third - will count records where transaction_date falls between the 21st and 31st of the month.
    The result of this count will be used in the Oracle Report.
    Please, give me your advise on how I can achive this.
    Thank you.

    select organization,
           item_num,
           count(case
                   when transaction_date between trunc(transaction_date, 'mm') and trunc(transaction_date, 'mm') + 9 then 1
                 end) "1-10",
           count(case
                   when transaction_date between trunc(transaction_date, 'mm') + 10 and trunc(transaction_date, 'mm') + 19 then 1
                 end) "11-20",
           count(case
                   when transaction_date between trunc(transaction_date, 'mm') + 20 and trunc(last_day(sysdate)) then 1
                 end) "21-end"
      from mytable
    group by organization, item_num
    Ramin Hashimzade

  • Grouping and Counting

    I have a table of member_id's and number codes and dates. Each member can have any number of any of the available codes allocated to him on different dates. I need to be able to be able to group by member_id and count the number of a specified code allocated to each member. I need to show zero counts. Does that make sense?
    Any help with this would be greatly appreciated
    Lindsay

    lindsay wrote:
    I have a table of member_id's and number codes and dates. Each member can have any number of any of the available codes allocated to him on different dates. I need to be able to be able to group by member_id and count the number of a specified code allocated to each member. I need to show zero counts. Does that make sense?Not really. When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Where exactly does APEX come into this? It sounds more like a general SQL problem which might be better suited to the {forum:id=75} forum.
    Either here or there, Re: 2. How do I ask a question on the forums? would make the problem clearer than any amount of vague description. Post this code wrapped in <tt>\...\</tt> tags.

  • Select, grouping and counting...

    Hi again, I managed to bypass my trigger problem, so thanks a lot...!
    Now, I have a simple question...
    Using two tables, Joueur (NoJ (PK), NoE(PK, FK1), NomJ, Adresse, Tel, CoJ)
    and Equipe (NoE(PK,FK1), NomE, NoJC(Fk1 of NoJ))
    I'll explain the model...
    It's a Team table, and a Player Table.
    Naturally, the PK on Player (Joueur) is NoE (team number) and NoJ (Player number)
    On the Team table, the primary key is NoE (Team number
    and the foreign key is NoE AND NoJC which stands for the number of the CAPTAIN player ...
    So...
    I've got to make a table of 4 cloumns: Team number (NoE), Team name (NomE), Team captain name, number of player in team...
    So I need to combine those two tables... on the first table, I got all the info BUT the number of players, which lists all 1 due to the where NoJC = NoJ... but this function is required to get the Captain name...
    Select NoE, NomE, NomJ as Capitaine, count(*)
    from EQUIPE join JOUEUR using (NoE)
    where NoJ=NoJC
    group by NoE, NomE, NomJ;
    select noe, count(*)
    from EQUIPE join JOUEUR using (NoE)
    group by noe;Any clue?

    I suggest for you :
    Put then column noJC in joueur table nojc NUMBER CONSTRAINT fk_no_joueur_cap REFERENCES joueur(noj);
    Regards Salim.
    SQL> DROP TABLE joueur;
    Table supprimée.
    SQL> DROP TABLE equipe;
    Table supprimée.
    SQL> CREATE TABLE equipe (noe NUMBER CONSTRAINT pk_no_eq PRIMARY KEY, nome VARCHAR2(30));
    Table créée.
    SQL> CREATE TABLE joueur (noj NUMBER CONSTRAINT pk_no_joeur PRIMARY KEY,
      2                       noe NUMBER CONSTRAINT fk_no_equipe REFERENCES equipe(noe),
      3                       nomj VARCHAR2(30), adresse VARCHAR2(100), tel VARCHAR2(20),
      4                       coj VARCHAR2(10), nojc NUMBER CONSTRAINT fk_no_joueur_cap REFERENCES joueu
    r(noj) );
    Table créée.
    SQL> INSERT INTO equipe
      2       VALUES (1, 'RC Kouba');
    1 ligne créée.
    SQL> INSERT INTO joueur
      2       VALUES (1, 1, 'Salim', '... Montreal', '514-111-1111', 'NNN', NULL);
    1 ligne créée.
    SQL> INSERT INTO joueur
      2       VALUES (2, 1, 'Richard', '... Montreal', '514-111-2222', 'NNN', 1);
    1 ligne créée.
    SQL> INSERT INTO joueur
      2       VALUES (3, 1, 'Stéphane', '... Montreal', '514-111-3333', 'NNN', 1);
    1 ligne créée.
    SQL> COMMIT ;
    Validation effectuée.
    SQL>
    SQL> SELECT   equipe.noe, equipe.nome, j.noj nojc, j.nomj capitaine,
      2           COUNT (joueur.noj) AS "Nombre de joueurs"
      3      FROM joueur, equipe, joueur j
      4     WHERE joueur.noe = equipe.noe AND j.noe = equipe.noe AND j.nojc IS NULL
      5  GROUP BY equipe.noe, nome, j.noj, j.nomj;
           NOE NOME                                 NOJC CAPITAINE                      Nombre de joueurs
             1 RC Kouba                                1 Salim                                          3
    SQL>

  • VB 2012 - Help Finding Specific Numbers in a Database Column and Count the Number of Times They Appear.

    Hello,
    I am doing a project that uses MS Access to access data about a baseball team . The MS Access Database provides the names, addresses, and age of the players. All the players are 12, 13, or 14 years old. I need to display the average age for the team on a
    label, which was easy. The problem is that I also have to display the number of players who are 12, 13, and 14 years old and I have no idea how to do that.
    Here is my code so far:
    Public Class frmBaseball
    Private Sub TeamBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles TeamBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.TeamBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.LittleLeagueDataSet)
    End Sub
    Private Sub frmBaseball_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'LittleLeagueDataSet.Team' table. You can move, or remove it, as needed.
    Me.TeamTableAdapter.Fill(Me.LittleLeagueDataSet.Team)
    End Sub
    Private Sub btnAges_Click(sender As Object, e As EventArgs) Handles btnAges.Click
    Dim strSql As String = "SELECT * FROM Team"
    Dim strPath As String = "Provider=Microsoft.ACE.OLEDB.12.0 ;" & "Data Source=e:\LittleLeague.accdb"
    Dim odaTeam As New OleDb.OleDbDataAdapter(strSql, strPath)
    Dim datAge As New DataTable
    Dim intCount As Integer = 0
    Dim intTotalAge As Integer
    Dim decAverageAge As Decimal
    odaTeam.Fill(datAge)
    odaTeam.Dispose()
    For intCount = 0 To datAge.Rows.Count - 1
    intTotalAge += Convert.ToInt32(datAge.Rows(intCount)("Age"))
    decAverageAge = Convert.ToDecimal(intTotalAge / datAge.Rows.Count)
    Next
    lblAverage.Visible = True
    lblAverage.Text = "The average age of the team is " & decAverageAge.ToString("N2")
    lbl12.Text = "The number of 12 year olds is "
    lbl13.Text = "The number of 13 year olds is "
    lbl14.Text = "The number of 14 year olds is "
    lbl12.Visible = True
    lbl13.Visible = True
    lbl14.Visible = True
    End Sub
    End Class
    I think I should use a For..Next loop but I don't know how to identify and match using this database, and then count how many repeated 12, 13, 14 years old there are.
    Any help would be really appreciated.

    Hello,
    Conceptually speaking you would group the data and count. Beings this is school work the demo below is a static example and not suitable for your assignment, its to show a point. Now if you have learned about LINQ and Lambda this logic can apply to your
    question but need to work out using this your data which can be done. If not look at using SQL Grouping.
    Example of SQL grouping and count
    select country, count(country) as count from customers group by country
    Module Module1
    Public Sub GroupingDemo()
    Dim dt As DataTable = SimulateLoadFromDatabase()
    Dim TeamData = dt.AsEnumerable.GroupBy(
    Function(student) student.Field(Of Integer)("Age")) _
    .Select(Function(group) New With
    Key .Value = group.Key,
    Key .Info = group.OrderByDescending(
    Function(x) x.Field(Of String)("Name"))}) _
    .OrderBy(
    Function(group) group.Info.First.Field(Of Integer)("age"))
    Dim dictData As New Dictionary(Of String, String)
    For Each group In TeamData
    Console.WriteLine("Group: {0} count: {1} ", group.Value, group.Info.Count)
    dictData.Add(group.Value.ToString, group.Info.Count.ToString)
    ' The following is not needed but good to show
    For Each item In group.Info
    Console.WriteLine(" {0} {1}",
    item.Field(Of Integer)("Identifier"),
    item.Field(Of String)("Name"))
    Next
    Next group
    Console.WriteLine()
    Console.WriteLine("This data can be used to populate control text")
    For Each Item As KeyValuePair(Of String, String) In dictData
    Console.WriteLine("{0} {1}", Item.Key, Item.Value)
    Next
    End Sub
    Private Function SimulateLoadFromDatabase() As DataTable
    Dim dt As New DataTable With {.TableName = "MyTable"}
    dt.Columns.Add(New DataColumn With {.ColumnName = "Identifier", .DataType = GetType(Int32),
    .AutoIncrement = True, .AutoIncrementSeed = 1})
    dt.Columns.Add(New DataColumn With {.ColumnName = "Name", .DataType = GetType(String)})
    dt.Columns.Add(New DataColumn With {.ColumnName = "Age", .DataType = GetType(Int32)})
    dt.Rows.Add(New Object() {Nothing, "Bill", 13})
    dt.Rows.Add(New Object() {Nothing, "Karen", 14})
    dt.Rows.Add(New Object() {Nothing, "Jim", 13})
    dt.Rows.Add(New Object() {Nothing, "Paul", 15})
    dt.Rows.Add(New Object() {Nothing, "Mike", 14})
    dt.Rows.Add(New Object() {Nothing, "Jill", 13})
    Return dt
    End Function
    End Module
    Output in the IDE output window
    Group: 13 count: 3
    3 Jim
    6 Jill
    1 Bill
    Group: 14 count: 2
    5 Mike
    2 Karen
    Group: 15 count: 1
    4 Paul
    This data can be used to populate control text
    13 3
    14 2
    15 1
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Tasl list group and group counter

    hi,
    i have one requirement . I have give internal number range to the task list. so my need to to create task list with one group and several group counter. But what is happening is when i run LSMW for that. seperate group numbers has been generated for each task list. is there any way to get the same group number with different counters using LSMW>

    hi
    since you have given internal number range for task list system will try to create task list with different group numbers .if you want the same group number with different group counter then i think you have to use the task list with external number and use the number created before
    regards
    thyagarajan

  • Group and Group counter in Routing

    Hi all,
    what is group and group counter in routing , how these are used in routing , please explain.
    Regards,
    Joseph.

    Dear Joseph,
    1.Each routing is stored against a group and group counter no.
    2.When we create routing without respect to any material and only by giving the plant,the set of operations gets saved under one
    group counter and group no.
    4.Many materials can be assigned to this same group and group counter no,so that the routing is valid for all the materials included.
    5.When you create a routing for material specific,the set of operation gets saved in a group no and group counter no as 01,when
    you create another routing with another set of operations for the same material,plant and task list combination now the group no
    remains same and the group counter gets saved under 02.
    6.This data can be further helpful in assigning the routing data in the production version,.
    Check and revert
    Regards
    S Mangalraj

  • Restructure Customer Account Groups and Number Ranges

    We already have existing customer account groups and number ranges and therefore customer accounts.
    We need now to restructure Customer Account Groups incl. number Ranges and Number Range Allocation.
    Is this possible? Any advice?
    Can a customer keep is old customer number and be assigned to the new customer account group, which has a different number range?
    Please adivse.
    Many thanks
    Petra

    Ravi,
    thanks very much for your reply. This information is very useful.
    Just one more question:
    WIth which Customer Number will reallocated customer end up? the originial one or does the customer get a new number relating to the number range of its new customer account group?
    Many thanks,
    Petra

  • Max, Min and Count with Group By

    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select
         max(COUNTRY_S) MAXVALUE,
         min(COUNTRY_S) MINVALUE
    from
         tab_Country
    select
         count(*)
    from
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ;
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi

    Hi, Heidi,
    HeidiWeber wrote:
    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select 
         max(COUNTRY_S) MAXVALUE, 
         min(COUNTRY_S) MINVALUE 
    from 
         tab_Country 
    select 
         count(*) 
    from 
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ; 
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi
    It's not clear what you want.  Perhaps
    SELECT  MAX (country_s)               AS max_country_s
    ,       MIN (country_s)               AS min_country_s
    ,       COUNT (DISTINCT country_txt)  AS count_country_txt
    FROM    tab_country
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Wsus query needed - get WSUS-Computers, belonging WSUS-Group and Not Installed Count

    Hi,
    i try to find a way by using basic WSUS powershell cmds in combination with piping in Server 2012 R2 to get all registered computers in WSUS plus belonging WSUS-Group and Update "Not Installed Count" as output.
    Is that possible?
    I tried multiple times and enden up in using posh - is there no way based on standard powershell commandlets.
    Thank you
    Peter

    Hi Michael,
    it seems that you are right :(. I tried out a few things with powershell (source
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/19/use-powershell-to-find-missing-updates-on-wsus-client-computers.aspx) - big problem is that i actually cant get belonging WSUS Group to Server object. I only are able to get all WSUS Groups
    but cant find the right sytax to get only belonging ones.
    Any ideas?
    Thanks
    Peter
    #Load assemblies
    [void][system.reflection.assembly]::LoadWithPartialName('Microsoft.UpdateServices.Administration')
    #Create Scope objects
    $computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
    $updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
    #Gather only servers
    $ServersId = @($wsus.GetComputerTargets($computerscope) | Where {
    $_.OSDescription -like "*Server*"
    } | Select -expand Id)
    #Get Update Summary
    $wsus.GetSummariesPerComputerTarget($updatescope,$computerscope) | Where {
    #Filter out non servers
    $ServersId -Contains $_.ComputerTargetID
    } | ForEach {
    New-Object PSObject -Property @{
    ComputerTarget = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).FullDomainName
    ComputerTargetGroupIDs = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).ComputerTargetGroupIds
    ComputerTargetGroupNames = ($wsus.GetComputerTargetGroups())
    NeededCount = ($_.DownloadedCount + $_.NotInstalledCount)
    #DownloadedCount = $_.DownloadedCount
    NotInstalledCount = $_.NotInstalledCount
    #InstalledCount = $_.InstalledCount

  • Group by and count of line items

    Hi
    I have a requirement to implement group by part # and count of the line items
    I was able to do group by at the node level and how to do the count
    Thanks
    New BIP

    Hi Alex
    sorry did not check until now glad some one came out to help me
    Can i send you the template, xml and output to your email please
    Thanks
    NewBIP

  • Vendor acct group and number range in the MDC vs MDS

    IN MDM 3.0 when a new BP with vendor as role is created via UI in MDS the vendor is created with a generic BP number range in the MDS.  The down stream MDC's all have different vendor account groups with different number ranges assigned in each MDC..  example...
    client     type of vend   acct grp      num range
    MDC1      purch vendor     com2      1000000-1999999
    MDC1      acct vendor      act1      2000000-2999999
    MDC2      purch vendor     pur1      2400000-2499999
    MDC3      purch vendor     POV1      3599999-3599999
    How does MDS know when it distributes the vendor to the MDC's what account group and number range to create the vendor with in the MDC's.  The MDC cannot change all its existing master data that has been created already with the account groups and number ranges becuase field variants have been established.  Where is this mapping contained MDS or XI and how is it done.

    The number range in the MDS is determined by the value in the "Grouping" combo-box.  This combo-box is populated by values entered in IMG activity Master Data Objects -> Business Partner -> Business Partner -> Basic Settings -> Number Ranges and Groupings -> Define Groupings and Assign Number Ranges.  Each value must have an associated number range and one of the values must be defined as the standard grouping in case the user doesn't select a grouping.  This is how numbering occurs in the MDS.  Unfortunately you cannot assign more that one grouping to a new BP.
    Now, for the MDCs.  When sending a new BP to an MDC, for example an R/3, there must be an external number range setup in the MDS for that MDC and it shouldn't conflict with any number range in that MDC. 
    IMG Activity Master Data Exchange -> Central Settings -> ID Mapping -> Make General Settings for ID Mapping allows you to define which number range you want to use for a specific object type in a specific system (e.g. KNA1 (customer) in system R/3_100). 
    So far this isn't sufficient for you because you have 2 number ranges for MDC1 in your example. 
    In the IMG activity I just mentionned, there is also a possibility to add an additional parameter which allows you to assign a number range for each unique object-type/system/additional parameter combination.  By putting the account group in the additional parameter field, this allows you to assign number ranges per account group.
    What remains to be done is to use this information in the XI Mapping for BP to R/3 Vendor.  The first thing is for the XI Mapping to map the MDS account group to the MDC account group.  Then the XI Mapping must call the MDS to create a new ID-Mapping between the BP and the Vendor.  During this call, the XI Mapping must provide all the usual parameters as well as the account group.  This will ensure that the correct number range will be selected so the correct vendor id will be generated.  This id will then be used in the ID Mapping.
    If you need to create the Vendor for multiple account groups, then you will have to implement special logic to map the MDS account group from the BP to the many MDC account groups needed for the Vendor.
    Hope this helps!

  • Group By element ID and continuous date range as a single row - URGENT!!!!

    Hi All,
    I have a source table and a target table.
    Source Table Target Table
    Element ID Period_dt Element ID Effective date End date
    DD001 200901 DD001 200901 200903
    DD001 200902 DD001 200906 200908
    DD001 200903 DD002 200801 200803
    DD001 200906
    DD001 200907
    DD001 200908
    DD002 200801
    DD002 200802
    DD002 200803
    I want the result as in the target table. Basically, continuous date range should be grouped and shown as single row even it falls under the same elment_id.
    I have tried the LAG and LEAD function and RANK function as well but unsuccessful.
    I was able to get like this in the target table using MIN and MAX function.
    DD001 200901 200908
    DD002 200801 200803
    For DD001, you can see there is a break in the months. 200901 - 200903 and 200906 - 200908. we are missing 4th,5th month. 1 to 3rd month and 6th to 8th month should be grouped and shown as separate rows in the target table for the same DD001 element_ID
    I will post the SQL query tommorrow. Please give your suggestions.
    Regards
    Balaji

    Thanks guys. It worked perfectly. I apologize for using the 'U' word. This is my first post here.
    select prod_element_cd,
    min(period_dt) effective_date,
    max(Last_day(period_dt)) end_date,
    SUM(Fixed_factor),
    SUM(var_factor),
    val1
    from (
    select prod_element_cd, period_dt,Fixed_factor,var_factor, val, last_value(val ignore nulls) over(partition by prod_element_cd order by period_dt) val1
    from (
    select prod_element_cd,
    period_dt,
    NVL(Fixed,0) Fixed_factor,
    NVL(variable,0) var_factor,
    lag(period_dt) over(partition by prod_element_cd order by period_dt) dt,
    case when add_months(period_dt,-1) = lag(period_dt) over(partition by prod_element_cd order by period_dt)
    then null
    else rownum end val
    from pmax_land.TMP_COST_CASH_STD_INPUT)
    group by prod_element_cd, val1
    order by prod_element_cd
    The above query pulls the below result
    PROD_ELEMENT_CD EFFECTIVE_DATE END_DATE FIXED VARIABLE VAL1
    DDA001 01/01/2009 03/31/2009 4.20 7.62 1.00
    DDA001 06/01/2009 11/30/2009 4.80 0.72 10.00
    DDA001 01/01/2010 01/31/2010 0.75 0.50 13.00
    DDA002 07/01/2008 09/30/2008 2.40 0.36 11.00
    DDA002 02/01/2008 03/31/2008 1.50 1.00 14.00
    one more logic added to the requirement
    for each occurance, for eg: DDA001, the last row of DDA001 should be taken and the end_date of that should be hardcoded to 12/31/9999
    here we have two cases
    last row for DDA001 end_date
    DDA001 01/01/2010 01/31/2010 0.75 0.50 13.00
    end date is 01/31/2010 for this above row of DDA001. It should be hardcoded to 12/31/9999
    similarly
    last row for DDA002 end_date
    DDA002 02/01/2008 03/31/2008 1.50 1.00 14.00
    end date is 03/31/2008 for this above row of DDA002. It should be hardcoded to 12/31/9999
    Similarly for DDA003,DDA004.......... etc
    Thanks for your previous replies. Please give your suggestions.
    Regards
    Balaji
    Edited by: user12119826 on Oct 27, 2009 11:49 PM

  • How do I know which group and group counter used to create current estimate

    Is there a way to know, if for a given set of materials, what groups and groups counters have been used to create the current cost estimate. Or for a given comboniation of material, group and group counter has been used to create a current cost estimate. I can look each up through displaying the cost estimate but I am looking for a quick way since the number of materials are in 100s.
    I was wondering if there is a table I could look up to get the info.
    Any help would be much appreciated.
    Regards

    The name of the table that needs to be used is KEKO. I figured it out so I thought I would share
    Edited by: NIK83 on Mar 7, 2011 10:16 PM

  • CR - giving total transaction count for few groups and 0 for few groups.

    For the column "No of First Call Resolution" I have to count no of interactions based on the Interaction Result, the formula is
    COUNT(Interaction_ID) WHERE INTERACTION_RESULT = 'FCR'
    For which, I wrote the below formula
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then Count ({14CICustomerInteractions_query.Interaction_ID})
    I have 33,232 interactions on the particular day I selected. When I try to group up and do the calculations it is giving total transaction count for few groups and 0 for few groups.
    Need Solution

    Hi,
    What field is the report grouped on?
    If you wish to find the no of interactions based on some condition and display it for every group, then here's what you need to do:
    1) Create this formula and place this on the details section:
    whileprintingrecords;
    numbervar c;
    If {14CICustomerInteractions_query.Interaction Result} = "FCR" then
    c := c + 1;
    2) Create another formula and place this one on the Group Footer:
    whileprintingrecords;
    numbervar c;
    3) Create this formula to reset the variable and place this on the Group Header:
    whileprintingrecords;
    numbervar c := 0;
    Let me know how this goes!
    -Abhilash

Maybe you are looking for