Controlling the results when All is selected

I am guessing this is not possible, but...
I have a legacy report I am trying to modify, and when option <All> is selected in my Page Item - the displayed values are summed up for all columns. However, for some columns it does NOT make sense. Is there anything I can do to change that?
My Page Item is a Date, and the report is a cross-tab. Ideally, I would like to display the value for the Most Recent date when user selects <All>.
Thanks!

Hi,
Maybe you need to replace the date page item with a an aggregate item, i.e. MAX(date_item). Then the latest date will be shown when the report is grouped at a higher level.
Rod West

Similar Messages

  • How to add a dummy row in the result set of a SELECT statement.

    Hello Everyone -
    I have requirment to add a dummy row in the result set of a SELECT statement.
    For e.g. lets say there is a table Payment having following colums:
    Payment_id number
    status varchar2(10)
    amount number
    payment_date date
    so here is the data :-
    Payment_id Status Amount payment_date
    1 Applied 100 12/07/2008
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    Here is my SQL
    Select * form payment where payment_date >= 01/01/2009
    Output will be
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    My desired output is below
    2 Reversed 200 01/ 06/2009
    3 Applied 300 01/ 07/2009
    2 Reversed -200 01/ 06/2009 ------(Dummy Row)
    Thrid row here is the dummy row which I want to add when status is "Reversed"
    I would be very thankful for any kind of help in this regard ...
    Thanks,
    Gaurav

    Cartesion joining against a dummy table is a useful method of creating a dummy row:
    with my_tab as (select 1 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/05/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 4 Payment_id, 'Reversed' Status, -400 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 5 Payment_id, 'Applied' Status, 500 Amount, to_date('01/07/2009', 'mm/dd/yyyy') payment_date from dual),
                    --- end of mimicking your table
          dummy as (select 'Reversed' col1, 1 rn from dual union all
                    select 'Reversed' col1, 2 rn from dual)
    select mt.cust_id,
           mt.payment_id,
           mt.status,
           decode(dummy.rn, 2, -1*mt.amount, mt.amount) amount,
           mt.payment_date
    from   my_tab mt,
           dummy
    where  mt.status = dummy.col1 (+)
    order by mt.cust_id, mt.payment_id, dummy.rn nulls first;
    CUST_ID     PAYMENT_ID     STATUS     AMOUNT     PAYMENT_DATE
    1     1     Applied     100     07/12/2008
    1     2     Reversed     200     06/01/2009
    1     2     Reversed     -200     06/01/2009
    1     3     Applied     300     06/01/2009
    2     1     Applied     100     07/12/2008
    2     2     Reversed     200     05/01/2009
    2     2     Reversed     -200     05/01/2009
    2     3     Applied     300     06/01/2009
    2     4     Reversed     -400     06/01/2009
    2     4     Reversed     400     06/01/2009
    2     5     Applied     500     07/01/2009Edited by: Boneist on 07-Jan-2009 23:10
    NB. You may have to mess around with the ordering if that's not come back in the order you wanted. You didn't mention what the rules were for any expected ordering though, so I've made up my own *{;-)
    Also, I added an identifier (cust_id) to differentiate between different sets of payments, since that's usually the case. Remove that if it's not applicable for your case.

  • How do I control the order of all day events in iCal?

    How do I control the order of all day events in iCal?  Even if I painstakingly try to
    re-order the events the way I want them, when they print, they are in a different order.
    I have searched other forums and no one seems to have an answer to this.  Has
    anyone found the solution?  Thanks!

    I also have this issue, where the events in iCal change when viewing in print preview or printing. I even notice they will switch if I try to print again??!!! I am using different calendars to show different colours. and they are setup on iCloud not on my mac.
    it is becomign frustrating when I print 2 months worth and ssome events are correct in order and alas some will change when I print again!
    Can anyone help please?
    thanks

  • Getting message : The result set for this selection was empty on sm20

    Hi,
       I assigned below parameters in rz10 :
    rsau/user_selection                                 1
    rsau/max_diskspace/per_day                  1950M
    rsau/max_diskspace/per_file                 650M
    rsau/enable                                               1
       I activated security audit profile in sm19 also.But when iam going to sm20 for analysis of security audit log iam not getting report iam getting this message  :     The result set for this selection was empty.
    Gudie me for the same.
    Thanku

    Hi,
    The result set for this selection was empty.
    I think your configuration is OK except one thing...
    Check in SM19, if you have selected "Filter Active" check box in "Filter 1 and Filter 2" screen and Also "Audit Classess".
    Even though security audit is enabled in SM19, without selecting filter it will not log the events and give you the above message.
    Regards.
    Rajesh Narkhede

  • I tried to update my nephew iphone 4 version 4.3.4 (8k2), I did back-up everything before attempting to update and the result when I click down-load and update, it does not update instead it says,  itunes could not contact the iphone software update etc.

    Hi to all,
    I tried to update my nephew iphone 4 version 4.3.4 (8k2), I did back-up everything before attempting to update and the result when I click down-load and update, it does not update instead it says,  itunes could not contact the iphone software update server because you are not connected to the internet. I did check my wire-less connections and the connection from my PC to wire-less is hundred percent okay. I did search using google.com to confirm and my connections is good. Is there any problem regardings my firewalls or any help will be appreciated. Thanks

    Hi bosefire,
    Thanks for visiting Apple Support Communities.
    You can use the steps in this article to troubleshoot your iTunes connection:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Regards,
    Jeremy

  • Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial v

    Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial versions to compete my work.  So frustrated.

    You will need to have the serial number to activate the products. Please have then handy & also check the compatibility of the operating systems.
    Regards
    Rajshree

  • How to control the volume of all sounds in the movie (even if they were in the time line (no instance name)

    Hi,
    I need to control the volume of all sounds in the movie even
    if they were in the timeline so they do not have an instance name,
    by AS3.0 code?
    thanks a lot.

    :
    var st:SoundTransform=SoundMixer.soundTransform;
    st.volume=whatever;
    SoundMixer.soundTransform=st;

  • Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote... help!

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

    Whenever I try to erace something with the delete button it acts like "tab" and sends me all over the page when all I want to do is erace what I wrote...How do I fix this?

  • HT201365 Why are only 3 of my devices appearing on the map when all of the devices were showing up 2 weeks ago.

    Why are only 3 of my devices  appearing on the map when all of the devices were showing up 2 weeks ago.

    I probably "over-read" the Apple website hype about the advantages of creating a single personal Apple I.D. which would apply to practically all things Apple.  To quote:  "An Apple ID lets you personalize your Apple experience. Once you've created an Apple ID, you'll use it to access Apple resources where it's helpful to identify yourself. From Apple Discussions to iTunes to the Apple Online Store and everything in between, Apple ID is your passport to the extended Apple experience."
    Hence, I created an "Apple ID," following the example "[email protected]"  (Who wants to miss out on a "passport to the extended Apple experience.")  However, I already had an ID (though it was not my Apple address), and apparently was already the benefactor of the benefits of the so-called "personal Apple ID."  Consequently, I now have two different iTunes IDs and two different passwords.  Apple has responded to my requests to have a single ID by saying that my request is for the impossible.  I simply have to remember both IDs and both passwords, entering both when attempting to use different computers and devices while downloading and taking inventory of my iTunes files.
    So I'm pretty sure I've followed your suggestions already with respect to all 3 "eligible" devices, but I'll certainly give it another go-round.  From what you say, it appears that being "associated" with the cloud should not limit me only to an iPod Touch 4th generation.

  • How to return the result set of multiple select statements as one result set?

    Hi All,
    I have multiple select statements in my stored procedure that I want to return as one result set 
    for instance 
    select id from tableA
    union 
    select name from table b 
    but union will not work because the result sets datatypes are not identical so how to go about this ?
    Thanks

    You have to CAST or CONVERT (or implicitly convert) the columns to the same datatype.  You must find a datatype that both columns can be converted to without error.  In your example I'm guessing id is an int and name is a varchar or nvarchar. 
    Since you didn't convert the datatypes, SQL will use its data precedence rules and attempt to convert name to an int.  If any row contains a row that has a value in name that cannot be converted to an int, you will get an error.  The solution is
    to force SQL to convert the int to varchar.  So you want something like
    select cast(id as varchar(12)) from tableA
    union
    select name from tableb
    If the datatypes are something other that int or varchar, you must find a compatable datatype and then convert one (or both) of the columns to that datatype.
    Tom

  • How can you reinstall SL on a older mini, I just upgraded to Lion .Since I downloaded it, I made a disk copy for the future  when all the kinks are work out. But would really like to go back to SL for now. I tried my reinstall disk, which didn't work.

    I have an older Mac mini  using SL as my last upgrade and really like it.. Just last week I upgraded to Lion, and do not like it,,,I would like to reinstall SL but do not know how to go about it,,,I did burn a copy of Lion and will reinstall it when all the kinks are worked out..Can someone tell me how uninstall Lion and reinstall SL.....Thx

    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • Stop Query if it does not match with Condtions & Control the result count

    Dear All,
    I have requirement in my Environment, I have to stop the Queries which compromises these conditions
    1. If Query is running more than specified threshold (if it running more than 2 mins).
    2. If Query is fetching huge data (rows more than 1000 for example)
    Please note we have done enough study on resource governor, it works on compile time, we need to control the queries during run time. Also resource governor does not restrict the resources if they are free.
    Answers are appreciated.

    Hello,
    I would not advise you to do such things in your environment.2 mins is very less time how could you be so sure a 2 min query is bad. And your second point is totally baseless it wouldtake a query a fraction of secondto read 1000 rows.My answer would be please
    dont implement.
    If you want to test below query might achieve the first requirement, I have not tested it please treat this query as hint and optimize or add anything if required.
    If you schedule this query through agent for every 2 mins or 5 mins .It can achieve.But some query takes more time to rollback than to finish scheduling this would lead to unstable environment
    USE MASTER
    IF EXISTS (SELECT * FROM TEMPDB.SYS.ALL_OBJECTS WHERE NAME LIKE '#KILL_CONNECTION')
    BEGIN
    DROP TABLE #KILL_CONNECTION
    END
    CREATE TABLE #KILL_CONNECTION
    SESSION_ID INT
    ,TOTAL_ELAPSED_TIME BIGINT
    ,START_TIME DATETIME
    INSERT INTO #KILL_CONNECTION
    SELECT
    SESSION_ID
    ,TOTAL_ELAPSED_TIME
    ,START_TIME
    FROM SYS.DM_EXEC_REQUESTS
    WHERE TOTAL_ELAPSED_TIME > 7200 AND SESSION_ID > 50
    DECLARE @SESSION_ID BIGINT
    DECLARE @CMD VARCHAR(1000)
    DECLARE KILL_CONNECTION CURSOR FOR
    SELECT SESSION_ID
    FROM #KILL_CONNECTION
    OPEN KILL_CONNECTION
    FETCH NEXT FROM KILL_CONNECTION INTO @SESSION_ID
    WHILE @@FETCH_STATUS = 0
    BEGIN
    SET @CMD = 'KILL ' + @SESSION_ID
    EXECUTE (@CMD)
    END
    CLOSE KILL_CONNECTION
    DEALLOCATE KILL_CONNECTION godrop table #Kill_connection
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Is there a way to create a playlist that will not play the songs when shuffle is selected?

    I created a playlist of children's songs to play in my kindergarten classroom.  I placed these songs in a specific playlist so I could easilly access them when needed.  Problem is, when I'm working out, I don't want these songs to pop up in my "shuffle" mix.  How do I designate this playlist to only contribute songs when selected?

    You can also set the "Skip when shuffling" property of the children's songs to Yes. Select the songs, Get. Info., look on the Options tab.
    tt2

  • Is there a BADi to control the results of SPL check on partner?

    Hi,
    When a customer / vendor master is transferred from ECC to GTS system, in some scenarios it is getting blocked.
    Is there a BADI available using which we can control this result, and keep a particular partner as unblocked?
    Thank you,
    KM

    Hello KM,
    what kind of scenarios do you mean?
    Are you using positive/negative lists?
    Cheers,
    Gabriel.

  • ITunes Windows do not come to the front when app is selected

    When I Command-Tab to bring iTunes to the front, the open window does not come into focus. This behaviour is definitely not following human interface guidelines. It's the same when I click iTunes from the dock.

    I'm having the same issue. It takes two clicks to bring iTunes window to the front. App switching or clicking on the dock icon will activate the application, but will not bring the iTunes window forward. I either have to click on the dock icon a second time or select iTunes in the app switcher again. Very strange.

Maybe you are looking for

  • How to transfer movies from DVD to Ipod?

    Can anyone tell me how to transfer a DVD to my new Ipod. I'm using windows XP-Pro and iTunes Ver 7.3.2.6. Do I need some sort of 3rd party software?

  • AR Invoice cannot update due date

    Have SAP 2005 installed with 5 databases. In 4 of the databases we can update the due date on the AR invoice screen (As long as document status is open). On one of the databases we cannot update the field. Logging in as manager in all databases. Anyo

  • Burn a DVD-R more than once

    Does anyone know how I can burn a multisession using DVD-R?

  • PSE8 Burn data cd/dvd error

    Hi, Had a search and couldnt find anything for this particular scenario but saw a few other burn issues mainly movies. I have PSE8,Windows 7,new Toshiba Satelellite A500,dont have any cd/dvd burning issues in general,however when I try to use the PSE

  • Extractor for Account assignment

    Hi all, Can any one suggest me any standard extractor which brings the data for the account assigmnent in the ME23N transaction. thanks sam