Displaying text whenever there is no value present in Database

Post Author: Sujitha
CA Forum: WebIntelligence Reporting
Hi
My business demands that a text 'Defaulted to Zero' be displayed if for a given combination of columns there is no data present in the Fact table.We use oracle 9i.
I have already used the number format where we put a value for the undefined value to display a text N/A where ever the value is not applicable.But i need to display text "Defaulted to Zero" wherever the value is applicable but NOT present in database!!
Can this be acheived in Bo level,I am using BO XI R2.?
This is a very urgent requirement as my project delivery is scheduled.!!
Many Thanks!!!

Post Author: jsanzone
CA Forum: WebIntelligence Reporting
Suzie,
You can create a new local variable to report (called something like "NVP"), leave it as a "Dimension" and in the formula type:
if([col_a]=0 or [col_b]=0;"NO VALUE PRESENT")
Basically, you are using the "if" function and the syntax is very much like used in excel except you separate the arguments with a semi-colon versus a comma.  You start out with "if()" and within the parenthesis is a logic statement followed by when true do this else that (with the "else that" portion optional as shown above).  The drawback to using a local variable is that every report you write must be customized with the local variable versus establishing this logic in a "case" statement when building the data mart and thus it becomes resident and usable like any other column of data in your database.  In some cases you are forced in using it as a local variable due to variations in the data and the logical outcome is not known until the very end of all computations, and at other times you can get away with embedding the logic at the time of constructing your data mart -- it all depends on how the data is used and sliced and diced.  Good luck and write back if you have any further questions.

Similar Messages

  • Cumulative Percent only displaying when there is a number present

    Hi
    I am using the below cumulative percent formula for a chart and pivot table display (see below code). The problem is that the cumulative percent and cumulative number are only showing up in the pivot table when there is a number to cumulate (see below screenshot).
    While this makes sense logically, I would like to see the value in the prior row appear when there is no value to cumulate so that there is always a value displaying for the user--see second screenshot.
    Does anyone know if there is a way to do this?
    Paul
    Code:
    =(CALCULATE(countrows(s1Perm1),FILTER(ALL(s1Perm1[ExitMonthCategory]),s1Perm1[ExitMonthCategory] <= MAX(s1Perm1[ExitMonthCategory]))))/(CALCULATE(COUNTROWS(s1Perm1),ALL(s1Perm1[Exit],s1Perm1[ExitMonthCategory])))
    Current result:
    Desired Result:

    Hi Greg
    I tried your solution above and it works from the perspective that it can provide the cumulative number and cumulative percent for a column where the values in the column are all present.
    However, the column I am using represents exit months from foster care actually. There are different month values in the column: .5,1,2,3,4,5,6,9,12,15,18,21,24..... With the exception of .5 to 6 months, they are in 3 month intervals. For this particular
    table, I would like to show only those month values that represent 6 month intervals: 6, 12, 18, 24.....
    When I do this, the cumulative number only sums the values for the columns that are present in the table and not all the actual values. This gives a different number and is not correct.
    Is there a way to get the above function to aggregate all values of a column even when not all values are displayed in the pivot table?
    The function I am using is:
    =countrows(s1Perm1)
    Correctly aggregating values for exit months when they are all present:
    When I only display 6 month intervals, only those values present for the column are cumulatively summing. This is not correct:

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • An advice regarding how best values from a database can be displayed

    Hello All,
    I must thank this forum for being friendly and very helpful.I have another question here.I hope that this is the right forum for this post.
    I have a MS Access database, which has a table with attributes.I am using Java 1.4.2 and Tomcat 5.0.28.
    I want to display on a .jsp page the values present in the "courses" attribute of the database table.
    The displayed courses should have "check boxes" associated with them, so that any of them can be checked and on submit must give the other entries associated with that checkbox(course).I hope my problem statement is clear.
    It would be great if people could spend some time to read this message and guide me in the right direction.
    Any help would be greatly appreciated
    TIA
    AS

    Some pseudocode to help you along:
    make an html form
    make an html table
    put html table header row(s) in
    query database: select courses from table
    for each row
    ---make an html table row
    ---make an html table cell with an html form checkbox
    in it
    ---make an html table cell with the course displayed
    in it
    ---end table row
    end for
    end html table
    make a submit button for the form
    end form
    Have the form submit to another page that looks at
    which checkboxes were submitted and does a similar
    query / display routine.
    The exact implementation of this is quite variable
    depending on whether you're using taglibs, JSTL,
    beans, J2EE, and/or whatever.
    Take your pick. :)
    HTHThanks for the time and information as to how I could get started with this particular check box issue.
    I would like to use simple jsp i am guessing at this point.
    Thanks again
    AS

  • How to search this value in oracle database to find out the table

    Hi expert,
    I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
    Many Thanks,

    918440 wrote:
    Hi friends,
    this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
    Handle:     918440
    Status Level:     Newbie
    Registered:     Mar 2, 2012
    Total Posts:     20
    Total Questions:     10 (10 unresolved)
    why do you waste time here when you NEVER get any answer to any question you post?

  • How to get selected item value and display text in selectOneChoice ?

    Hi
    Thank you for reading my post
    I bind the a selectOneChoice component to my backing bean so i have an object which represent this component in the backing bean.
    now i need to find which item is selected by use , i know that i can use
    getSelect_service().getValue.toString() , but it will return the value of the selected item, how about its display text ?
    I should say that i create an static list for selectOneChoice items.
    thanks

    Using JDeveloper 10.1.3.1, freshly downloaded off OTN. I used the following code to try and identify the problem you are encountering. I attempted to use a valueChangeListener in combination with af:selectOneChoice components that use SelectItems and the singular SelectItem. I could not reproduce the error in either case. Please post more information about your development environment.
              <af:selectOneChoice label="Label 1"
                                  binding="#{backing_test.selectOneChoice1}"
                                  id="selectOneChoice1"
                                  valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <af:selectItem label="1" value="1"
                               binding="#{backing_test.selectItem1}"
                               id="selectItem1"/>
                <af:selectItem label="2" value="2"
                               binding="#{backing_test.selectItem2}"
                               id="selectItem2"/>
                <af:selectItem label="3" value="3"
                               binding="#{backing_test.selectItem3}"
                               id="selectItem3"/>
              </af:selectOneChoice>
              <af:selectOneChoice label="Label 2"
                                  binding="#{backing_test.selectOneChoice2}"
                                  id="selectOneChoice2"                              valueChangeListener="#{backing_test.valueChangeListener}"
                                  autoSubmit="true" immediate="true">
                <f:selectItems value="#{backing_test.items}"
                               binding="#{backing_test.selectItems1}"
                               id="selectItems1"/>
              </af:selectOneChoice>
        public void valueChangeListener(ValueChangeEvent evt){
            // returns a UISelectOneChoice object
            System.out.println(evt.getSource().getClass().getName());
            // returns a string
            System.out.println(evt.getNewValue().getClass().getName());
        public Map getItems(){
            items = new HashMap();
            items.put("11","11");
            items.put("12","12");
            items.put("13","13");
            return items;
        }

  • Uprgrad to ios7 calender won't display text entered. the appointment entered is there becauwse it alerts me to appointments entered

    Calender won't display text entered for appointments.
    The appointments are there as the phone alerts me as requested. Also the appointments are synced with icloud and Outlook on my computer.
    Any appointments entered in computer do not show on phone but are there.

    I've managed to fix this!
    In case it's helpful to anyone encountering this problem, here's what I did.
    I went into the preferences (through the Calendar app, not the System Preferences - didn't want to remove the entire account info, in case I encountered problems getting my email to link again), clicked on the Account tab and removed the Exchange account (by clicking the "-" (minus) sign below the listing of accounts).  I then added an account (clicking the "+" sign) and re-entered the information.  When asked if I wanted to add these settings for Mail and Contacts, I unclicked those options (bc they're already installed and work fine).  Once I completed the information, I closed the settings window, and hit ⌘+R to refresh and all the Exchange appointments appeared.

  • How to pop up alert "No Data found" if there are no values in database

    Hi All,
    Please tell me how to pop up alert if there is no data found and all fields are null in report for given parameter value. or else is there any way to trigger user while entering parameter value that wrong parameter value. (I dnt want to use drop down) in my report.
    Please help me. Any help will be valuable.
    Thanks.

    There's no way that I know of to do this as a "Pop-up", but providing a "no records returned" warning still easy enough to do.
    Just insert a new Report Header section...
    Add a text box that has whatever message you'd like to display.
    Right click the new header section and choose Selection Expert
    Click the X-2 button next to Suppress (No Drill-Down)
    Enter a formula similar to this...
    IF COUNT({TableName.FieldName}) < 1 THEN FALSE ELSE TRUE
    This will suppress the warning if records are present and display it if there are none.
    HTH,
    Jason

  • How to display TEXT more than 500 char in a report as multiple lines.

    Hi Friends,
    i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
    I am fetching the data Using FM READ_TEXT
    the output im currently geeting with 150 Char in lenth as a single line
    How we can split the text into multiple lines in a report
    first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
    Thanks & regards
    kumar.

    Hi,
    This is possible but the Solution might not look Standard/Appropriate to you.
    In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
    In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
    This may work.......and Sorry if not work......

  • HR Form Editor - how to display text on payslip

    Hi Experts,
    I have an issue in HR Form Editor ( TCode PE51).
    In the earnings window of a payslip I have a wage type 2041(Ticket Fare Payment). At the time of evaluation if there is a value for this wage type then some text message has to be displayed for such a employee.
    Can anybody please guide me for the proper solution.
    I have created text module for the text to be appeared and placed it as a single field.
    Any help appreciated.
    Thanks & Regards,
    Aisha.

    Try Exploring BADI ADDR_PRINTFORM_SHORT. This is the only place wherein we can think to write some custom code for Remnuneration statement.
    The other way is the do the Customer Enhancement for transaction PC00_M16_CEDT. Also try searching SAP Notes I think there are couple which can be of help.
    Regards
    Shital

  • Display text (returned by function) after tabelar forom submit...

    Hi guys...
    Is there any possibility to display text returned by function after tabular form submit?
    If yes please tell me how :)
    With regards,
    PsmakR

    The value of the selected row's Display column ("Choice B", for example) is not stored in the field -- only the value of the selected row's Value column ("2") is. With the DDLB's item list loaded the form is able to translate "2" (Value) to "Choice B" (Display) so you see "Choice B". With the DDLB's item list empty there is no way to translate "2" to "Choice B" so you see "2".
    If you do not want to save the DDLB's item list with the form you would need to preserve the selected row's Display column in another, possibly hidden, field then use that to display the translated Value.

  • How to display text dynamically

    hello,
                                  i am working in dialog programing i need to display text which is save in a file and i want that whenever each new call screen i should display a text message from my flat file on the new screen ..... is there is a funda of xml?

    If the text is same for all the screens then copy it into a string or variable type c and write it on all the screens

  • Issue with displaying text in BEx

    Hi all,
    We are facing an issue with displaying text in the query output.
    We have a master data carrying charac ' 0MATERIAL'.When i do maintain master data ,I am able to see medium description in the output.
    Now when i drag 0MATERIAL in bex designer and in properties set display to key and text(medium text), it shows me only the key and it shows some wierd text which is in no way related to the medium description ( that was shown under maintain master data)
    can anyone pls tell me why i am not able to see the medium description when executing the query that too when the text is loaded.
    Pls help
    Regards,
    Suchitra

    But what i wouldlike to know is what about the master data which is present in 0MATERIAL now?
    Nothing will happen to your data.
    Its showing there ...dosent that mean its present and activated?
    They are present n in active version.
    If u change any records they will be in M version..by activating the data...u are converting it to A version.
    Regards,
    Ram.

  • Displaying Text in the Filter charectaristics  in the portal

    Hi Everybody,
        I got a problem in the portal.
    When i am selecting Filter values in portal, Some Filte Char´s just showing Keys, but not Text. But some of them are showing text too. So, I need to display text instead of Keys.
       I tried to change Infoobject properties In Business Explorer Tab with Text. And also i did in the Business Explorer. Even I am not able to see text in the Filter Char´s. Is there any other way to diplay Text in Filter Char´s.
    Please reply to me as soon as possible.
    Thanks,
    Suri.

    Hi Suri,
    I don't have an 04s system right now, but check in help:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a644ce07211d2acb80000e829fbfe/content.htm
    The option I suggested is shown in the same place. See Structure-Specific Properties of the InfoObject in the above link...

  • When I click on - View - Page Source, I want to edit with NotePad - note just display text in fancy colors

    I like to edit my web pages easily,
    - click to see html, edit it, (file name already there), save it
    - hit restore on browser - see what I did -
    Just changed from IE
    which gave me NotePad, which is just fine for me
    Just changed to FireFox
    and it displays text in a non-editor,
    can't edit and save easily
    What to do??
    Even worst - after installing FireFox
    IE no longer clicks to NotePad
    but that fancy non-editor :-(((

    ViewSourceWith: https://addons.mozilla.org/firefox/addon/394
    See also:
    http://kb.mozillazine.org/view_source.editor.external
    http://kb.mozillazine.org/view_source.editor.path

Maybe you are looking for

  • Issue in creation of data from extended segment in background mode

    Dear all, I am facing an issue in creation of data in receiving system using IDOC for an xtended matmas segment(Extended for classification view in user exit).The issue is that the idoc is received successfully in r3eceiving system but not created su

  • TEXT ELEMENTS - Where are they saved???

    Hi!!! I have a question for you. I have a text string and I need to find in which program is used. I tried with those Z programs that search in the code, but I didn't find anythig. I think that that text might be in a text element. So, the question i

  • Ipad 4 airplay dropping link to AppleTV when streaming from Safari

    When using Safari to view video, and Airplay to show it on my TV via an AppleTV, it drops the link every few minutes. It does not happen if I'm watching a video on an app, only with Safari. I have the latest iOS on my iPad (7.1), and the latest Apple

  • What wireless solutions does the video pod support?

    For a future webcast, I have a need to shoot a demonstration of chest x-ray equipment, suturing methods, and other "allied health" related procedures.  A simple webcam is not enough.  I have been looking at wireless camera technologies, and there are

  • Feature availability: Function Based Indexes

    I am currently unable to download the techspecs on Oracle's Standard Edition One to determine if function based indexs are available with this particular licensing option. Does anyone know which licensing versions this feature is available within? I