Formatting Crosstab Columns

Hello. I am new to Discoverer and I had a question about formatting crosstab (outline) columns. The first column lists our employee names, while the subsequent columns have different pieces of information from the employees' expense reports (ie- lodging, transportation, etc). When drilling-down to obtain additional information (ie- destination), there is some blank destination information (showing as a "0'), that I want to format. Here is an example of what the report looks like:
Employee Transportation Lodging Meals
JOE SMITH $100 $200 $100
Miami, FL $50 $75 $25
Atlanta, GA $0 $75 $50
*0* $50 $50 $25
Is there a way to format just the employee/drill-down column to read as N/A instead of '0' without affecting any $0 data in the other columns?
I also tried to create a condition to replace any 0(null) information with something else, but the condition did not work. Anyone have any ideas?
Thank you,
Erik

Sorry, tried that. It formats all of the columns to the same null value of "N.A." So, the $0 example shown above would show up as "N.A.", which I don't want.
I want to get the null drill-down (destination) data to show up as "N.A.", while keeping the rest of the columns as a "0" value for anything null.
Thanks,
Erik

Similar Messages

  • Crosstab Column format

    Post Author: Julio Quintana
    CA Forum: Publishing
    I have a problem when I publishing a report, When I desing the report in Crystal Report XI I Format the Crosstab column with 90 Degree of rotation but When i publishing this reports in business objects the crosstab columns are horizontal, What can I do to fix this problem

    Post Author: ishu
    CA Forum: Publishing
    hello,any bright ideas? i am also stuck with this problem. any help would be much appreciated.thanks.

  • CSS(?) formatting crosstab

    Hi,
    I have got a question related to changing format of column name in crosstab (I want to use "wrapping mode"),
    I believe if it is possible at all it should be done by CSS,
    can you give me a small hint, is it possible at all,
    Can I find some reference for all the possible things that can be changed within CSS?
    Thanks,
    Marcin

    Hi Marcin,
    try to use the following piece of CSS  to get a sort of wrapping
    .sapzencrosstab-HeaderCellContentDiv {
           white-space:normal!important;

  • Problem in Formatting Total Column in Classic Table

    Hi,
    I am using Classic Table.
    I am able to format the column data but i am unable to format the column total value. I searched in forum and tryed something like in the following thread..
    Problem in formatting Total Value in advanced table
    since i am using Classic Tables i am unable to do it.
    I also tried the following
    OATableBean table = ....
    OATotalRowBean totalRowBean = (OATotalRowBean)table.getColumnFooter();
    System.out.println("Formattotal : "+totalRowBean);
    if (totalRowBean != null)
    oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.00;#,##0.00","#,##0.00;#,##0.00");
    totalRowBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    in this case the total is not formatted.
    I also refered developer guide. There i found how to set value to total column.. but how to get the value its not given..
    Any body pls help in this regards
    Thanks & Regards

    Hi,
    When i am using Classic Table i am able to format column data but i am not able to format the column Total
    Code i using ;
    OATableBean table = (OATableBean) webBean.findChildRecursive("EmpTestVO12");
    table.prepareForRendering(pageContext);
    OAMessageStyledTextBean totalBean = (OAMessageStyledTextBean)table.findChildRecursive("Salary");
    if(totalBean!=null)
    Formatter formatter = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    totalBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    //Properly formatting column data
    Whe i am using OAAdvance Table bean i am able to format the total but i am unabele to format the Column data. Using following code..
    OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findChildRecursive("region2");
    tableBean.prepareForRendering(pageContext);
    OAColumnBean c1=(OAColumnBean)webBean.findChildRecursive("column12");
    if(c1!=null)
    c1.setAttributeValue(CURRENCY_CODE,"USD");
    Can anybody pls tell me how can i achieve both (column values and totals formatting) using either Classic Table or Advance Table..
    Thanks & Regards,
    Ram

  • Conditionally Formatting One Column Based On The Value of Another Column

    I have the following requirement:
    I have 2 columns in a report showing Actual Sales & Budget Sales each year. I am using a bar chart to show the different values for these 2 columns.
    I need to conditionally format the column "Actual Sales" so that if it is less than the "Budget Sales" it will appear in red, and green if "Actual Sales" is greater than "Budget Sales." So in a nutshell,
    CASE WHEN "Actual Sales" < "Budget Sales" THEN
    RED
    ELSE
    GREEN
    END
    Thoughts anyone?

    CASE WHEN (COL1 - COL2) < 0 then Red else Green end
    regards
    John
    http://obiee101.blogspot.com

  • Possible to hide but not supress Crosstab column totals?

    The reason I ask is because I really don't want to show the whole crosstab column totals section.
    Only reason I need the column totals of a crosstab is because I am taking some field values off of it by defining variables using a supression formula.
    I then take the variable and make a calculation on the crosstab itself... just not on the column totals.
    So simply put,
    Any way to 'hide' column totals in Crosstabs?  Supressing it in Cross-tab Expert would render my declared variables to zero.

    Hi Brian.
    Unfortunately, the column that would-be hidden using your method would also be something I need to show in the actual Crosstab summary calculations.
    Ultimate goal is to show all the summary calculations but just hide the "Column Totals" which also has a supression formula declared in order to use that variable in a display string within a Crosstab summary field.
    A bit complicated without showing the Crosstab but that's the best way I can explain it I guess.

  • Is it possible to make a condition for formatting multiple column?

    I am working on financial report like Balance Sheet. So that I am going to have 2 column and 1 on left, 2 and 3 on right.
    I tried to use format multiple columns but can't find any method to define where to break.

    when you create a stored procedure or use a command file( i believe) you can create CASE statements
    CASE WHEN ='BLUE' THEN 'COLUMN1'
    WHEN ='GREEN' THEN 'COLUMN2' END AS BUCKET1
    when you use this as the dataset you will see this as a field
    you can then group by the fields created.

  • Alternative to pre .. /pre formatting of columns?

    Hello,
    is there an alternative (maybe css-style - is there a list of these predefined definitions anywhere?) to the <pre>...</pre> formatting of columns.
    The problem of this way of doing it, is that the highlighting feature is not working any more.
    Ralf

    Check for that date 0001.01.01 00:00:00 000 in the script, why so hard?
    But really, I'd use the Conditional Split and check for string representation of the date diverting incorrect records.
    Arthur My Blog

  • Crosstab column formatting

    I'm creating a crosstab report with a Current Year & a Last Year column.  I've added 2 calculated columns to show a variance $ and a variance % between current & last year.
    I have no problem coming up with the results.  My dilemma is to format the 2 added columns as currency and percentage.  When I try to change the percentage column's format to percent, all other columns in the crosstab also change to percent.
    Can someone out there tell me if there's a way to create 2 different formats for the 2 added columns?  I'd really appreciate it.  Thank you very much for your help.  I've been struggling with this issue for quite sometime.

    Hi Fione,
    Here's what you need to do:
    1) Assuming that the datatype of the field used in the 'column' of the Crosstab is 'Date', right-click the 'Variance $' header cell > Select Calculated Member > Edit ColumnValue Formula and use this code:
    Cdate(1890,01,01)
    2) To the same for the % column however, use this code:
    Cdate(1890,01,02)
    3) Right-click one of the summary cells in the 'Variance $' column > Format Field > Number tab > Customize > Currency Symbol tab > Check 'Enable Currency Symbol' > Click the formula button beside 'Position' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    crLeadingCurrencyInsideNegative
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    crTrailingCurrencyOutsideNegative
    4) Click the formula button beside 'Currency Symbol' and use this code:
    if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,01) then
    "$"
    else if GridRowColumnValue("Date_Field_used_in_column") = cdate(1890,01,02) then
    else ""
    Note: In both the formulae above, replace "Date_field_used_in_column" with the database field you've used in the crosstab's column. The double quotes ARE NEEDED and make sure to remove any parenthesis that CR automatically addds when you add a database field in the formula editor.
    Let me know how this goes.
    -Abhilash

  • Crosstab column width in HTML output

    Hi,
    I have problem with column width in a crosstab report with html ouput.
    I can not find a way to control the column width, and the more I try to control this either with word table properties or with xsl attribute, the more messy it gets!
    Now the columns gets superwide and I dont have clue how to control this...
    Ant ideas of how to set the column width in the rtf template fot html output?
    It looks fine with pdf output...
    Br
    Magnus

    Thanks for your tip, but I did not do the trick exactly.
    Can you get help for this in the User guide? I have read it thru without anything...
    Anyway, I couldnt get it right with the Autofit to Window either, I need to set this for specific columns only, but when I do it on the first columns MS Word rearrange the whole table...
    Do you use it on certain columns or the whole table?
    I have to say, I have a quite complex template with several tables within other tables, and this maight mess things up...
    BR
    Magnus

  • Formatting for columns in group above report(non grp col)

    Hi
    I have a report that is group above. So for every record that appears in the group above, below is the corresponding fields. What I am trying to do is apply formatting like font, hide/show etc to the rows below. How can I do that.
    record1...............................<group above>...
    <corresponding columns-latest>
    <corresponding columns-old>
    record2...............................<group above>...
    <corresponding columns-latest>
    <corresponding columns-old>I want to be able to compare latest and old for a particular record and hide/show depending on if the value has changed. I only have one query for this report that is group above. Is it possible?

    Like you did select * from ....(select....)... In reports I wasnt able to create a col to col link for such cases. I need to have the db columns directly in select.
    Secondly, for a workaroudn i even changed that - next challenge was treating xmltype columns using xmlsequence as db columns. So if I have xmlsequence in my query, i cant create col to col link. I have 4 queries with unions. 2 have xmlsequence and 2 doesnt. When i create col to col link for cases with xlseq, it forces me to create a grp link... When i have queries without xmlseq, i can create the col to col link.

  • Is it possible to change an existing PDF from brochure format (2 columns) to single page?

    I have an old PDF, but not the source document. It is in two-column format, that is, two pages of text on one PDF page. I've tried converting to Word in Acrobat Pro XI, but that still preserves the two-column format. It's too big and complex to reformat in Word. I'd like to simply have each of the columns on their own page.

    You can copy the page and crop the left and the rigth column.

  • Formatting a column in a datagrid

    If I want to format some data in a column of a datagrid is
    there a preferred way of doing that? I have used both an
    itemRenderer and a labelFunction
    Is there a preference to one or the other?

    lableFunction can be used when the tweaking required is very
    trivial and you want to modify some text getting displayed.
    (custom) itemRenderers can be used when we want to display
    something complex within a cell like few controls, icons, labels,
    links etc.

  • Formatting a column in numbers

    I am using the travel planning template in numbers. I tried to enter a 10 digit confirmation number but it is being displayed in a format similar to scientific notation. I tried adjusting the column width. Can anyone please tell me how to adjust the formatting to allow for this type of a data format?
    I am using a new macbook with mac os x 10.5.4

    We may add the ZERO WIDTH NO-BREAK SPACE ($FEFF) at the end of the "number" so, it will keep its leading zeroes and don't be displayed in scientific format.
    Yvan KOENIG (from FRANCE lundi 14 juillet 2008 11:17:33)

  • Crosstab Columns Need to be two different date ranges

    I'm fairly new to CR and don't know crystal or basic syntax or any coding really.
    Using the crosstab expert, I need two columns that are based on a range of dates.  Unfortunately the range of dates are not any of the choices I have when I just bring the date into that column box in the expert.
    My two columns:
    Column 1 = 11/01/2007 12:00:00:00 AM to 10/31/2008 12:00:00:00 AM
    Column 2 = 11/01/2008 12:00:00:00 AM to 10/31/2009 12:00:00:00 AM
    When I insert a crosstab and use the expert I have two choices for the columns box.  I can either create two new formulas or use the group options.  I've tried my very inexperienced hand at creating some formulas with laughable results.  The group options, although lovely, don't meet my very specific date needs.
    Anyone out there have the time to help me?  It would be much appreciated.

    Hello Anne,
    Try creating a formula similar to the following;
    if in datetime(2007,11,1,12,00,00) to datetime(/2008,10,31,12,00,00)
    then "11-2007 to 10-2008"
    else if in datetime(2008,11,1,12,00,00) to datetime(/2009,10,31,12,00,00)
    then "11-2008 to 10-2009"
    and use this formula as the column field in the crosstab.

Maybe you are looking for

  • Sending data from flat file or oracle table view to a IBM MQ

    Hi, We need a help in developing solution. We have a scenario, where data(multiple records) in source (table/file) needs to populated into a queue(JMS IBM MQ) as a single message. To achieve this we are trying a two step process. 1)     We created a

  • Extending VLAN across Data centers

    I hope you can help, I have 2 data centers connected via a L3 10gb (dark fiber) now I have a few more fiber strands available between the 2 data centers; so for Disaster Recovery and server clustering (requiring same subnet) does it make sense to ext

  • Firefox won't open any sites that I've never been to before

    Firefox will not open any new sites that I have never been to before nor will it let me search for any questions that are new on the little search feature on the top right of the screen. All sites that have been previously visited are fine - for new

  • Accept call problem?

    plz kindly reply,  when i press accept receiving call its goes to yellow reject option? and my call reject i dont know every thing works fine, thanks Solved! Go to Solution.

  • Error when trying to export to wmv

    i keep getting an error when i try to export my movie to wmv. is anyone else having that problem?