Custom report region (Conditionaly Split over two rows)

I have a request, to take an existing report that displays data like this:
Pool Performing vs
Non-Performing Current Balance Low Value High Value Value Cumulative Cumulative
WA Low WA High Loss Low Loss High
AA Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
Non-Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
Sub-Total $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
and to have it instead display like this:
AA
Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
Non-Performing $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
Sub-Total $XXX,XXX,XXX $XXX,XXX,XXX $XXX,XXX,XXX XX.XX% XX.XX% XX.XX% XX.XX%
I tried building a custom Named Column (row template), but ran into the issue that ALL ROWS being offset, not just the ones with value for the Pool..
Is it possible to make a conditional row template that will allow for a row to be split ONLY if there is a value in the column?
Thank you,
Tony Miller
Dallas, TX

TexasApexDeveloper wrote:
Paul,
SO glad to hear from you again.... Here is the query that I am using:
SELECT ASET_CAT_POOL_FST_TXT Pool,
DECODE(Display_Order, 0, ASET_PERF_STAT_TXT, 1, 'Sub-Total', 2, 'Grand Total') AS Perf_Non_Perf,
DECODE(Display_Order, 0, 'Normal', 1, 'Bold', 2, 'Bold') AS Css_Tag,
CurrBal,
LowVal,
HighVal,
LowPercent,
HighPercent,
LossHighPercent,
LossLowPercent,
Display_Order
FROM
SELECT Grouping(ASET_CAT_POOL_FST_TXT) + Grouping(ASET_PERF_STAT_TXT) AS Display_Order
, ASET_CAT_POOL_FST_TXT
, ASET_PERF_STAT_TXT
, Round(Sum(ASET_CUR_BAL_AMT), 2)  AS CurrBal
, Round(Sum(ASET_LW_VAL_AMT),       2)  AS LowVal
, Round(Sum(ASET_HIGH_VAL_AMT),      2)  AS HighVal
, Round(100 * DECODE(Sum(ASET_CUR_BAL_AMT),0, 0, (Sum(ASET_LW_VAL_AMT) / Sum(ASET_CUR_BAL_AMT))), 2) AS LowPercent
, Round(100 * DECODE(Sum(ASET_CUR_BAL_AMT),0, 0, (Sum(ASET_HIGH_VAL_AMT)                / Sum(ASET_CUR_BAL_AMT))), 2) AS HighPercent
, Round(100 * DECODE(Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT), 0, 0, (Sum(ASET_CALC_CUM_LOS_HIGH_AMT) / Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT))), 2) AS LossHighPercent
, Round(100 * DECODE(Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT), 0, 0, (Sum(ASET_CALC_CUM_LOS_LW_AMT)  / Sum(ASET_CUR_BAL_CALC_CUM_LOS_AMT))), 2) AS LossLowPercent
FROM ASET_VLTN_RVW_INSTSMRY
WHERE USR_RPT_PBLSH_IND = 'Y' AND Etl_Src_File_Typ_Ind = 'C'
GROUP BY ROLLUP (ASET_CAT_POOL_FST_TXT, ASET_PERF_STAT_TXT)
ORDER BY POOL,
Display_Order,
Perf_Non_Perf DESCAs you can see I am doing a roll-up to get my sub-totaling.. Wouldn't anticipate any problems in going with a conditional named column template with that.
In the report I am using a standard report, with breaks on Columns 1 & 2 (Pool,Perf_Non_Perf). Have you tried using the inscrutable Break Formatting options in the report attributes? Something like:
Break Columns: First and Second Columns
Break Column Style: Repeat Headings on Break
For repeat heading breaks use this format, use #COLUMN_VALUE# subs
<tbody><tr><th colspan="9" class="t17ReportHeader" align="left">#COLUMN_VALUE# #COLUMN_VALUE#</th></tr>(Match up the <tt>colspan</tt> and </tt>class</tt> with your displayed columns and theme.)
Posting data MIGHT be an issue since it is proprietary data, I can try posting bogus data to my hosted area on Oracle's site though..That and access to the workspace would help, or post a <tt>CREATE TABLE</tt> script for <tt>ASET_VLTN_RVW_INSTSMRY</tt> and some inserts for the bogus data here.

Similar Messages

  • Alv output splitting into two rows when converting into excel sheet.

    Hi frends,
    I have alv report with 60 fields . The report output is coming currently .  But when i am exporting into excel sheet from the option local file--> speadsheet  each row is splitting into two rows including header in excel sheet.
    Please provide your valuable suggestions to avoid this.
    Regards,
    Ramu .
    Edited by: Ramu.K on Sep 8, 2009 5:59 PM

    Hi,
    Please use the grid option and with the Spreadsheet button (CntrShiftF7). Do  "Save as" and save it as excel. It should work.
    Regards,
    Pradyumna

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Firefox 13.0.1 shows my menu bar split over two lines, wasting a lot of screen space. Also, my bookmarks drop-down menu in the bookmarks toolbar is now gone,

    Website title and the menu bar used to be on the same top line (I think) - or maybe the website title didn't show on the top line because it was already showing on the tab bar. But now, with Firefox 13.0.1, I have five lines of stuff (from the top, they are: website title; menu bar (File, Edit, etc.); Tabs line; Navigation toolbar/line; bookmarks toolbar) before I get to my actual webpage screen. It used to be four lines, which was tolerable.
    Also, the bookmarks drop-down has disappeared from the bookmarks toolbar - I used to have it on the far right of the bookmarks toolbar.

    Hello again,
    Getting rid of the menu toolbar, the tabs returned to the top and the bookmarks drop-down returned to the right-side of the bookmarks toolbar. I don't know how I had changed the settings - possibly my toddler fiddling with the keyboard..
    Thanks for trying to help!

  • How to divide footnotes over two pages?

    Im typesetting a book with hundreds of (sometimes long) footnotes. I want a rule above the first footnote of the page. I also want footnotes to divide over two pages, if necessary. I had no problems with this in CS4 (but maybe the circumstances were different). Now I'm using CS5.
    Problem one: when there are more footnote references in the same paragraph at the bottom of the page, all the footnotes go to the next page, even when there is enough space for at least part of the first footnote. I have a workaround for it (only leave the first footnote reference in that paragraph, move the other references to somewhere on the next page, setting the text color to none, and put fake references on the original positions), but that's not ideal. Am I overlooking something?
    Problem two: I set the rule dividing body text and footnotes to 0,3 pt an 40 pt length. With a footnote split over two pages, this goes well for the first page, but on the second page there now is a thick, much longer line (the system standard rule for footnotes?). This problem didn't occur in CS4. Anyone knows whether this will be fixed? Suggestions for a workaround? Or did I do something wrong?

    Thanks for your answer.
    First problem: I checked this, there is no difference when I uncheck the Keep Lines Together option. As for the Keep with Next option, I couldn't even imagine what would happen with 700 footnotes... Anyway, using the trick I mentioned solves the problem (the first footnote in the paragraph splits correctly over two pages).
    Second problem: Strange - I have a Dutch language version and I can't find anything that resembles what you mention (see the image). As you see, there is a dropdown for the usual First baseline options and one for Line above (Lijn boven). In the latter you can only choose between "only a line above the first footnote" (my choice) or "above all footnotes (vervolgvoetnoten)".
    Is this different from the English dialog box?

  • Creating two rows from a single row information

    Hi,
    I have data that will always be returned as a single row from a join of tables t1, t2.
    However I want the single row to be split into two rows. i.e First row containing some fields and second row containing th remaining fields.
    I think there might be a thread already existing. Can you please point me in the right direction if it is.
    select t1.c1, t1.c2, t2.c1, t2.c2
    from t1, t2
    where t1.c3 = t2.c3
    I expect the output 2 rows like the following
    t1.c1 t2.c1
    t1.c2 t2.c2
    Thanks

    SQL>WITH t1 AS (SELECT     't1c1_' || ROWNUM AS c1, 't1c2_' || ROWNUM AS c2, ROWNUM AS c3
      2                    FROM DUAL
      3              CONNECT BY LEVEL <= 3),
      4       t2 AS (SELECT     't2c1_' || ROWNUM AS c1, 't2c2_' || ROWNUM AS c2, ROWNUM AS c3
      5                    FROM DUAL
      6              CONNECT BY LEVEL <= 3),
      7       t3 AS (SELECT t1.c1 AS c11, t1.c2 AS c12, t2.c1 AS c21, t2.c2 AS c22, ROWNUM AS r
      8                FROM t1, t2
      9               WHERE t1.c3 = t2.c3)
    10  SELECT   a, b
    11      FROM (SELECT c11 AS a, c21 AS b, r, 1 AS s
    12              FROM t3
    13            UNION ALL
    14            SELECT c12, c22, r, 2 AS s
    15              FROM t3)
    16  ORDER BY r, s;
    A                                             B
    t1c1_1                                        t2c1_1
    t1c2_1                                        t2c2_1
    t1c1_2                                        t2c1_2
    t1c2_2                                        t2c2_2
    t1c1_3                                        t2c1_3
    t1c2_3                                        t2c2_3Urs

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • Number of Rows Displayed in a SQL Report Region

    Hi,
    Just wondering whether it is possible to control the 'Number of Rows' displayed under the 'Layout and Pagination' section within the Report Attributes page.
    Basically need to know if I can programmatically control this or even better, can it be customized by the user as the user may want to see say 15 rows, 200 rows or 'All' rows of a certain region on the page. FYI, I have three different report regions on one page and want to give the user the flexibility to modify the number of rows displayed per region.
    Thanks.
    Tony.

    Tony,
    you can find that in this how-to document:
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_report_rownum.html
    Denes Kubicek

  • How to get the number of rows in a report region

    Hi all,
    Is there a way to get the number of rows returned in a report region, without issuing an additional "select count(*) from some_table"?
    I mean something like the substitution string #ROW_NUM# but for the total rows.
    Thanks,
    Pedro.

    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/ui.htm#CHDDGGEG
    For classic report regions, the region footer supports the following substitution strings:#ROWS_FETCHED# shows the number of rows fetched by the Oracle Application Express reporting engine (the page size). You can use these substitution strings to display customized messages to the user. For example:
    Fetched #ROWS_FETCHED# rows in #TIMING# seconds.
    *#TOTAL_ROWS# displays the total number of rows that satisfy a SQL query used for a report.*
    #FIRST_ROW_FETCHED# and #LAST_ROW_FETCHED# display the range of rows displayed. For example:
    Row(s) #FIRST_ROW_FETCHED# through #LAST_ROW_FETCHED# of #ROWS_FETCHED# displayed>
    Ta,
    Trent

  • Vertical calcuation (Calcuation b/w two rows ) in Reports

    I am trying to create an report, where, I want to see the % change between two rows. For Eg. What is the %age +/- between January 2008 and January 2009. I am not able to display that value in reports. I have two seperate reocords for each customer for january 2008 and January 2009. Any help will be really appreciated..

    yudhvimor, you will get the best results if you post this question in the CRM On Demand Analytics and Reports forum. Thanks for your help.

  • How to stop table row from being split onto two pages

    How do I stop a row of output from being split between two
    pages. When the CFDocument loads, sometimes, the last row on a page
    "spills" over onto the next. I'd like to figure out who to prevent
    these "orphans" from happening, and force the row onto one page or
    the other.
    Here's my code for the doc... I have a sp that querys the sql
    db. Using CFDocument - CF Version 7.02

    If you know roughly how many lines of output will fit on a
    page (you can test to find out), then you can count result lines
    (you should be able to use RecordCount and do some math) and cfif
    against your counter and force a page break beforehand if the next
    table will be too much to fit on the page. Then just reset the
    counter after you page break.

  • Merging two rows in report

    Hi,
    I want to merge two rows in my reprt.For ex:
    <u>Now my report is showing in this format:</u>
    Customer Plant Value
    A             B      0
                B   12.5
    <u>I want to make it as</u>
    Customer Plant Value
         A           B   12.5
    Any suggestions. Thanks.

    You can try doing a lookup for your field A at the cube or the ODS level[in your update Rules].
    You get two different records because your Field A is # not assigned in this record. Try populating your field A doing a lookup to other related ODS or cube based on your key fields. This would get you a single record with all the fields and a single record at the report level.

  • Custom report row template

    Few questions when using a custom report row template. Followup to the discussion Report Row Template: Column condition
    1. The row template allows full control how the entire row is rendered. I can see this being used when the report query returns a single row and we need to format it in a very specific way. But when the query returns multiple rows, how is the specified Row Template used? i.e the first row is "consumed" and rendered as per the template. If the same process is repeated for subsequent rows, how can we control whether successive rows are rendered across the page (left to right) or down the page (top to bottom)?
    2. When a custom row template is used to render a tabular form, the hidden columns (marked Edit=Y, Show=N on Report Attributes) are present in the markup even when they are not specified in the row template! i.e. the MRU process works. Of course, this is a good thing but I was curious to know what exactly controls this, what part of the report template controls where the hidden form elements are placed?
    3. Any number/date formatting specified declaratively on the Column Attributes page appears to be taken into account when column values are substituted in the template using #COL# notation. But all the other Column Attributes are ignored (alignment, sum, show, link, etc). Is there a way to use the Link attribute to declaratively specify the link so the value of the column #COL# as seen by the report template includes the A tag?
    Thanks

    Comments? Thanks

  • Current Header Rows from FBL5N in custom report

    Hi,
    If you go to transaction FBL5N into settings -> Layout -> Current Header Rows, you're able to change the header outputs at the top of each ALV List. I'm trying to do the same with my custom report, but when I go to settings -> Layout, I dont have the option to choose current header rows. How can I add this feature to my custom program?
    Thanks in advance,

    Hai JJ,
    Here u can full the data in Vendor master record in Payment Transaction u can fill the data like Cityn, Bank key and Bank account, and one payment transaction in code code data here also u can maintain House Bank then execute the FBL1N definetly system showing the House bank.
    Regards
    Madhu I

  • How to create a report region which the first colomn is row selector column

    I want to create a report region and its first column is a row selector column. I have used select sentence to select some columns. But I do not know how set the first column to row selector column. I mean I want to do as follow. When a radio which is first column is chosen, it will return it's value of the column in the chosen row. Please help me! Thanks

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

Maybe you are looking for

  • Formatting non-English Characters in Database Extracts

    Hi I am trying to create data flat file with Oracle SQL extracts. The data file is position based i.e. Position 1-30 for First Name, 31-50 for Last name, etc. I encountered problems when the data fields contain non-English characters. The position sh

  • 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,

  • Getting "null" in output with array

    Could someone please help me in knowing why my output is off? I know where the error is occuring, but I cant figure out what is going on. Any help is appreciated and I thank you beforehand. Sorry it is so long, but I wanted to provide enough informat

  • Installing Oracle Management Agent in 11g database(11.2.0.3)

    Hi, Error occurred, While installing the agent in 11g database. Error is listed below [oracle@grid agent]$./agentDeploy.sh AGENT_BASE_DIR=/ebiz/oracle RESPONSE_FILE= agent.rsp AGENT_BASE_DIR=/ebiz/oracle Validating the OMS_HOST & EM_UPLOAD_PORT Execu

  • DWR + ADF Bindings get Binding Container at the Filter level

    Hi I'm still pressing on to use DWR with the ADF Bindings. To do this, The managed bean method called from javascript needs access to the BindingContainer object or the "#{bindings}" property which is not available out of the box when setting up DWR