Showing Group Results

I have a group above report that is 3 levels deep
(a)Group
--(b)Rep
----(c)Orders
Group a and group b will always have data returned. Group c however may or may not have data returned based on the query. I would like to supress group b if group c does not have data and likewise supress group a if all of group b gets suppressed.
Any ideas would be greatly appreciated.
Scott

Thank you for your recomendation. Great Idea!
This seems to work, however, I do not think I have correctly defined my requirements (to myself even) :-)
It got me close. I think I can get the rest of the way with your suggestion.
Thanks again!

Similar Messages

  • Dba_index_name and dba_ind_columns showing different results

    Hi All,
    I am confused why it is showing different results:
    [email protected]#>select index_name from dba_indexes where table_name='CRBTPROV_FINAL';
    INDEX_NAME
    CRBTPROV_INDX1
    [email protected]#>select index_name from dba_IND_COLUMNS where table_name='CRBTPROV_FINAL';
    INDEX_NAME
    CRBTPROV_INDX1
    MSISDN_IDX
    When trying to drop index MSISDN_IDX it gives error:
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    But when trying to check where all the index is used using v$access:
    select * from v$access where object='MSISDN_IDX';
    no rows selected
    Regards,
    Kirti

    If I run the following query on a 9.2.0.6 database, no index is listed:
    select type, count(*) from v$access group by type;CURSOR
    FUNCTION
    NON-EXISTENT
    PACKAGE
    SEQUENCE
    SYNONYM
    TABLE
    TRIGGER
    VIEW
    It seems that index is not taken into account by v$access ?

  • Query shows diferrent result

    After migrating to oracle10g query is showing wrong result
    SELECT PS, SUM(K) FROM
    ((SELECT 'F' PS, 0 K FROM dual
    UNION ALL SELECT 'P' PS, 0 K FROM dual
    UNION ALL SELECT 'R' PS, 0 K FROM dual
    UNION ALL SELECT 'S' PS, 0 K FROM dual
    UNION ALL SELECT 'W' PS, 0 K FROM dual )
    UNION
    (SELECT process_status PS, COUNT(*) K
    FROM production_control p
    WHERE p.process_group = 'SA_WEEKLY'
    GROUP BY p.process_status))
    GROUP BY PS
    Wrong Result After Migration
    P SUM(K)
    W 0
    R 0
    P 0
    F 0
    S 254
    Correct Result Before Migration
    P SUM(K)
    F 0
    P 0
    R 0
    S 253
    W 0

    Hi,
    >>without order by it was giving correct result in another database.
    Correct result ?? How can you know that is the right result ? Don't trust on a order of the rows when selecting, if you not using a ORDER BY clause on your select statement.
    >>I am having problem with pariticular database only
    This is not a problem. You need specify the ORDER BY clause on this query to guarantee the order of the rows (on all databases) when perform a select statement on this table.
    Cheers

  • Showing average results on a graphic with Numbers '09

    Greetings everyone. My request could seem quite simple but I can't manage to do it. I'd like to show the results from a theoric experiment. No problem until I want to make an average result of, not each subject, but each groupe. Here is what I don't want to get:
    Any idea ?

    Ok, from this point, thanks both of you for the answers. But now imagine I have something like this:
    Isn't there anyway of getting something like this,
    Without doing all the average calculations, plus, by adding some values that will not be involved into the calculation (here we set –9) and letting Numbers know that 1 = Control ; 2 = Patient, or F = Women ; M = Men ? (I used your method to set this graph )

  • I need to show grouped id and only the max order value for each unique id

    select distinct 
    Table1.id,
    Table1.id +' - '+ Table1.VisitNumber +' : '+ Table1.Priority as UidVisitKey,
    Table1.VisitNumber,
    DATEDIFF(d, [dob],[Visite_dte])/365.25 as Age_On_Visit,
    Table1.Priority,
    Table1.OrderOfVisit,
    Table1.OrderOfVisit + ' - ' + Table1.Notes AS VisitNote, 
    Table1.Visitor_FName,
    Table1.Visitor_SName,
    Table2.dob,
    Table2.sex,
    Table1.Visit_dte,
    into #Temp1
    FROM         Table1 INNER JOIN
                Table2 ON Table1.id = Table2.id
    WHERE Table1.LeaveDate IS NOT NULL 
    and Table1.LeaveDate  between DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)) 
    and DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))) 
    select #Temp1.id, max(#Temp1.[OrderOfVisit]), #Temp1.VisitNote 
    from #Temp1
    group by #Temp1.id, #Temp1.OrderOfVisit, #Temp1.[VisitNote]
    ORDER BY #Temp1.id
    drop table #Temp1
    ---I need to show grouped id and only the max OrderOfVisit for each unique id, and the VisitNote for each OrderOfVisit
    ----------------need help-------------

    Sounds like this
    select distinct
    Table1.id,
    Table1.id +' - '+ Table1.VisitNumber +' : '+ Table1.Priority as UidVisitKey,
    Table1.VisitNumber,
    DATEDIFF(d, [dob],[Visite_dte])/365.25 as Age_On_Visit,
    Table1.Priority,
    Table1.OrderOfVisit,
    Table1.OrderOfVisit + ' - ' + Table1.Notes AS VisitNote,
    Table1.Visitor_FName,
    Table1.Visitor_SName,
    Table2.dob,
    Table2.sex,
    Table1.Visit_dte,
    into #Temp1
    FROM Table1 INNER JOIN
    Table2 ON Table1.id = Table2.id
    WHERE Table1.LeaveDate IS NOT NULL
    and Table1.LeaveDate between DATEADD(mm,-1,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0))
    and DATEADD(ms,-3,DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)))
    select id,OrderOfVisit,VisitNote
    from
    select #Temp1.id, #Temp1.[OrderOfVisit], #Temp1.VisitNote,ROW_NUMBER() OVER (PARTITION BY #Temp1.id ORDER BY #Temp1.[OrderOfVisit] DESC) AS Seq
    from #Temp1
    )t
    WHERE Seq = 1
    ORDER BY id
    drop table #Temp1
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • Dont want to show overall result in my report

    Hi
    Probably quite simple,  i just dont fint how to " NOT show overall result in my query"

    if u have infoobject characteristics on columns, suppress results there also
    *helpful answers deserve some points*

  • Can I show quiz results in the recording of software simulation?

    Hello, Everybody, I'm using Adobe Captivate 7. I want to show quiz results after recording the software simulation. If the recording type is training, the user need to click for the instructions. When the user's click is wrong, the captivate will show the failure message and I want to reduce my score due to the wrong click. Please give me a instructions. Thanks!!!

    Please do not double post issues.

  • Weather app on iPhone, iOS 8.1, shows "no results found" in China

    Hello,
    I've checked about 20 iPhones in China so far and they all seem to have the same problem.
    When using iOS 8.1 or 8.1.1 (even 8.0.x) the weather app shows "no results found" when searching for any city in the UK. Only London can be found.
    The same goes for Germany. Only four cities in the entire country can be found.
    I have checked on several iPhone 6, 6+, and on 5c.
    Even when using a VPN and being virtually in the US, I don't get any results for e.g. Manchester.
    Could someone else with an iPhone purchased in mainland China do a search for Manchester and confirm this problem please?
    Thank you. :-)

    s●●●●●@gmail.com

  • After upgrading to iOS 8, the weather app does not show up results for any of the Indian States/cities

    After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.

    Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc")  upwards.  I thought it was gone too but it's still there~just takes different way to access it.

  • ODS and Infocube showing different results

    Hi,
    I loaded same data to Infocube and ODS but they are both showing different result in BEX.
    ODS
    ODS report is showing summarised values e.g
    vendor               order value                   invoice value        date
    00001                    20                               20                 01.01.2007
    Infocube
    result is showing not summarised values
    vendor               order value                   invoice value        date
    00001                    20                                 0                      0
                                  0                                20                  01.01.2007
    I would like to make the infocube result same as the ODS because I am remodelling so that we start reporting from Infocube rather than ODS.
    thanks

    Hi,
    this is the scenario
    currently we are reporting from ODS object which fetch data from 3 ODSes. now I am asked to remodel so that we can report from infocube not ODS.
    steps I have taken so far.
    - created new infocube
    - created 3 update rules ( same Update rules that gives the reporting ODS data).
    my target is to make sure that the current ODS  report is the same as the infocube report but so far the report is not consistent
    I compared the data in the ODS and infocube and they are exactly the same but the report is showing differently

  • I have a problem with my ipad when choosing software update it is continously loading the message checking for updates without showing any results

    I have a problem with my ipad when choosing software update it is continously loading the message checking for updates without showing any results  

    Hello SuzMiller
    Check out the article for the troubleshooting steps for issues with email on your iPhone and iPad.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How can show the result of a measuring that is done in a sub-program in my main panel?

    How can show the result of a measuring that is done in a sub-program in my main panel?

    In your subvi, wire the result(s) you want to ouput to the main program to an output terminal on the connector pane.
    For a tutorial on subvi's, search the help for "connector panes" anc click on tutorial.
    ~Tim

  • How to display text in addition to average group result

    Hi All,
    This is probably really simple but i need your help.
    What i have done:
    I have 4 questions which each one has 5 radio box options. For each group of questions, i have put a value of 1-5 for the radio boxes.
    What i am trying to do:
    What i want to do is calculate the total for the group results as an average and display some additional text. T
    The averaging for the group results is working, but i dont know how to add the additional text for the 1-5 values returned.
    For example, if the average for all 4 questions turns out to be 3, i want the text box to not only display 3 but state Moderate - 3; or something like 3 - Moderate.
    Any help would be greatly appreciated.
    Thank you,
    Greg

    Like in Excel you need to add some additional code but with JavaScript it is a lot more code. Unless you use a hidden field to hold the computed average, you need to provide all the code to perform the average, that is sum all the fields and divide by the number of fields. Once you have that value you can concatenate the text to the number. Or you could have one text field with the computed average and a second text field with the text. You will also have to deal with the average not always being a whole number. If you change the number of decimal places for your solution, you will see this.
    function GetField(cName) {
    // get object for field with cName;
    // return object or null if not found;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Field named " +cName + " not found.", 0, 0);
    return oField;
    } // end GetField function;
    function Sum(aNames) {
    // get sum of the fields in aNamee array;
    var nSum = 0; // sum of fields;
    var nValue; // value or a single field;
    // process array of field names;
    for(i = 0; i < aNames.length; i++) {
    var nValue = GetField(aNames[i]).valueAsString;
    if(isNaN(nValue) == false) nSum += Number(nValue);
    } // get next field name;
    return nSum;
    } // end Sum function;
    function Average(aNames) {
    // compute average of the values of array of field names;
    var nAverage = "";
    var nSum = Sum(aNames); // get sum of field values;
    if(aNames.length > 0) nAverage = nSum / aNames.length;
    return nAverage;
    } // end Average function;
    // array of field names to average;
    var aFields = new Array("Value.0", "Value.1", "Value.2", "Value.3", "Value.4");
    // compute average using the function and place result in a variable;
    var nAverage = Average(aFields);
    // array of text for value of average;
    var aResult = new Array("Zero average", "Poor", "Better", "Mid point", "Better", "Best");
    // display computed average and text;
    event.value = nAverage + "  " + aResult[Math.floor(nAverage)];

  • My iphone 5c "all contacts" list suddenly shows groups in the upper left corner and has lost the phone numbers on most of them.  how do I get them back?

    The contacts list on my iphone 5c suddenly shows groups in the upper left hand corner of the all contacts list and many of the phone numbers no longer show.  How do I get them back?  I can't seem to get the groups word to disappear.

    Hi there bvb913,
    It sounds like you may have a group of contacts hidden. While in the Contacts app, tap Groups > Show All Contacts. Take a look at the User Guide below for more information.
    Add contacts
    http://help.apple.com/iphone/7/#/iph14a87326
    -Griff W.

Maybe you are looking for

  • Cannot login via ssh/sftp from certain clients

    Hi Guys, Strange issue here. I have a machine running 10.7.4 that I want to be able to access via sftp/ssh. I can login into the machine in terminal using either ssh or sftp. I cannot however login to the machine from finder via sftp. I am just told

  • Adding large database of music

    Ok, here's my situation. I have a Macbook with an 80gb HDD. I currently have 25gb free. I've a folder called "Songs" on my desktop that is 30 gb. This is a collection/comilaton of MP3 that I've ripped from my CD's and stored. Well, so I want to add t

  • IPhone 5 transparent boxes on screen

    I have an iPhone 5 that is almost a year old and every now and again transparent boxes appear in the middle of my screen and my iPhone starts to control itself and push on random things and not respond to my touches. Please hel

  • Is there a difference between Audigy 2 hardware decoding and DVD/MPEG-2 software decodi

    I have a capture card and run my PC as a part time HTPC. The audio and video is analog captured and MPEG-2 encoded by the card. I have the Nvidia DVD/MPEG-2 decoder set to SPDIF(reciever) so it sends the audio stream directly to the Audigy 2. When pl

  • How to create 16x9 HD QT movie using photos?

    While I kind of know photography, I am far from an FCP expert. I am trying to create a time lapse movie of my photos (i.e. a sunset) in HD 1920x1080 and end up with a HD QT movie. So far I have created a 16x9 frame that looks more like SD and the ima