Help on conditionally Formatting Field in a Cross Tab

Hi all,
I like to conditionally format a number field in a cross tab, ie. on a certain column the number should show 2 decimal places, otherwise no decimal places.  I have tried a formula in the Decimals of the Format Field, If {Command.COL_TITLE}= "G"
Then
2
else
0.
Column G is the one that is to display the number in 2 decimal places.  The formula runs, but it never  {Command.COL_TITLE}= "G" is never true, ever.  COL_TITLE is the columns of the Cross Tab.
Any ideas ?
Thanks
Austin

Austin,
If you are trying to format a column then try using the GridRowColumn function.
In the Customize Style tab highlight the column field and check what the alias for formula is. Then format the decimal places for the summarized field with a formula similar to the following;
If  GridRowColumn("Alias for formula value") = "G" then 2 else 0

Similar Messages

  • How to refernce the field in the cross-tab report

    Hello,
    I'm trying to refer to the field in the cross-tab report using GridRowColumnValue function.
    The field name in formulas is DevelopmentTracking_SELECT.Completed, so I'm trying to refer like this:
    GridRowColumnValue("DevelopmentTracking_SELECT.Completed")
    I'm getting:
    "This is not the name of a grid group for the field being formatted."
    I've tried different way - gave the name of the field, for instance, or used the name form the Cross-tab expert - Max of DevelopmentTracking_SELECT.Completed, or simply use "Completed" - nothing worked.
    I see the possible cause for it. DevelopmentTracking_SELECT.Completed is not a row or column name, in the Cross-tab expert this is a Summarized field. How to reference the field like this correctly?
    Thank you,
    Peter
    Edited by: Peter Afonin on Feb 17, 2009 9:52 AM

    Oh I thought it is
    ROW: Product Name
    COLUMN:  Anticipated Date, Completed
    SUMMARIZED FIELDS: Product Stage
    Anyhow try to move the Completed field above the Anticipated Date in SUMMARIZED FIELDS by clicking up arrow.
    Now right click on the field Completed go to format field-->write the suppress condition like this
    WhilePrintingRecords;
    boolenavar i;
    i:=CurrentFieldValue;
    false
    Now right click on the Anticipated Date field and go to font and write the condition for color like this
    WhilePrintingRecords;
    boolenavar i;
    If CurrentFieldValue >= CurrentDate Then
    crGreen
    Else If CurrentFieldValue < CurrentDate And i=False Then
    crRed
    Else
    crBlack
    I hope this helps!
    Raghavendra

  • Adding f4 help to wbs element field in account assignment tab of me21n

    My requirment is to create f4 help for wbs element field in account assignment tab of me21n,
    I have to pick wbs elements according to plant and storage location assigned in item overview of purchase order.
    for that i have created a ztable. and use it in f4 code,  or help me if any  other suggestion u have.
    thanks,
    Amol.

    Try to use screen-exit for assigning the serach help. There is one screen exit for PO ..
    Check the enhancement - MM06E005 ,
    Create project in cmod and use this enhancement.
    use the PROCESS ON VALUE-REQUEST event and  use FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    hope this will resolve the issue.
    anya

  • Need help on Conditional Formating

    Hi All,
    I have hierearchy as Region to Series and Series to Model. I have created report with following fields Actual Sales, Objective Sales, % of Objective by Region. My requirement is i need to draw a line 100% Objective in chart and need to show the %of Objective values in Green when >=100% and in Red when < 100%.
    Am able to see the above conditional formating at the Region level properly. When am drilling from one particular region to Series level conditional formating is not applying.
    Any suggestions to achieve above formating will be appreciated.
    Regards,
    Rajkumar.

    Hi Rajkumar,
    nice one. :)
    First part of the solution: you need to make it yourself a little bit easier by adding an extra column and hide this column.
    Add a column with the follow formula:
    CASE WHEN % of Objective >= 100 THEN 'Green' ELSE 'Red' END
    Second part of the solution: add a pivot table view to your report.
    Put the extra column on the Rows Section. Hide it.
    Then add the pivot table chart to the pivot table view. If wanted you can remove the pivot table.
    Then add the conditional formatting to your chart. I would use line bar combo for this.
    Regards,
    Stijn

  • Urgent help on conditional formatting using XML publisher

    Folks can any one help me. I am trying to do conditional format in my xml publisher rtf template and I am having issues to render data in specific format. Please see the sample xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <ColTrn:CollegeTranscript xmlns:AcRec="urn:org:pesc:sector:AcademicRecord:v1.0.0" xmlns:ColTrn="urn:org:pesc:message:CollegeTranscript:v1.0.0" xmlns:UseExt="urn:org:pesc:useextensions" xmlns:core="urn:org:pesc:core.CoreMain:v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:pesc:message:CollegeTranscript:v1.0.0 http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/CollegeTranscript_v1.0.0.xsd urn:org:pesc:useextensions http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/OBRExtensions_v1.0.0.xsd">
    <Student>
    <Person>
    <SchoolAssignedPersonID>0001567740</SchoolAssignedPersonID>
    <Name>
    <FirstName>WENDELL</FirstName>
    <MiddleName>ROBERT</MiddleName>
    <LastName>MORRISON</LastName>
    </Name>
    </Person>
    <AcademicRecord>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicAwardDate>2004-03-20</AcademicAwardDate>
    <AcademicAwardTitle>BACHELOR OF SCIENCE IN EDUCATION</AcademicAwardTitle>
    <AcademicCompletionIndicator>true</AcademicCompletionIndicator>
    <AcademicCompletionDate>2004-03-20</AcademicCompletionDate>
    <AcademicAwardProgram>
    <AcademicProgramType>Major</AcademicProgramType>
    <AcademicProgramName>INTEGRATED SOCIAL STUDIES (BS6308)</AcademicProgramName>
    </AcademicAwardProgram>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>PSYCHOLOGY (OR4101)</AcademicProgramName>
    </AcademicAwardProgram>
    <NoteMessage>EDUCATION AND HUMAN SERVICES</NoteMessage>
    <AcademicSummary>
    <AcademicSummaryType>SenderOnly</AcademicSummaryType>
    <AcademicSummaryLevel>Undergraduate</AcademicSummaryLevel>
    <GPA>
    <GradePointAverage>2.835</GradePointAverage>
    </GPA>
    <ClassRank>408</ClassRank>
    <ClassSize>533</ClassSize>
    </AcademicSummary>
    </AcademicAward>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicCompletionIndicator>false</AcademicCompletionIndicator>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>HISTORY (OR4211)</AcademicProgramName>
    </AcademicAwardProgram>
    </AcademicAward>
    </Student>
    </ColTrn:CollegeTranscript>
    I am trying to generate the output in the below format -
    [ The University Degrees Conferred section is printed if  /AcademicRecord/AcademicAward/AcademicCompletionIndicator = true and  AcademicProgramType = 'Major' Then ]
    ********** UNIVERSITY DEGREE(S) CONFERRED ******************
    DATE : Mar 20, 2004 => <AcademicAwardDate>
    COLLEGE : EDUCATION AND HUMAN SERVICES => <NoteMessage>
    DEGREE : BACHELOR OF SCIENCE IN EDUCATION => <AcademicAwardTitle>
    PROGRAM(S) : INTEGRATED SOCIAL STUDIES (BS6308) => <AcademicProgramName>
    ACCUM GPA : 2.835 => AcademicSummary/GPA/GradePointAverage
    GRAD RANK : 408 IN TOTAL OF 533 => <ClassRank> and <ClassSize>
    [ The below section should print if the student has AcademicProgramType = 'Minor' and Academiccompletionindicator = true ]
    ******OTHER UNIVERSITY PROGRAM(S) COMPLETED******
    DATE Mar 16, 2002 PROGRAM : PSYCHOLOGY (OR4101) => <AcademicProgramName> where AcademicProgramType = 'Minor'
    [ The below section should print if Academiccompletionindicator = false print all majors and minors.
    CURRENT PROGRAM(S) OF STUDY
    PROGRAM(S) : HISTORY (OR4211)
    => AcademicProgramName where AcademicAward/AcademicCompletionIndicator = 'false'
    Please help me guys. I really appreciate your help.
    Thanks
    Pradeep

    I have sent you a modified template. Please take a look.
    Assign points and close out the thread if you are satisfied.
    Thanks,
    Bipuser

  • Help for conditional formatting of a chart query!!!!!

    Dear Gurus,
    can Anyone give me a step by step for conditional formatting on the chart?
    I want my charts in my queries to be for example:
    green color when actual data <= version,
    Yellow if actual > version & 101%, red if actual >=101%.
    Thank You very much for sharing your Knowledge.

    Hi Des,
    You can achieve this through exceptional reporting. Choose your query & execute the report. click on the 'Exceptions & Conditions' button. create the exception you wish to have by choosing version & your key figure, in your case. when you click 'Transfer' it automatically gets activated & you can be able to view the colors set by you.
    Revert back for any modifications.
    Manoj

  • Help Regarding Conditional Formatting

    Hi Gurus,
    Brief background about the report, we have all the items in the inventory segregated into 3 classes "High", "Medium" and "Low" and also there is Calculated Measure called "Percent Accurate". Now we want to use Conditional Formating on the particular Item either RED or GREEN and following are the conditions to define the colour
    High -> Green = 100%; Red = X<100%
    Medium -> Green = X >= 98%; Red = X < 98%
    Low -> Green = X >= 97%; Red = X < 97%
    In the above condition the perecent refers to Percent Accurate.
    How do I acheive this kind of condition.
    Thanks in advance.
    Chary

    Hi Create a new Percent column in repository so the answers coding will be simplified.
    Percent = 100.00 *( (Cycle_Count_Entries.COUNT_QUANTITY_CURRENT - Cycle_Count_Entries.SYSTEM_QUANTITY_CURRENT) / Cycle_Count_Entries.SYSTEM_QUANTITY_CURRENT )
    ...... or whatever your definition is
    Then use a column in answers with following formula :
    Case
    when table.class = 'High' then
    Case when table.percent = 100 then 'Green' else 'Red' end
    when table.class = 'Medium' then
    Case when table.percent &gt;= 98 then 'Green' else 'Red' end
    when table.class = 'Low' then
    Case when table.percent &gt;= 97 then 'Green' else 'Red' end
    end
    * If you do not have access to repository, replace table.percent in above formula with the percentage formula that you have.
    Then your conditional formatting will be simplified as you will need to refer to only the above column.

  • How to allocate a text value to a null field in a cross tab

    Hi there,
    I'm using Crystal 2008 and have created a report that retrieves support tickets assigned by team within a specific date field. I've added a cross tab that is retrieving the data correctly. However, if the team field is blank, the cross tab comes up with a blank field - something similar to :
    Team name       # Tickets Assigned
    Team 1  -
    >  10
    Team 2  -
    >  20
    >  15
    Team 3  -
    >  12
    Team 4   -
    > 18
    I would like to be able to have it returned <Unassigned> instead of just white space. Any suggestions on where to begin? I am a beginner at this and would appreciate any help at all.

    instead of using just the value create a formula that will deal with nulls.
    something along the lines of:
    if isnull()
    then "<Unassigned>"
    else ()
    hope that helps
    Dom Horton

  • Formatting Calculated values in Cross Tab

    I have a P & L Style cross tab where I have inserted calculated values to calcuate the key % values (Turnover, Overheads etc).
    I have used the "Quotient" calculations & bet the correct data, but I would like to format the values to show as %> When I try to change these values, all the values show as %.
    Is there any way to achieve what I need?
    Thanks

    Thanks for that, it would have been easier than the way I found, which was using the display string in the field formatting.
    I might have another pass at it now.
    Much appreciated

  • Issue - Hiding summary field labels in cross tab.

    Hi,
    I have a cross tab displaying two summarised value(say revenue and qty sold) and an embedded summary based on two dimension  (say City and year).
    I have a requirement to hide a particular city (Say Dallas)  in my cross tab.  But I am using the summarised value pertaining to Dallas in my embeded summary calculation.  So I cannot use the specified order in the group option to discard it.
    If I use the suppress option.  I am able to suppress all the values except the summarised fields label.  I used the following formula to suppress it.
    Gridlabelat(City,currentrowindex)= "Dallas" then true else false
    Gridlabelat function is not working for label since it text.  How to hide the label in my case.  Please guide me.
    Thanks and Regards,
    Subbu S.

    Hi,
    As I said earlier the labels are considered as Text and not as fields.  So its not allowing me to use any of the grid functions.
    Thanks and Regards,
    Subbu S.

  • Adding F4 help to a custom field in an existing Tab

    Hi Experts,
        I have created a custom field in the application COMM_IBASE and in the tab IBA_PARTNERS. The same is appearing. I have created a search help for that field seperately. Now I want to attach the same and return a value corresponding to the users selection. Can anyone enumerate the steps for doing the same?
    Thanks in advance.
    Debasis

    Try to use screen-exit for assigning the serach help. There is one screen exit for PO ..
    Check the enhancement - MM06E005 ,
    Create project in cmod and use this enhancement.
    use the PROCESS ON VALUE-REQUEST event and  use FM 'F4IF_INT_TABLE_VALUE_REQUEST'
    hope this will resolve the issue.
    anya

  • Format Fields in Cross Tab and Calculated Members

    Hello:
    I have a cross Tab with a calculated member, I need to display one decimal or no decimal in some of the columns so I created a formula in the Display String option like this:
    if GridRowColumnValue ("@TestID_desc")= "ALK mg/L
    then
      Cstr(CurrentFieldValue, "0")
    else
      Cstr(CurrentFieldValue, "0.0")
    But, after I saved the formula the value in the calculated member colums disappears. Any ideas? Thank You in advance!

    right click on calculated field and go to format field and in number tab select customize button and write the condition for decimals.
    regards,
    Raghavendra

  • Cross-tab report: need to SUM field and present as HH:MM:SS format

    I am creating a cross-tab report and several of the selected data fields I need to summarize are time-based fields, which are stored as seconds in the database.  When I create a standard report, the formula to convert the seconds to HH:MM:SS and SUM works just fine, but when I try to bring that formula field into the cross-tab report, it does a COUNT on it rather than a SUM.
    How can I get it to SUM that data and present it in an HH:MM:SS format in the cross-tab report?
    Here is the formula I'm using in the Standard Report to convert from seconds to HH:MM:SS and SUM the data.
    totext(abs((Sum ({wagent.acwtime})) / 3600),"00") & ":" &
    totext(abs(remainder((Sum ({wagent.acwtime})),3600) / 60),"00") & ":" &
    totext(abs(remainder(remainder((Sum ({wagent.acwtime})),3600),60)),"00");

    In the cross tab, do the sum on {wagent.acwtime}.  In the cross tab on the page, right click on the field for the sum, select Format, press the X-2 next to Display String, and enter your three line formula, replacing {wagent.acwtime} with CurrentFieldValue.
    HTH,
    Carl

  • Conditional highlighting on cross-tabs

    Does anyone know if it is possible to conditionally highlight a field in cross-tab based on another field in the table? The field we&#39;re using to condition is not in the cross-tab, nor do we want it to be in the cross-tab. We need to highlight a report field based on another field from each record reported. Highlight expert won&#39;t let you highlight the field unless the field is in the cross-tab.

    yes it is possible
    Select the field from Cross Tab which you want to Highlight Right Click Select the Format Field
    Select the Font TabÂ
    Select the formula button next to color
    Then enter the formula
    IF field not in cross tab = somevalue then
    mention the Color Code which you want....
    Thanks
    Rahul

  • SORTING FOR THE CALCULATION FIELD IN CROSS TAB REPORT

    LIST_G_AUCTION_TITLE>
    <G_AUCTION_TITLE>
    <BID_NUMBER>5002</BID_NUMBER>
    <AUCTION_TITLE>E2E-01 Construction RFQ</AUCTION_TITLE>
    <ITEM_NUMBER>C2631</ITEM_NUMBER>
    <ITEM_DESCRIPTION>4G000,000,0STRUC,X,SPECIAL STRUCTURE</ITEM_DESCRIPTION>
    <ESTIMATED_QTY>1</ESTIMATED_QTY>
    <UNIT>LS</UNIT>
    <QUOTE_PRICE>400</QUOTE_PRICE>
    <ESTIMATED_QUOTE_PRICE>400</ESTIMATED_QUOTE_PRICE>
    <SUPPLIER>X - L CONTRACTING</SUPPLIER>
    my xml data is in this format, i created a cross tab report for ITEM_DESCRIPTION as row and SUPPLIER as column and calculated a sum(ESTIMATED_QUOTE_PRICE)
    for all the ITEM_DESCRIPTION for every SUPPLIER in templete . now i need to sort the data by sum(ESTIMATED_QUOTE_PRICE) from lowest to higest from left to right , that is supplier with lowest sum(ESTIMATED_QUOTE_PRICE) should display first from left to right.
    can any one help thanks in advance.

    thank you tim , for asking i got the solution. it is actually in template builder i was asking about. xml template builder

Maybe you are looking for

  • Read ONLY a line in file

    Hello expert, I have a file which have lots of records, i want to read the first line only. how can i do this. I've tried GUI_UPLOAD. it retrieve all the file data but i dont want this, i want it to retrieve ONLY the first record. Any solution expert

  • WBS Settlement by Line Item

    Hi gurus, Can anyone please help me figure out how I can trigger the WBS settlement process to settle by line item and not in summary by assigned cost element? please help thanks Brian

  • Query Taking more cost

    Hi experts, i have a simple table selection  "select * from xxx"  having 2.5 Lakhs of data. when i check the cost it shows appx 4000. i analysed / rebuild the table also. how to reduce the cost. Any suggestion? thanks.

  • Tax code is not valid in customer master data - creating customer

    Dear Sirs, Could you please help me with this problem. When I try to create a customer - acc.group "Payer" (standard from SAP) I don't have any problems. But when I try to do this with customized one, the system gives message "Tax code 1 is not valid

  • Compressor stops halfway - Computer wants to restart

    I have a mid-2006 17" Intel Core Duo iMac with Snow Leopard installed. I'm having problems with Compressor (3.0.5) being able to completely export a 2 and half hour video from Final Cut Pro. Like I said, the film I'm compressing is 2.5 hours of HD vi