SAP BO Measure IS NULL function

Hi,
When i give the following line is SQL Server
SELECT SALE_TOTAL, DAYS_RENTED FROM SALE WHERE DAYS_RENTED IS NULL
the result is
SALE_TOTAL     DAYS_RENTED
201545.15          NULL
14785.15            NULL
but same line in IDT is invalid
select SALE.SALE_TOTAL from SALE where SALE.DAYS_RENTED IS NULL
what function should i use in where clause to get same result.

Satish,
Please ensure the below things.
1.Dont give "select" in SQL definition since its already definition for SELECT
2.Give the condition in WHERE clause not in SELECT Clause.
3.Else try filtering out at query filter in Query panel while create Query using "is null"
These options should work
Please see attached image for reference.
Regards,
Selva

Similar Messages

  • Set measure to NULL for dates in the future

    Hi all
    I am trying to set the values of a measure to NULL in case the date is in the future.
    I have a time dimension and fact table. What I have so fat is the following:
    IIF([Date].[CalendarDetailed].CURRENTMEMBER.Name < format(now(), "yyyy-MM-dd"),
    SUM
    PERIODSTODATE
    [Date].[CalendarDetailed].[(All)],
    [Date].[CalendarDetailed].CURRENTMEMBER
    [TimeUtility_All].[TimeUtility].&[1],
    [Measures].[Quantity_Change]
    ), NULL)
    This actualy works quite well. The only problem I have is, that on every month level it show me NULL. I guess it is, because the value for a month is e.g. "January 2014", which doesn't work with the condition.
    How can I modify the script, that I also get a value on the month levels.
    Thanks
    Lukas

    I typically use the function ISEMPTY. I'm not a master at MDX so I can't tell you the exact syntax without actually playing around with your query. You could try something like this:
    IIF(ISEMPTY([Date].[CalendarDetailed].CURRENTMEMBER.Name, NULL,
    [Date].[CalendarDetailed].CURRENTMEMBER.Name < format(now(), "yyyy-MM-dd"),
    SUM
    PERIODSTODATE
    [Date].[CalendarDetailed].[(All)],
    [Date].[CalendarDetailed].CURRENTMEMBER
    [TimeUtility_All].[TimeUtility].&[1],
    [Measures].[Quantity_Change]
    Good Luck.

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Using the Null function to delete an attribute from a user in the metaverse

    RC1 Update 3 adds a new Null function, which (to me) sounds like it should flow a null value into the destination attribute.  I have a case where i am flowing a date from SQL into the metaverse.  Just for testing, I tried a basic flow of:
    Null()->employeeEndDate
    This seems to function the same as this:
    ""-employeeEndDate
    Both will add the employeeEndDate attribute to the metaverse object with a blank (not null) value.  To me, Null() seems like it should be equivalent of mventry("employeeEndDate").Delete, but it doesn't seem to.  Ultimately, what I want is to flow the value in if it is present in my connector space, and delete it if it is not.  Something like this:
    IIF(IsPresent(TermDate),DateTimeFormat(TermDate,"yyyy-MM-ddTHH:mm:ss.000"),Null())
    Anyone have any thouse on this?  Is there an easier to way to do this that I am overlooking?
    Thanks,
    Keith

    So here is a new update on this, with somewhat of a workaround.  I ran into a scenario where I wanted to delete attributes upon removal of a sync rule.  Unless I am missing something, this can't be done normally.  When my sync rule is removed,
    the attributes are no longer flowed from the MV to the CS, but they aren't removed from the object in the CS either.
    My Scenario:
    Only certain users should flow their location info to AD for display in the GAL.
    My Solution (these aren’t the real Set/Rule/WF/MPR names, it just makes it easier to understand):
    1.      
    Create two sets: “Show Info” & “Hide Info”
    2.      
    Create Sync Rule: “Flow info to AD”
    a.      
    Dependent on a Sync Rule “AD Base”
    3.      
    Create Workflow “Apply Flow Info to AD” to apply “Flow Info to AD” Sync Rule
    4.      
    Create MPR to apply the “Apply Flow info to AD” Workflow on Transition In to “Show Info”
    5.      
    Create a new Metaverse attribute for people called “nullString”
    6.      
    Create Sync Rule: “Null Info to AD”
    a.      
    Dependent on “AD Base”
    b.     
    Flows the nullString attribute to all AD attributes that need to be blanked out
    7.      
    Create Workflow “Remove Flow Info to AD” to remove “Flow Info to AD” Sync Rule
    8.      
    Create Workflow “Apply Null Info to AD” to apply “Null Info to AD” Sync Rule
    9.      
    Create MPR to apply “Remove Flow Info to AD” and “Apply Null Info to AD” Workflows on Transition In to “Hide Info” set.
    Obviously, you’ll need a null MV attribute for each data type you need to blank out, but it works.
    I haven't tried it, but it's likely this could also be done on inbound flows, provided you have unused attributes of each type in your data set (with a view you could
    just create them).  If X, then flow regular attribute from the CS in to the MV; if not X then flow the "null" attribute from the CS into the MV.
    Keith

  • Regular measures(measures with SUM function) are not working along Distinct count measures

    Hi All,
    I am creating a cube that got to have a distinct count measure and a sum measure. if i have created only sum measure then it is working fine. if i create both measures and process the cube only distinct count measure is populated. the sum measure is showing
    all blank values. i am using 2008 R2, and creating 2 different measure groups for both measures, after i include the distinct count measure the sum measure becoming null. can you please help me with this? i am breaking my head for last 2 days on this.. Thank
    You

    Ramesh, measures are affected by the context of the queries that contain them, for example and in some cases, you can get a different total count of something by two different queries, this is because the context of the first query is different than
    the second one ... keep this in mind.
    Now, I've noticed that you are "creating 2 different measure
    GROUPS for both measures", and i guess that you are trying to view those two measures _which are from different measure
    groups_ at the same time and in the same report.
    considering the info in the first point and as you are create the calculated measures in two different measure
    groups, I'm not sure but i guess that this is the problem, and i suggest you create those two calculated measures
    in the same measure group, then try to view them again and let's see.
    if the previous point didn't solve it, please post the expressions you are using to create the calculated measures, maybe this will help in finding the problem.  

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • Need help with trim and null function

    Hi all,
    I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
    Thanks

    Hi,
    Thanks for the reply. What am I doing wrong?
    SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
    (AL1.user_data_text,'XX')
    FROM Table
    I want the XX to appear in the same column as the
    trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
    What you're saying is:
    SELECT  trim ( SUBSTR (AL1.user_data_text, 1, 3))
    ,       NVL ( AL1.user_data_text, 'XX' )
    FROM    Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
    If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
    SELECT  NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
                , 'XX'
    FROM    Table

  • Level based measure and AGO function

    Hi,
    I've a TIME fact table with a single dimension (TIME_DIM) and a single measure (WORK_DAY).
    WORK_DAY is 1 if the day is a working day, otherwise it is 0.
    This way I can get the number of working days by month, quarter and year.
    (TIME is a logical fact table. WORK_DAY is phsical stored inside the physical TIME_DIM).
    To have WORK_DAY work correctly when used with others fact tables, I've defined it as a level based measure, where all the dimensions are set to the "total" level, apart TIME_DIM.
    So far so good.
    Then I created a new calculated measure WORK_DAY_PREVIOUS_YEAR.
    I used the AGO function this way: AGO (TIME.WORK_DAY, TIME_HIERARCHY.YEAR, 1)
    No complains by OBIEE, but this column always returns 1...
    I've no trouble using level based measures.
    I've no trouble using AGO.
    But if I mix them together they no longer work.
    Do you experience this issue? Any workaround?
    I'm using OBIEE 11.1.1.5
    Regards,
    Corraod

    What is the month level key column functionality in your time dimension?
    it should be in format of yyyymm but not in just mm ..

  • Update Measurement Points on Functional Locations

    Hello Experts,
    I need create a custom program to update (add/delete/change) the measurement point's POSITIONS on functional locations. Basically the users want to clean up the functional locations which have some wrong data in them. Since I am very new to this functionality area, Can anybody please let me know - Is there a FM/Bapi to update the Measurement Point Positions on Functional Locations?
    I appreciate your help.
    Thanks.
    Edited by: sey ni on Mar 7, 2011 4:49 PM

    I think I will have to write a BDC on IK01/IK02 transactions. Not sure, if we have a better solution.

  • SAP-EHS -Measurement Management -reg

    Hi,
    Through SAP -EH &S , the component of measurement management we would like to implement
    Can some one help in giving some inputs and any guidance step by step PPT
    We have SCADA system installed at the cite
    How the readings from SCADA can be integrated to SAP
    We work on SAP ECC 6.0 with EHP4  and Netweaver 7.0
    Please guide
    requirement to be addressed  soon
    thanks & regards,
    Madhu kiran
    Edited by: madhu kiran on Nov 25, 2009 8:52 AM
    Edited by: madhu kiran on Nov 25, 2009 8:53 AM

    Hi pavan,
    thanks for the inputs
    our requirement for measurement management is to capture the environmental parameters readings only
    till we integrate scada  how can we manage entering the measurement readings in to sap  in EH& S module
    regarding scada once we integrate can we take them to SAP EHS only
    any other components should we have ?
    where this is integrated to the data base tables of EH& S module or any thing else  like PM module measuring documents
    needs some clarity on this as once we take the readings in to SAP we would be able to make reports , exceptions, alerts etc...
    regards,
    Madhu Kiran

  • SAP PM: Measuring Point External Number

    Dear Sir,
    Is it Possible to assign Extenal number to Measuring Point?
    Regards,
    Mohan

    Hi,
    I dont think there is a way for your requirement. Anyhow the following Enhancements are available for Measuring points/Document. You could check,
    Exit name
    Short text
    IMRC0001
    MeasPoint/MeasDoc: Exit before update (after COMMIT WORK)
    IMRC0002
    MeasPoint: Menu exit for customer-specific function
    IMRC0003
    MeasDoc: Menu exit for customer-specific function
    IMRC0004
    Measure.doc.:Exit according to stndrd checks for new mes.doc
    IMRC0005
    Measure point: Exit in AUTHORITY_CHECK_IMPT
    |----
    Hope this may be useful for you,
    Regards,
    Prasobh

  • SAP XI - Using the substring function.

    Hi Experts,
    I am having trouble using the substring function in SAP+XI. I have to consider the value from characters 6 to 19 for a target field of 25 characters. Every time I ma using the standard substring function it is giving an error Array Out of Bounds Exception.
    Please tell me how to proceed.
    Thanks
    Aniruddha

    Hi,
    Above error wil come if the input string length is less than the substring length what you are trying to get..
    i.e length of the input string is less than 25 characters... do some validations or pass substring as 6 and 0 ..
    HTH
    Rajesh

  • Create new object (measure) with IIF function on BW Olap universe:mdx error

    hello
    i have a universe based on a BEX query
    i want to create a new object (a measure) with the IIF(,,) function
    i created the following select:
    <EXPRESSION>IIF(@Select(Currency Type\CurrencyTypeCode)="10",@Select(Key Figures\RevenueGlobalCurrency),@Select(Key Figures\RevenueLocalCurrency))</EXPRESSION>
    defined as number
    where
    CurrencyTypeCode is a dimension (character format)
    RevenueGlobalCurrency and RevenueLocalCurrency are measure (number format)
    i always have a parse which is OK but
    when i want to  use the object on a webi report i always have an MDX error : ...invalid MDX with .... (WIS 10901)
    and advise ?
    Thanks

    Hi Didier,
    Thanks a lot for your help.
    Now it works : i do not understand why
    i explain:
    the correct syntaxe of my new measure is :
    <EXPRESSION>([Measures].[4FVLHG7OAJMNY9WC06X6JLOZQ], [0CURTYPE].[10])</EXPRESSION>
    it does not works with my "L01 currency type" BO dimension
    ([0CURTYPE].[LEVEL01])
    when i had :
    -my universe is based on a BW BEX query
    -my universe has been automaticaly generated with the assistant
    -the Currency Type Class was define as below:
           - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01]
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[[20CURTYPE]].[Value]
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[[40CURTYPE]].[Value]
    i always had a wrong mdx syntax error on the webi report
    i updated the class with the follow
         - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01] (idem)
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]  (idem)
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[NAME] (updated)
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[DESCRIPTION] (updated)
    then it was working
    Then i tried to reproduce from scratch and now it also works with the previous version of the class.
    I do not understand anything
    Is there something like a cache file of the MDX query (in RSRT, cache mode is set to inactive for the bex query) ?
    ps: this is the same if a use webi under infoview (java) or webi rich client...
    Edited by: Frederic Nez on Jan 19, 2010 6:35 PM
    (edit : there is mistake in the post : objects are always between [] even if it is not dispay => change objects to code mode)

  • Need help in SAP SD "Competency Area Basic Functions"

    Hello Gurus!
    I'm preparing for SD certification exam, i have question regrding about the competency area of Basic functions. What basic funtions are required to prepare for the exam. Anyone can advise me what to prepare also any advise about the exam . Thanks in advance.
    Regards,
    NR

    Hi,
    Your scenario is Split message .. you can avoid BPM if you are in SP14 with the RB_Split functionality.
    if you running less than Sp14 try out this scenario with Multimapping and use in the BPM.
    check also this weblog
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Shree

  • GetTagFromIdentifierAndTitle returning nulls - function PreSaveItem

    I'm attempting to add what should be a very straightforward date verification routine to a Sharepoint 2010 list.  It's documented all over the web, but for some reason, I can't get it to work.  The code is below:
    <script language="javascript" type="text/javascript">
    function PreSaveItem()
    var date1 = getTagFromIdentifierAndTitle("input","DateTimeFieldDate","Start Date and Time");
    var date2 = getTagFromIdentifierAndTitle("input","DateTimeFieldDate","End Date and Time");
    var arrDate1 = date1.value.split("/");
    var useDate1 = new Date(arrDate1[2], arrDate1[1]-1, arrDate1[0]);
    var arrDate2 = date2.value.split("/");
    var useDate2 = new Date(arrDate2[2], arrDate2[1]-1, arrDate2[0]);
    if(useDate1 > useDate2)
    alert("The End Date cannot happen earlier than the Start Date");
    return false; // Cancel the item save process
    return true; // OK to proceed with the save item
    function getTagFromIdentifierAndTitle(tagName, identifier, title) 
       var len = identifier.length;
       var tags = document.getElementsByTagName(tagName);
       for (var i=0; i < tags.length; i++) 
          var tempString = tags[i].id;
          if (tags[i].title == title && (identifier == "" || tempString.indexOf(identifier) == tempString.length - len)) 
             return tags[i];
       return null;
    }</script>
    I've traced it via debug mode, and it hangs up when I'm trying to parse date1, which contains null values.  I can't understand why it's not pulling the date from the NewForm screen.
    To answer the obvious question; yes, I have selected dates on the NewForm screen.
    Any help or debugging tips would be greatly appreciated.

    Hi,
    The script works great in my environment, when start date is less than end date, a dialog will pop up for the warning message:
    As you said, “it hangs up when I'm trying to parse date1”, I suggest you log out some information to the console of the browser to check that whether the “title” attribute
    of the start date input control is “Start Date and Time” and whether the “date1” object holds the valid date value.
    About Using the Console to view errors and debug in IE Developer Tools:
    https://msdn.microsoft.com/en-us/library/ie/dn255006(v=vs.85).aspx
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • 2nd generation Ipod nano not syncing?

    My 2nd generation Ipod nano won't sync up with my Itunes library anymore after updating to Mountain Lion and the latest version of Itunes.  I plug it into the USB port on the laptop and the Ipod beeps and seems to be getting charged by the laptop but

  • For all entries : lines are missing in the results

    Hi all, I have a problem with my abap code. some lines are missing in the results. I have check the note 65554 but i use the version 6.40 TYPES: BEGIN OF wys_bseg,          bukrs TYPE bsad-bukrs,          belnr TYPE bsad-belnr,          gjahr TYPE bs

  • Executing ALT + right Shift automatically

    Hi, when a user focus in a text field, he would press ALT + right Shift in order to type Arabic letters. Is there a way to make Flex to switch to arabic by executing ALT + right Shift automatically ? Best regards

  • Alternate to Not IN

    Hello, I am using the following query to display count of unapproved transactions. SELECT GH_TXN_CODE , COUNT(*)TOTAL FROM OT_GR_HEAD WHERE GH_APPR_UID IS NULL AND GH_TXN_CODE NOT IN ('S_SIF','S_SIE') GROUP BY GH_TXN_CODE UNION SELECT PH_TXN_CODE, CO

  • HT5622 How do I get rid of my old Apple ID? I don't have access to that email.

    I recently changed my password and my password isn't working. Also, I still have my old Apple ID when i'm trying to enter my password and it won't let me change it to my new one. I changed it because I no longer have access to so I would appreciate i