Group Left report does not sort DESCending

Hello seniors...
i have the following query that produces result as desired below at SQL level; i am aiming at rows to be displyed in the DESCending order..
SQL> SELECT Z.ACATG_TYPE, Y.EXPN_CATG, z.ACATG_DESC, y.expn_code, y.expn_name,
  2  DECODE(Z.ACATG_TYPE,'I', x.closing) Income,
  3  DECODE(Z.ACATG_TYPE,'E', x.closing) Expense
  4  FROM(
  5  SELECT PSN_PARTY, expn_name, SUM(nvl(NETT,0)) nett,  SUM(nvl(DEBIT,0)) debit,  SUM(nvl(CREDIT,0
)) credit,
  6  SUM((nvl(NETT,0)+nvl(DEBIT,0)-nvl(CREDIT,0))) CLOSING
  7  FROM (
  8  SELECT PSN_PARTY, 0 nett, SUM(nvl(debit,0)) DEBIT, SUM(nvl(CREDIT,0)) CREDIT
  9  FROM(
10   SELECT PSN_TXN_DATE,PSN_PARTY, nvl(DEBIT,0) debit, nvl(CREDIT,0) credit
11   FROM
12       (
94  where PSN_PARTY = expn_code
95  GROUP BY PSN_PARTY, expn_name) x, expense_master y, Accounts_category z
96  where x.psn_party = y.expn_code
97  and   y.expn_catg = z.acatg_code
98  and   z.acatg_type in ('I','E')
99  ORDER BY Z.ACATG_TYPE DESC, Y.EXPN_CATG,y.expn_code;
ACA EXPN_C ACATG_DESC                     EXPN_C EXPN_NAME                             INCOME       EXPENSE
I   90     Income                         AC2000 Sale                                1333.000
E   10     Expense                        AC0003 ELECTRICIRTY BILL                                   30.000
E   10     Expense                        AC0005 TELEPHONE BILL                                      16.000
E   10     Expense                        AC0007 TEA & SNACKS                                        17.000
E   10     Expense                        AC0009 REPAIRS & MAINTENANCE                               15.000
E   10     Expense                        AC0010 MOBILE BILL                                         45.000
E   10     Expense                        AC0011 REFUND                                             220.000
E   10     Expense                        AC0019 OFFICE EXPENCE                                      15.000
E   40     Staff Salaries                 AC0006 STAFF SLALARY                                      250.000
9 rows selected.But when i made use of the above query in my report with Group Left Option, i dont get it sorted in DESCending order.
With Tabular type report it sorts correctly as above.
The screen schot for better idea of my report is attached for the reference.
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP.jpg|Report-Preview]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP1.jpg|ReportWizard-DataModel]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP2.jpg|ReportWizard-Groups]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP3.jpg|ReportWizard-Fields]
[http://i995.photobucket.com/albums/af71/rhnshk/INCEXP4.jpg|ReportWizard-Totals]
i want the rows with acatg_type = 'I' to be displayed first.
Sorry for not attaching the complete SQL, but no issues if at all required, i can do that as well.
Since its a long in-line view created SQL. thought the solution might come out showing this much part only.
i am using Report 6i on 10g.
Please help me.

Thanks Arif,,
Grouping/Break i need to be done with EXPN_CATG-within-ACATG_TYPE.
if you can view the my report image links, u'll understand much better.
EXPN_CODE is not part of the Group Fields.
Still i tried re-arranging Group fields, but still the same..
Row with ACATG_TYPE = 'I' is not moving up.
Please suggest..

Similar Messages

  • How come sortable col in a report does NOT sort?

    Instead it displays the "No Data Found Message".
    Could it be that the Name that I use in Column Link too long? It's 28-char long, like "Pxx_abcdefghijklmnopqrstuvwxyzab".
    Thanks much,
    Helen

    I want to add more info here -
    In a different page (say Page#20), I also have reports, with sortable columns and PPR=Yes, within page. They work fine - no problem.
    And in this page (say, Page#30), I have reports, with sortable columns and PPR=Yes, within the page. But the sort does not work (ie: upon clicking on the sortable columns, No Data Message shows up.) As I mentioned earlier, I noticed that there are very long column name + link column in the report.
    Thus, could it be possible that
    1) ApEx sort has the column names or/and link column character limitation? (However, by turning PPR on and off appears to prove that it has nothing to do with the length of column names.)
    2) is there any limitation on the number of sortable columns in ONE single application?
    Anyone can shed some light??
    Thanks,
    Helen

  • WebI XI 3.1 Report does not fresh in IE6 but it does in IE7

    Short Text    
    WebI Report Does Not Refresh in IE6    
    Long Text    
    BO XI 3.1 Windows Server 2003 x64, XP Desk tops with a mixture of IE6
    and IE 7.
    We have a universe with managed access rights enables at the group
    level. The groups we have are: Batu, AUS, and Admin. When someone logs
    in as TEST_USER_BATU (user is in the Batu group) the report does not
    refresh. The LOVs can be refresh but the report comes back blank. When
    we repeat the same work flow in IE7 the report comes back with data.
    We have repeated this test on several computers including the servers
    running IE6.       
    Steps for Reconstruction    
    1)Create Universe with managed access restrictions
    2)Restrict groups at the row level including LOVs (see below example)
    2.a) Batu Group
    2.b) AUS Group
    2.c) Admin Group
    3) Create restrictions for the Batu and AUS group only.
    4)Create generic WebI report applicable for all groups
    5) Run WebI Report using a different account for each account in
    different group.
    6) You will find that the users in the restricted groups can not
    refresh the report but the user in the admin group can run the report

    Hi all,
    Thanks for your responses but nothing seems to be working.
    @Mark, Sahil: The properties of the field  is set as type "DATE" in the universe.
    @Manpreet: Not feasible with timestamp data.
    @Anuj: I tried your solution. But it does not work. Its really weird. The date part of the string gets sorted but the time part does not. I have tried splitting the data into date and time into 2 seperate variables and then sorting them, but still the time does not get sorted. The time is also converted to 24 hour format. I have also tried removing the blanks in the data  between date and time and converting the same to number. No effect.
    Any other ideas?
    Kind regards,
    Minuj

  • Group Left report: problem in order the columns

    Hi,
    I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
    The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
    I created laxical variable in order to change order by clause dynamically.
    Any suggestion?
    Thanks in advance
    Dip

    Hi,
    I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
    The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
    I created laxical variable in order to change order by clause dynamically.
    Any suggestion?
    Thanks in advance
    Dip

  • Help with Group Left Report

    Hi everyone,
    I created a Group left report with 4 grouping columns.Everthing is working fine but i am getting some problem with the order of the 3rd column(varchar).It is doing ascending order(As the Break order Propoerty of that column is ascending).
    But i am trying to do is the 3 rd column needs to be displayed by a specific (order by clause)
    But in group left report it is not considering the (order by clause of the query).It is doing sort by the grouping columns.Is there any way that i can sort a grouping column(other than asc and dsc).It needs to be displayed in the order of another column.
    Thanks
    phani

    Create another column (either in the query, or in the data model as formula) that would indicated the rank according to the desired sort order. You don't need to place the column into the layout, but use it to set the break order in the data model.

  • Order by group left report

    Hi,
    I have a sql which contains an order by clause (order by field1, field2), the query runs fine in SQL*Plus.
    I tried to create a Group Left report in Reports 10g. When I run the report, it disregards the order by clause.
    The report works fine if I picked tabular.
    Thanks in advance
    Tushar

    Let us take an example of a table with the following structure -
    create table test (grade varchar2(3),
    detail varchar2(10));
    Here GRADE is the column which contains numbers as well as alphabets or
    alpha-numerals.
    A normal query on the table would result in the following -
    select grade, detail from test
    GRADE DETAIL
    1 DET1
    1 DET2
    1 DET3
    1 DET4
    2 DET1
    2 DET2
    2 DET3
    5 DET1
    A DET1
    A DET2
    B DET1
    B DET2
    B DET3
    B DET4
    10 DET1
    10 DET2
    10 DET3
    If you want the GRADE to be sorted in a numeric order first and then alphabetically,
    you can use the concept explained .
    select grade, detail
    from test
    order by decode( TO_CHAR(NVL(LENGTH(TRANSLATE(grade,'A1234567890','A')),0)),
    '0',LPAD(grade,8),
    grade)
    GRADE DETAIL
    1 DET1
    1 DET2
    1 DET3
    1 DET4
    2 DET1
    2 DET2
    2 DET3
    5 DET1
    10 DET1
    10 DET3
    10 DET2
    A DET1
    A DET2
    B DET1
    B DET2
    B DET3
    B DET4
    If you were to write the above query in Oracle Reports (tabular style),
    the output would be the same as above.
    But if you create a group left or group above style with GRADE as the
    higher group, the same query would give the following result -
    GRADE DETAIL
    1 DET1
    DET2
    DET3
    DET4
    10 DET1
    DET3
    DET2
    2 DET1
    DET2
    DET3
    5 DET1
    A DET1
    DET2
    B DET1
    DET2
    DET3
    DET4
    This is because although the server sends back the resulting set in the desired
    ordered fashion, the grouping on grade does a further sort (ascending - the
    default). But this sort is done alphabetically since this is a varchar2 column.
    To avoid this or to achieve the desired output (numbers to appear sorted first
    and then alphabets), use the decode in the select list itself.
    Now the query for the report becomes -
    select decode( TO_CHAR(NVL(LENGTH(TRANSLATE(grade,'A1234567890','A')),0)),
    '0',LPAD(grade,8),
    grade) grade
    , detail
    from test
    The order by clause in the query is irrelevant since the grouping inside reports
    anyway does the sort. The result would look like
    GRADE DETAIL
    1 DET1
    DET2
    DET3
    DET4
    2 DET1
    DET2
    DET3
    5 DET1
    10 DET1
    DET3
    DET2
    A DET1
    DET2
    B DET1
    DET2
    DET3
    DET4

  • AR aging report does not print alphabetically by customer name in 8.8

    AR aging report does not print alphabetically by customer name in version 8.8.
    It is possible to create a custom layout for the receivables aging summary report (to print alphabetically by BP name) to overcome this problem. However, itu2019s not possible for the u201Cdetailed receivables aging reportu201D or u201Ccustomer statement reportu201D.
    Why has SAP changed this functionality? In version 2007 SAP takes the order of the rows set on the screen unless other order is specified in the layout.
    How can we make the u201Cdetailed receivables aging reportu201D and u201Ccustomer statement reportu201D print alphabetically by customer name?
    Steps to reproduce:
    Business partners > Business partner reports > Aging > customer receivables aging
    Doubleclick on customer name to sort it in alphabetical order.
    Click on preview and select u201Creceivables aging summary reportu201D.
    The system layouts do not print by customer name in alphabetical order.
    Click on preview and select u201Cdetailed receivables aging reportu201D. The system layouts do not print by customer name in alphabetical order.
    Also, customer statement report does not print by customer name in alphabetical order.
    In SAP 2007 versions, when a marketing document or aging report is printed, SAP takes the order of the rows set on the screen unless other order is specified in the layout.
    In SAP 8.8 although it works the same way for marketing documents, it doesnu2019t work like this for Aging reports.
    I was able to change the order for the u201CReceivables Aging Summary Reportu201D only.  We cannot overwrite a System report, I had to create a new layout called:  u201CBusiness Partner Aging (Summary) (Alphabetically Sorted)u201D.
    I couldnu2019t set up the order based on BP Name for the other 2 options: Detailed Receivables Aging Report and Customer Statement Report (One page per Customer).
    Iu2019ve checked print settings and properties, and I donu2019t see any way of changing the default order for these reports.

    Reported it to SAP support + they plan to fix it in a future patch.

  • How to design Group Left Report using RTF method ( XML Publisher )

    Hi,
    I need to design Group Left Report using basic RTF method. I am able to design basic simple report and Group Above Report but I am not getting Group Left Report. Can anyone help me out.
    Thx N Regs,
    Khan.

    Group Left report can be done using table consisting of 1 row and 2 columns. Group header goes to the column 1, group details go to the second column. Group details can be also designed using table, in this case you get table within table cell. "for-each.." statement for the upper level group to be placed in the left column before the group header data. "end for-each.." to be placed in the second column after the detail data.

  • Need help in group left report

    i need help in group left report
    i am making group left report in which all group data on top is repeating as many time as detail record is .
    for axampel
    if
    group record:
    fielda fieldb field c
    fielda fieldb field c
    fielda fieldb field c
    fielda fieldb field c
    detail record :
    fieldd fielde feildf
    fieldd fielde feild
    fieldd fielde feild
    fieldd fielde feildf
    how i can show group record on top once and on each group record show detail record belong to master record.
    plz help me
    A.R

    I think you Should go for Group above report...
    and if you want group left only and also want to display master once then
    put all master fields above but yeah take care of it's master repeting frame
    it should not change...
    and if you want i can send you an example...
    Enjoy Oracle...

  • How to build a Matrix with Group Left Report

    I want to build a Matrix with Group Left Report,not Matrix with Group Above Report,i am still finding the solution, any help is useful.
    thanks
    <[email protected]>

    Hi,
    The problem in your output is not clear. The report output should appear like:
    Order Mode.....Sales_Rep_ID > 10..11..12..
    Online.........Order Status
    ...............A..............x....x...x
    ...............B..............x....x...x
    ...............C..............x....x...x
    Order Mode.....Sales_Rep_ID > 10..11..12..
    Retail.........Order Status
    ...............A..............x....x...x
    ...............B..............x....x...x
    ...............C..............x....x...x
    Here "Order Mode" is the group field (it repeats for every group). Could you pl specify what output you are getting?
    If the problem is that you don't want the Title (like "Order Mode" in the above example) to print in every group, just place it outside the group repeating frame. It will print only once.
    Navneet.

  • AP Group VLAN "Feelgood" does not exists on controller.

    Hi,
    While appling tenplates from WCS, i getting status report error message AP Group VLAN "Feelgood" does not exists on controller.
    I have double  checked the perticular AP group WLAN is created & mapped to the correct interface in the controller. This is not first AP group created on the controller, other AP groups are working on the same controller.
    Is there any Bug?
    Thanks

    Typically you still need to make sure that the country codes are indeed configured on the WLC. Thing can change when you upgrade code as standards might of changed and regulations also. If your AP's are functional, then you should be okay and I wouldn't worry too much about it, but if after the upgrade, the WLC complains about country code stuff, then you just need to verify that the AP's country code is defined on the WLC. May times the AP will not join and if it does join, the radios might be disabled or in a down status.
    Sent from Cisco Technical Support iPad App

  • Bex report does not show loaded data at once

    Hi experts,
    Why Bex report does not show loaded data at once after loading is finished but after some time?
    Could be the reason of it:
    a) huge amount of data in infocube.
    b) there are no deleting/creating indexes before/after loading, because it takes too much time
    c) anothe reason?
    Thank you,
    Tigr_Z

    Hi Tigr,
    A and B both can be the reasons behind, but normally in case of B option the results on report output can be wrong like duplicates sort of showing you double figures.
    C - it can be resource issue, so please look into all and double check with basis if thats the case.
    Regards
    Sunny

  • BI Publisher Word Template The report does not contain any data fields.

    I have OBIEE BI Publisher report (10.3.4) working fine using BIP but using MS Word 2003 I want to create new template and want to add charts etc.
    Step 1. In MS Word I successfully login Oracle BI Publisher as Administrator
    2. Oracle BI Publisher -> Open (I open the report)
    3. Go to Insert -> Table Wizard
    I get this error:
    The report does not contain any data fields. Please make sure that the reports generates data with the default settings or provide a valid XML file.
    Please help

    Hi
    How do I load XML data? Also why XML data load is required? Do I have to export XML data from BIP View screen and load from the same file from the word?
    Please clarify
    Thanks

  • My left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    my left click does not work on my track pad on my macbook pro 13 inch, is there a fix

    I recommend you to run Apple Hardware Test > http://support.apple.com/kb/ht1509 It's possible that something is damaged, and Apple Hardware Test will help you finding it. Make sure you tick the option to run an extended test, and connect your Mac to the charger.
    If your Mac came with DVDs, you have to insert the Mac OS X DVD to run Apple Hardware Test. As you haven't got the SuperDrive, you will have to buy an external optical drive

  • WT reporter does not show split for tax authorities!

    Dear all:
        I need to report for all employees some WTs of taxes, but wt reporter does not show the splits for them (to distinguish federal from statal authorities payments), it is like summarises all the same WTs... I tried payroll recon. report but this one does not output the data in ALV format (im in 4.6 version) so it is not useful to run in bulk
    Do you have any work around for this?
    I would appreciate any tip or workaround on this,
    Thank you!

    Hi
    1. Allocated costs are always treated as Fixed costs, unless you have booked the expenses in FI using Activity Type as Aux Account assignment object
    2. Check whether these costs are included in Inventory valuation in your Cost Comp Str in OKTZ... If not relevant for inv valuation, these costs wont show up for Variance calculations
    br, Ajay M

Maybe you are looking for

  • My iPod Air doesn't sync from Aperture properly.

    I can sync up to 5000 pictures without problems. If I go for a full sync(35,000 pictures), the sync gets interrupted, all existing photos from iPad are being deleted, and there is an error message saying that my iPad could not be synced because the s

  • No camera settings anymore

    When I updated my iOS to iOS 5, I cannot see any settings for camera.i used to be able to change settings for camera especially for video shooting. An option between standard and HD. But there's no such option now. Help!!!!

  • *NAME error in runallocation

    Hello, I am using BPC MS 7.5, when I try to validate a script logic with allocation it gives me an error. Specifically these two things- *NAME=Profit_reverse *APP              WHAT=revenuerptg;                                      WHERE=revenuerptg; 

  • TX Media program locks up computer

    I have my Palm Desktop installed on two computers . . . home and work.  Media USED to work.  Now, when MEDIA is clicked, it locks up the Palm Desktop on both computers.  What needs to be done?  Thank you. Dave Post relates to: Palm TX

  • HOW MUCH FREE SPACE IS ON A 64 GIG I-PAD 3 FROM FACTORY?

    HOW MUCH FREE SPACE IS ON A 64 GIG I-PAD 3 FROM FACTORY? Mine had 57.5 gigs at start.