Logical Formula at query level?

I have requirment like if D =  0 then ' ' (SAPCE) else E / F.
I dont know how to get space ?
please help me to create this formula at query level?

hi Hari,
I am not really sure ,but u can try this...
if D = 0 then ' ' (SPACE) else E / F.
use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
Rgds
SVU123
Edited by: svu123 on Sep 30, 2010 6:53 AM

Similar Messages

  • Logic in Formula at Query level

    Dear All,
                  We are creating query, we want to use the sum of working days for perticular machine iin formula.
    Machine No=M1,  Calendar=1/12/2009, out put=100, workingdays=1, average out per day(formula)
    Machine No=M1,  Calendar=2/12/2009, out put=105, workingdays=1,
    Sum                                                        out put=205, workingdays=2,
    Machine No=M2,  Calendar=1/12/2009, out put=100,    workingdays=1, average out per day(formula)
    Machine No=M2,  Calendar=2/12/2009, out put=101,    workingdays=1,
    Machine No=M2,  Calendar=3/12/2009, out put=105,    workingdays=1,
    Sum                                                        out put=306,    workingdays=3,
    We want to use the sum of working days each machine wise in the formula (Average out per day). please help me
    Thanks&Regards
    Subba Rao
    Edited by: subba rao koyalakuntla on Dec 21, 2009 5:41 PM

    Did you try activating the sub-totals at Machine Level.. that might give you the summary values you are looking for..
    alternatively, we can use some VBA code for this.. or may be macros can help you as well..
    I know this is not an answer.. but some alternative to how we can get there..

  • Query level formula is not working for all the amounts

    Hi Friends,
    In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
    It is working for all the amounts except 1or 2 amounts, im uploading same source file for  all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level  or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of  this issue only my report is pending to sign off u2026.please  can any body find  the solution ASAP.
    Regards,
    VENKAT

    Are they non decimal currencies?
    If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100.   Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2.

  • Convert Char as KF at Query Level

    Hi,
    I have a query will all line Item Details with GI Date details.
    But my requirement is the for all line Item details i want the GI date as mentioned for Line Item 10. (i,e First Schedule Line Date) at query level.
    Is there any way i can convert the GI date Char to KF and then apply Restriction on Item 10 in Restricted Key Figure.
    Is there any other way to archive this at query Level only.
    Thanks for your suggestions,
    Joseph M

    Hi Joseph,
    Probably we could try the following solution
    Create two formula variables of replacement path type. - one for line item and one for GI date.
    Create a formula with logic - if line item 10 then display actual GI date, else date 01/01/1000 or any date which will be surely smaller than the GI dates available in the system.
    In the properties, maintain, calculate result as the highest value.
    Then probably you could use SUM(CT) data function for another formula and use the formula we created above.
    I am not sure that this will work, but worth giving a try. Else, we would have to accomodate the requirement in the model.
    Lastly, do take a look at virtual characteristics and key figure. That might be one option.
    Looks like we are reporting on item level, which means we would be dealing with huge data, in such cases virtual characteristic would be too much bearing on performance.
    Hope it helps,
    Regards,
    Sunmit.

  • Characteristic Value comparison at query level

    HI,
    I have to identify the invoices as local or upcountry on the basis of below logic.
    if 0customer->region & country = 0plant->region & country then the invoice is considered as Local Otherwise it is Upcountry..
    How can i do this at query level ?
    If i do  the same at cube level then if a particular cusotmer's region or country is changed then that will not be reflected in the posted data.
    Any help will be appreciated.
    Thanks

    Hi,
    Use the replacement path to convet the characteristica and use it in formula and compare using IF statement.
    Regards,
    Jo

  • Need the solution in the Bex Query level for a Business Requirement.

    Hi BI Experts,
    I have a requirement at Bex Query level and the scenario is like this:
    Business Logic.
    Right now am showing the Stocks falling in to time slot like 6-9 months and 10-12 months from the date of PKD in two columns B1 and B2 respectively.
    And also calculating the stock selling price of B1 with 30 % discount and B2 with 50% discount.
    In the above said discounts client may change the discount % in any future Quarters
    Now the requirement is, if client needs to see the history of sales according to the declared Discount selling prices of stocks falling into B1 and B2 slots, he must get the values accordingly.
    ( Am using the Formulas for calculating the Discount % for the Stocks fall in to B1 and B2 slots)
    Business Example:
    For Q4 2007 The discount for B1 Stocks is 35% and B2 Stocks is 60%.
    For Q2 2008 The discount for B1 Stocks is 35% and B2 Stocks is 55%.
    For Q3 2008 The discount for B1 Stocks is 30% and B2 Stocks is 50%.
    For Q4 2008 The discount for B1 Stocks is 40% and B2 Stocks is 50%.
    Now running report ( running in Q4 2008  at some date) if client needs to check the B1 and B2 stocks in Q4 2007 or Q3 2008 the values need to come with the calculation of repective % of disounts declared in that quarters along with the selling prices in that quarter.
    This all should be done at query level nothing to do at Infoproviders level.
    Is there any option like storing query data as a master data  and retrive it according to the selection to get the exact values of the respective % Discounts and time lines.
    If It is not clear come up with questions for still more clarifications.
    Points are assured.
    Thanks in Advance,
    RK.

    Who is defining the % discounts for periods/quaters?
    Is this maintained in a custom table or externally in legacy/R3 system?
    There are various ways to achieve the result. Variable exits can be used or virtual KF/char can be used but all depends on actual requirements.
    Cheers

  • How to find the date difference in query level?

    Hi All,
      I have to find the difference between Delivery Date and Posting Date in the query level. Canyou please let me know whether it is possible or not?
    Thanks in advance!!
    Regards,
    Ramanathan.R

    Hello,
    If both infoobjects are key figures , then you can do the calculations. Create new formula and do the calculations.
    If infoobjects are characteristics, then also you can perform the calculations but you can do this by creating a formula variable using replacement path.
    Thanks,
    Praveen Tati

  • Time format is showing wrong at query level

    hi,
    i have a problem at query level
    i have two time fields which are key figures
    i have calculated key figure which has a formula
    cal kf =  time (tim1- tim2)
    data at the dso level
    flightno              time1                 time2          
      f001                11:12:24     10:12:24
      f002                11:12:24     10:12:24
      f003                10:12:24     10:12:12
      f004                11:12:24     11:12:12
    query output
    flightno              time1                 time2               calkf
      f001                11:12:24     10:12:24           19:00:00
      f002                11:12:24     10:12:24           19:00:00
      f003                10:12:24     10:12:12           18:00:12
      f004                11:12:24     11:12:12           18:00:12
    calculated key figure is showing me wrong values by adding up 18 hours
    so i added a key figure at dso level and calculated using formula in transformations
    it is showing me correct value at dso level but query level it is showing me wrong values
    how to solve this
    did any one face this problem before
    any ideas
    i will assign points
    Message was edited by:
            venkat s

    Venkat,
    Try out this.
    Since the 2 time fields are key figures,create the calculated key figure for each of them using the Time() data function.
    eg: for tim1 --> create CKF using time data function as TIME(tim1)
    eg: fro tim2 --> create CKF using time data function as TIME(tim2)
    As a next step,now create a CKG for calculating the diff bewteen 2 time CKG.
    eg : TIME(TIME(tim1)-TIME(tim2))
    Hope this helps.
    Thanks & Regards,
    Suchitra.V

  • Exceptional Aggregation Option at Query Level in BW 3.5 Query Designer

    Hi all,
    I want to use Exceptional aggregation with reference char 0CALDAY,on Formula keyfigure in the Query designer(BW3.5).
    But I am not getting that option when I went into Properties of that Keyfigure.So please Suggest  me where I will Find that Exceptional Aggregation option & Ref.Char at the Query level.
    Thanks,
    Kiran Manyam

    Hi
    In the Key Figure Properties dialog box, choose Enhance >>. The Aggregation Behavior field is added to the dialog box.
    You can make settings for the aggregation of the calculated key figure and the time that the calculated key figure is calculated here. Depending on the complexity of the formula, you can select various settings in the enhanced properties of the calculated key figure. The following types of calculated key figures with the corresponding formula complexity are available:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/56853c08c7aa11e10000000a11405a/frameset.htm
    Hope it helps

  • Time conversion at Query Level

    Can anyone suggest any methods to convert the time from UTC time zone to PST time zone at Query level without changing at backend level???

    If it is a key figure you can create a formula and add the offset.
    If it is a characterisitc and you want to limit the selection you can use customer exit variables. If you want to display the characteristic value, then you may be able to do a replacement path variable to convert characterisitc to KF and then use a formula to adjust the offset.

  • Query level filter not working in Webi report

    Hi All,
    I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
    Can anyone suggest me why problem is coming?
    Regards,

    Hi,
    Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
    1. Select the universe in the list of universes to open the Query Panel.
    2. Drag the Year object to the Result Objects pane.
    3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
    4. Click Combined Query.
    The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
    5. Click on the second query and remove the Year and Number of Guests objects.
    6. Drag the Reservation Year object to the Result Objects pane.
    7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
    8. Click Run Query.
    Best Regards
    Naveen

  • Date to Month Conversion at Query Level.

    Hi,
    I have Net due date in the Info provider.
    At query level i have to create a restricted keyfigure based on Net Due Month.
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    Thanks and Regards,
    MuraliManohar.

    Hi,
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    you can calculate , but as he said you can add in cube ,  may be for cal month you are taking som eother date field.
    in this case write one customer exist code .
    create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
    in routine wriet the code as when that varaible .
    l_s_range - high , low and give then take the month form that date
    like netdue date +0(6)-- gives month and year
          netdue date +0(2)-- gives month
    then rtestrict that variable with your keyfigure.
    Thanks & Regards,
    sathish

  • Infoset resulting multiple results at query level

    Hi,
    I have joined 1 DSO and 1 Infocube in Infoset.. Mapped Plant, Material and Batch
    DSO
    Plant     Material      Batch      Caldate         Qty
    P1          M1          B101          01/02/2014     1000
    P2          M2          B102          05/02/2014     2000
    Infocube
    Plant          Material         Batch     Caldate               %
    P1               M1               B101          02/02/2014          20
    P1               M1               B101          05/01/2014          20
    P2               M2               B102          07/02/2014           15
    I'm considering date only on DSO and ignoring Infocube date. When I execute the report for the month of February, report output is as follows.
    Plant   Material     Batch     DSODate         Qty           %
    P1          M1               B101     01/02/2014          1000          40 (Summing up with January Date)
    P2          M2               B102     05/02/2014          2000          15
    I want data % value to be 20%.
    Is there any possibility to change at query level or join level.
    If we have one line item, data is correct but not the case with multiple line items.
    Kindly do the needful!
    Thanks
    SS

    Hi,
    When you join the two infoproviders in the infoset ignoring infocube date, you are creating as many records for each record in DSO. That means for the first record the infoset creates :
    Plant     Material      Batch      Caldate         Qty     %
    P1          M1          B101          01/02/2014     1000  20   (for first row in infocube)
    P1          M1          B101          01/02/2014     1000   20  (for second row in infocube)
    I also think same as Anshu, you have all the common characteristics, you can as well use a multiprovider.
    regards
    Yasemin...

  • Currency Conversion at Query Level

    Guys,
    Can some one tell me step by step procedure to do Currency conversion from USD to Mexican PESO at query level in BI 7.0. I have read lot of threads but not clear in maintaining the Exchange rates and also in creating the variables. 
    Thank you,
    Kumar

    Hi Kumar ,,
    You're able to convert the currency amount on the routine ...
    Using this function :
    CONVERT_TO_LOCAL_CURRENCY
    Sample:
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
         EXPORTING
            DATE             =  " current date.
            FOREIGN_AMOUNT   = " local currency amount (peso)
            FOREIGN_CURRENCY =  " local currency
            LOCAL_CURRENCY   = 'USD'
         IMPORTING
            LOCAL_AMOUNT     = RESULT " result.
         EXCEPTIONS
            NO_RATE_FOUND    = 1
            OVERFLOW         = 2
            NO_FACTORS_FOUND = 3
            NO_SPREAD_FOUND  = 4
            OTHERS           = 5.
    To maintain the exchange rate, you can go to tcode: OB08
    Hopefully it can help you a lot..
    Regards,
    Niel
    thanks for the points you choose to assign.

  • WEB BEx Analyzer Comments on Query level

    I would like to enable BW users to create comments for some queries an enable other user to read them. System BW 7.01.
    Issues and questions:
    -how to create comment on query level - it's always on data (KYF), Metadata or Master data level
    -I would like to show the document icon - next to the query title (it's relevant for the query)
    -when I create Comments (with the button in the standard template), it's on the data level (combination of KYF) - and when I
    switch to icon display (settings) I get icons in every line. If this would be just at KYF header??
    -where can I edit, delete, ... recorded comments
    Thanks, Tom

    Hi Tom,
    1) If you want to create comments on query level, you need to create metadata documents, object type 'ELEM', object name is the technical name of the query.
    2) Document icons are always shown in the data table. Thus it will be hard to show a document icon for a document on query level. If you are using web templates, you can insert a single document item on metadata documents to display the comment on the query.
    3) Where the document is displayed depends on the document properties. If a characteristic is document property depends on the infoobject setting -> transaction RSD1 -> enter the characteristic -> tab 'general'.
    To see the document properties you can execute the query for example in RSRT (html mode) -> create a new document on any cell. On the bottom you will see the document assignment. Compare this assignment with the cell next to it. If its the same the document will be displayed in both cells. The same can be done for example in java web -> create a new document and switch to the second tab ('BI').
    4) Documents can be edited and deleted in the document browser itself, when you open the document in the executed query or in transaction RSA1 -> documents.
    Best regards,
    Janine

Maybe you are looking for

  • OPEN DATA SET PROBLEM

    Hello , I use the command OPEN DATA SET in order to upload file content from server , the problem is that i getting error :_No such file or directory ._ the file is exist in server I can see it when i put the path on windows  start->run and i give th

  • Heating issue

    My macbook seems to be getting extremely hot, at first I thought it was because it would be resting in my lap or on my bed however today in class it began to get really hot again and the fans were extremely loud while I was in a lecture hall. My comp

  • NO SOUND, FAILED TO PLAY TEST TONE

    I have a Compac pressario with windows 7 starter, a week ago an update didn-t  allow me to use the virtual keyboard, I run a restore to a previous point and it ended up  with no sound also I UNISTALL - REINSTALL AUDIO DRIVER, EVERY TEST SAYS THERE IS

  • Imac restarts

    My IMac has been restarting by itself several times a day the past two weeks. It also prompts me to recover disk space using the FileVault just about as much. Does anyone know why this happening? Before this started (and I also have had an episode be

  • Ipad4 iOS 8 Safari not remembering passwords. Chrome is ok.

    HI after the the upgrade to iOS 8 my iPad 4 Safari no longer remembers passwords and settings for webpages. I have checked the settings for cookies and they are ok. Also Chrome works fine. I reinstalled the iOS but no change. I Checked for which cook