Displaying zero in the query

Hi,
I have defined a query with one characteristic (Material) in row and 3 key figures (Price in current month, Standard price and quantity) in column.
Moreover there is one calculated key figure (deviation) = (Price in current month -Standard price) * quantity. Query works fine.
Now the requirement is that when standard price = 0.00 (it comes from InfoCube), it should not shown in query result (standard price should be blank/space in this case).
When standard price = blank/space, the CKF deviation should also be blank/space.
I cannot do in query properties (display zero as space, as it affects all key figures in query (also quantity).
Any clue how to solve this issue?
Thanks

Hi
You have properties to set the "ZERO VALUES" to SPACE  for the particular STANDARD PRICE column at the last menu I feel..
pls check that only under that column..
if you dont have, then you need to try thos Formula options...i.e. DATA CALCULATIONS..by using COUNTER methods..

Similar Messages

  • Suppressing Leading Zeroes in the Query output

    Hi,
    I have selected a data field(0MATERIAL) as a free characteristics, It displays text and key and the key has leading zeroes.
    In the infoobject 0MATERIAL, ALPHA conversion routine is not selected, I can't change and insert the ALPHA right now because it would end up with reloading a large volume of data in different targets. To avoid this or to reduce the impact, in the reverse way,
    Could it be possible to suppress this leading zeroes at the query level? I was hoping that there would be a change that I could make at the query level, since it is 0Material and am looking at the point of minimal impact.
    Thank You.

    Hi Senthil,
    create InfoObject ZMATERIAL like a copy of 0MATERIAL, delete all the attributes and insert ALPHA conversion.
    Insert this ZMATERIAL like display attribute of 0MATERIAL. In InfoSource for 0MATERIAL map also ZMATERIAL with the same field that is feeding 0MATERIAL (MATNL). In your query insert 0MATERIAL and ZMATERIAL, and then hide 0MATERIAL (you need to insert also 0MATERIAL because ZMATERIAL is only in display), you will see only the values of ZMATERIAL, that is the material without the zeros in front.
    You can also decide to transform ZMATERIAL like navigational attribute, but in this case you have to change all the structure where do you want ZMATERIAL, because you need to flag it like navigational in that specific structure.
    Ciao.
    Riccardo.

  • Remove the leading Zero from the Query output in SAP BW ?

    Hi
    Experts,
    Vendor Number loaded  as   (0000010076) from R/3 to SAP BW.
    How to remove  Prefix  of Zero for  the Vendor Number(0000010076)  from Quey outpt.
    Regards.
    ASIT

    Hi,
    Please check out this thread.
    Remove leading zeros
    Also check if there is any conversion routine used for that particular infoobject.
    If ALPHA conversion is selected for your infoobject then it will automatically take away the leading zeros at query level.
    Regards,
    AL
    Edited by: AL1112 on Sep 16, 2011 9:15 AM

  • How to display attributes in the query

    Hi frnds,
    I want to show the attributes of material ( mat group , mat type ), vendor ( Sort field ) in the report.
    We loaded master data for material and vendor.
    I dragged the char and the relevant attributes in the query designer and executed the query. But in the output the attributes values are not displayed.
    What could the reason ?
    Regards,
    V N.

    Hi all,
    Thanks for the reply.
    "Display attributes will also get displayed if you include the infoobject for which they are attributes."
    Suppose for 0vendor the attr is 0sortl. By defualt it is display attr. I dragged in the query the 0vendor and its attr 0sortl  and executed. It didnot displayed any values for this 0sortl
    I changed it to Nav Attr. And rerun the query, it is displaying values.
    In the first case i included Display attr and the infoobject for which it is attr in the query. Please explain me why it didnot displayed the values.
    And after changing it to Nav attr it displayed the values.
    Please explain me what happened actually.
    Regards,
    V N.

  • Field not displayed completely in the Query

    Hi friends,
    I have a Field in a query. The info object for this field is a characteristic and has length 40. Data is getting extracted completely in DSO. But Query is not displaying complete field.
    For example in DSO the field has "Catering/Food, Non-Product (Overhd Cost)" but the query is displaying "Catering/Food, Non-P"
    Some inputs please!
    Thanks & Regards,
    Virinchi.

    Hi,
    Goto BW system, Maintain that info object screen, in Business explorer tab > bex description> select as long text and then reactivate.
    Same thing to be done in query designer.
    Then see ur report in analyser, and then lemme know,
    thanks

  • BLANKS as Zero in the query designer

    Hi,
      I had a restricted KF for which there are no entries in cube (for the restriction) or the KF values are 0 in cube....
      When i execute the query...i ma getting the Blank for that KF....how can i convert BLANK into 0 in the report
    My requirment is to show 0 for all Blanks
    Thanks

    Try to use calcualted key figure as follows with res. Key figures as follows
    (Res Key figures "is not initial") * res key figure.
    Now system will display 0 where ever you get blank.
    Do reply with comments.

  • Hierarchy Nodes Display problem in the query

    Hi
    I have an organizational hierarchy upto 6 levels of nodes.
    When it is displyed in the query only the first three levels are getting displayed.
    When i see in the restricted area ( when restricting values ) i find all the nodes displayed but when query is executed i dont see anything.
    Are there setting thats needs to be made in order to see the entire hierarchy.
    regards
    sundaresan

    When you restrict any query you can see all the nodes of hierarchy, but when you run it you can see only those nodes for which value exists in infoprovider.
    Corss check if you have any other restrictions also.

  • How to display zero in the screen's input field using numc type

    Hi,
    I want to display the zero value in the input field , when I  using the NUMC input field on the screen .
    The zero will be changed to blank ,when I click the Enter key.
    What I should do for it?
    Any help is appreciated.
    Regards,
    Trevor

    Hi ,
    Thanks for your quickly answer!
    I use the numc input field in the dialog's screen.
    I am not sure how to do the realize the function like 'UNPACK'?
    In fact, I can't changed my input field's data type.
    When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
    Regards
    Trevor

  • Displaying % variance in the query

    Hi-
    I have a formula variable which calculates the percentage variance of elapsed days.
    Users want to see it only once in the report. If I put in Rows/colums its gonna display for each record. But Users want it to see in one corner of the report.
    Is there any way to display it only once in the report...
    Please reply me back with ur suggestions

    HI,
    Create one structure afterthat create selection in that structure and drag and drop your rows/columns. It will display only one record.
    Regards,
    Senthil Kumar.P

  • To Display Space as  Zero in the report output

    Hi ,
    We have a situation like there is no record in the cube for a particular date selection , the output in the report for the date shows as Space , now the question is how do we display Space as Zero in the query ouput.
    We have the option to Display Zeroes as spaces .
    Please help..
    Thanks,
    Sruthi...

    Hi Sruthi,
    Can you try this.
    Create Formula for each KF. In the formula definition just add key figure (Ex: if the keyfigure is KF1 then in the formula just drag KF1) and save it. Name this formula as your original keyfigure. Formula may return 0, if the keyfigure doesnt have any data.
    Hope this helps.
    Veerendra.

  • How to display Query Description in the Query

    I have a text variable which gets the % of the days Elapsed appended to the text of the query. When I execute the query I am not seeing the text in the output of the query.
    Can some one say how to display text of the query in the output so that I can get the % of the days elapsed.

    Hi
    Have u selected name and text in the key figure properties? if not the this what text u want to display
    Regards
    N Ganesh

  • After Start the Query, change Display Mode. WHERE ??? QD-BI7.0

    Hello Gurus,
    where can I change my Display Mode of the Query. I have 12 rows, but shows me only 4 rows. Then I have to scroll right with a button.
    Where Can I change something like that ?
    Thanks

    Vasanth,
    This is what I'm already doing in the program by setting the edit mode for the column '3_ATWRT'. But I want to switch from edit to display mode and back again. This is not working. Only when I buildup the fieldcatalog this is working?
    Kind regards,
    Richard Meijn

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • How to delete trailing zeros after the decimal point in the ALV sum

    Hello Expert,
    In my alv output, I need to sum up one column, but in the sum result, I don't want to display zeros after the decimal point.
    for example,
    If the sum is 134.00, I only want to display 134 on the alv.
    Does any expert have idea about it?
    Thanks in advance,
    best regards, Johnny

    Hi ,
    Use following
    SHIFT variable RIGHT/LEFT DELETING TRAILING '0'.
    For more variations ,
    just write SHIFT and press f4 , it will show you the information you need.
    Hope this is helpful,
    Regards,
    Uma Dave

  • Regarding Variable entry at the query runtime

    Hi
    In the Query Designer they have taken many variables which are user entry but when I run query I am getting only few options where I can enter values and other variables are not displayed for entry and they are taking some value as default though thay do not have default value. When I check it in Query Properties all Variables are displayed but at the Query Runtime very few are displayed.
    Please suggest me how to get all options at the Query Runtime  to enter the values. It is very urgent Plz send ur suggestions soon.
    Points will be assigned.
    Regards
    Balaji

    Balaji,
    I suspect some of your variables have been personalized. Run the query, when it's run then select Change query - Change variables values from the Bex toolbar. Have any variables little yellow smiley faces on the right hand side of the input area?  If so you may want to remove the personalization by selecting each face and select reset personalization.
    Regards
    Gill

Maybe you are looking for