MinList function is not working in Date or datetime values in DRM

Hi,
We have a custom property End Date with data type as Date. We want to calculate the minimum end date across all the children of a particular node.
While using the below function it is giving blank value as output.
MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true),#,date)
If we remove the MinList part and only evaluate ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true), we are getting an output like 12/31/2019#12/31/2018.
Why DRM is not able to extract the min value? Does DRM not support this kind of use of this function?
We have even tried with a date time property, but the result is same.
If by using the above mentioned method it is not possible to get the min date value, what alternative approach can be taken for achieving this?
Any help on this is much appreciated.
Thanks
Sudipta

I found this useful, check if it helps,
Using MinList and MaxList with Date Or DateTime Values In DRM (Doc ID 1967005.1)
Hyperion Data Relationship Management - Version 11.1.2.3.000 and later
Information in this document applies to any platform.
GOAL
Example: How can we calculate the minimum end date across all the children of a particular node?
You have a custom property End Date with data type as Date. You have tried using MinList in conjunction with ListNodePropValues thus:
MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.EndDate),[comma],#,true),#,date)
This gives a blank value as output.
SOLUTION
The most robust way of doing this using formulas is to format the date property as a string in ISO 8601 format. In yyyy-mm-dd format, alphabetic order is also date order. Add a helper String property like this:
FormattedDate(Custom.EndDate),yyyy-mm-ddThh:mm:ss) -- omit the time from the 'T' on if desired. Note that the format string is case sensitive.
Then the MinList function
  MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.Helper),[comma],#,true),#,string)
will work.
Note that the functions MinList and MaxList return a blank value if the list contains any members that are not of the specified data type. Using ReplaceStr will implicitly convert the dates into strings, causing MinList and MaxList to fail if you specify DateTime.

Similar Messages

  • Excel Functions Do Not Work When Data Source is BW

    Hello,
    My platform is, BOBJ BI 4.0. Data source is SAP BW. BW is connected to XCelsius with BEx. My problem is, excel functions do not work when data source is BW. For example, Excel cell A1=quantity1  B1= quantity2   C1= excel function "=A1+B1" When data source is Excel, for example A1=5, B1=9 C1 automatically equals to 14. (There is no problem when data source is Excel) But, in BW, for example when BW set values to A1=5, B1=9, the system does not calculate C1. C1 always equals to initial value, the system does not care any excel calculation when data source is BW.  Any guess for my problem? Thank you for your effort.

    Hi,
    As you are using very simple formula,it will work no matter which source you are consuming.As mentioned,try to place a simple component(Eg:spreadsheet),just to check whether you are getting the right calculated value or not.
    As you are using BW as source,the Preview option will not show the runtime data,so you need to publish in Portal to check whether the calculation happened or not.
    As far as I know only few fromulas are supported in Xcelsius,but these kind of simple formulas are very much supported.
    Rgds,
    Murali

  • Function C_SAPGPARAM not working to get  rdisp/plugin_auto_logout value...

    Hi folks,
       I have this abap code where I am trying to get the value for the timeout parameter..'rdisp/plugin_auto_logout'...but it does not seem to work it comes back with 0 whereas the system has a value of 900 (verified using rz11)....thanks...
      <%
        data: name TYPE String.
        data: timeoutStr type String.
        data: value type i.
        data: timeout type i.
        name = 'rdisp/plugin_auto_logout'.
        call 'C_SAPGPARAM' id 'NAME'  field name
                           id 'VALUE' field value.
        timeout = value - 780.
        timeout = timeout * 1000.
        timeoutStr = timeout.
        %>
    Thanks,
    Venkatesh

    Thanks for the reply,
    The code works perfect when written as a standalone abap program,
    but when I have it in the document_body.htm file in the BSP application
    hap_document (for priorities in ESS) I get an error saying..thx for your help though..
    Access is Denied..
    and it does not work in the bsp page...here is my code....
    <script type="text/javascript">
         alert("You have just wasted 10 seconds of your life.");
    function remind() {
    var msg = "Your Session will be timed out in 5 minutes";
    alert(msg);
    </script>
    <htmlb:content design="design2003" >
      <%
        DATA: NAME TYPE TPFYDOC-PARANAME.
    DATA: TIMEOUTSTR TYPE STRING.
    DATA: VALUE TYPE I.
    DATA: TIMEOUT TYPE I,
          USR_PARVALUE(60),
          SHM_PARVALUE(60).
    NAME = 'rdisp/plugin_auto_logout'.
    CALL 'C_SAPGPARAM' ID 'NAME'    FIELD NAME
                       ID 'VALUE34' FIELD USR_PARVALUE
                       ID 'VALUE44' FIELD SHM_PARVALUE.
    MOVE USR_PARVALUE TO VALUE.
    TIMEOUT = VALUE - 820.
    TIMEOUT = TIMEOUT * 1000.
    TIMEOUTSTR = TIMEOUT.
    %>
      </htmlb:content>
    <script type="text/javascript">
       setTimeout("remind()",<%=TIMEOUT %>);
    </script>

  • I just bought an iPhone 4s. Now the search iphone function is not working. When I swipe the screen to the left, the search box appears but when I type what I want to search for, there is no action. Please help.

    I just got an iphone 4s. Now the search iphone function is not working. When I swipe the start screen, the search box shows up. But when I type what I want to search, there is no action. Please help.

    Try this...
    You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... (But can take Longer...)
    Release the Buttons...
    Turn the Phone On...

  • Camera function is not working

    The camera function is not working on my iPhone 5 that was only bought on 19/1/2013.  Whne you click on the photo icon on the screen you just see the pictur of the closed shutter.  Does anyone know how I can fix this or have had this happen to them,  Of course I am now out of the 3 months free phone support.  Thanking you in anticipation.

    Restart iPhone: Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • Autofill function is not working, 'window' sticks through it not functional!

    autofill function is not working, 'window' sticks through it not functional!

    Back up all data, then test after each of the following steps that you haven't already tried. Stop when the problem is resolved.
    1. Quit and relaunch Safari.
    2. Select your card in Contacts. Then select
    Card ▹ Make This My Card
    from the menu bar. Also select
    Contacts ▹ Preferences ▹ vCard
    and uncheck the box marked
    Enable private me card
    if it's checked.
    3. In Safari, select
    Safari ▹ Preferences ▹ AutoFill ▹ AutoFill web forms: Using info from my Contacts card
    If the box was already checked, uncheck it and then check it again.
    4. Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • F11 Functionality is not working

    Hi,
    I am working on 11.5.10.2 version.
    In the Oracle Payables Invoice screen the F11 functionality is not working
    For other screens like supplier entry / payment batches..etc, the F11 functionality is working.
    When i enter the Invoice screen, i am pressing F11 and it comes to query mode.
    I am giving the values and percentage, pressing Ctrl+F11 but its not showing the invoice data.
    Error Notification given: "FRM-40301: Query caused no records to be retrieved. Re-enter."
    Earlier its working fine...suddenly its giving me this trouble. I am able to query same thing in my friends system.
    I know its quite silly issue but its really giving me a trouble. Could anyone give the solution for this. Is there any specific functionality am need to set for this?
    Thanks,
    Ram.

    The query is working if you are getting the message "FRM-40301: Query caused no records to be retrieved. Re-enter." You need to query for something that is in the tables which is usually case sensitive.
    Or, use the Query/Find screen by clicking the Find button (flashlight icon) on the toolbar.

  • Mac mail search function is not working. Any search term returns all records.

    Mac mail search function is not working. Any search term returns all records.

    hi eric. many thanks.
    i will have to read these links closer but what i meant to say is that the hard drive space that was being taken up seemed like it suddenly jumped way up because i had just gotten through a process in the last month where i am storing all my My Documents data on my Mac Pro. i am doing this in order to decide whether i should just keep it ALL on my Mac Pro and use ChronoSync to sync /some/ of it to my MBP.
    so if i look in the Documents folder on my Mac Pro i have a ton of folders that i have created with a ton of data. if i look in the Documents folder on my MBP there are NO folders that have data in them that i created. there are other folders such as folders that various software created but what i mean to point out is that there was a LOT of available space on my HD until recently.
    i am wondering if there is some way that running the Mail re-index (it then ran some kind of "Importing" routine) or by syncing my Photostream to the MBP caused a huge jump in data on this drive. if it is the photostream sync i can just take this off or see if it will sync more selectively. if it is something to do with mac mail jumping in size i am not sure why this would happen or what to do about it.
    does that question make sense?
    i mean, before i did these two operations my recollection is that i would have had 130 GB on the hard drive (really just guessing here) and now there is like 218 GB on the hard drive and i don't know where all this came from...

  • Search menu function is not working

    Hi
    Search menu function is not working in one of my HRMS 9.1 (PT: 8.52.09 application.
    Verity installed and executed the build registry search index aswell.
    Please let me know if I miss something on configuring the search menu function.
    Thanks
    Soundappan

    Personally I did not have to make any psappsrv.cfg changes for this particular 9.1 env or any other changes that I can remember. Is PS_HOME = PS_CFG_HOME though?
    If you didn't specifically set PS_CFG_HOME to PS_HOME it defaults to something like $HOME/psft and the files would need to be there instead.
    If you run psadmin what's it show as the Config Home?
    If I unset PS_CFG_HOME i get
    PSADMIN -- Tools Release: 8.52.07
    Copyright (c) 1996, 2011, Oracle. All rights reserved.
    PeopleSoft Server Administration
      Config Home:  /home/psoft/psft/pt/8.52And the files would need to be there rather than $PS_HOME/data/....
    Now you could override that in your psappsrv.cfg file with
    EMPLOYEE=PS_HOME/data/search PS_HOME I dont think can be used here as a variable... it needs to be the full path. the location here must lead directly to the EMPLOYEE directory
    In 8.52 there are also some alternatives to this older style above.
    See this peoplebook for 8.52 http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tsvt/book.htm?File=tsvt/htm/tsvt10.htm%23g037ee99c9453fb39_ef90c_10c791ddc07_102b for details.
    In the past I've used shares or nfs mounts to have the process scheduler write directly to the appserver. But you could check out the new search server option too.
    Let me know.

  • Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work.

    Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work neither when chosen after pressing the button nor chosen in the apple menu..

    I have had the same problem but on another forum it was suggested that disabling internet sharing would solve this. This fix seems to work on my machine - why it works I do not understand

  • "Open In.." function is not working

    Hi, "Open In.. " function is not working on my iPad since the first time I recieve it..
    it once worked twice, and it took a long time to load PDF file, but never worked again
    the apps list is there, but when I click the app, nothing happened.
    please do help,
    thanks

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    Also close all apps completely : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Copy Function is Not Working properly In Order Management

    Hi,
    Description-
    When an order with remnant model is copied, it copied only the topple model line and they include items attached to the top model line. It doesn’t copy the
    option class lines and the option item lines (unshipped and shipped).
    Example-
    Enter an order with for pd-pto-model. See order#21231.The ordered quantities and structure of the model is shown below:
    pd-pto-model 5 qty
    pd-std-item1 (included item) 5 qty
    pd-pto-oc (option class) 5 qty
    pd-std-item1 (included item with rfr checked) 5 qty
    pd-std-item2 (option item with rfr checked) 5 qty
    pd-std-item3 (option item) 5 qty
    Booked the order and pick relased the order. While shipconfirming only shipped 5 qty of pd-std-item3 and staged the rest. On querying the sales order, the line status is seen correctly as follows:
    pd-pto-model Closed
    pd-std-item1 (included item) Picked
    pd-pto-oc (option class) Closed
    pd-std-item1 (included item with rfr checked) Picked
    pd-std-item2 (option item with rfr checked) Picked
    pd-std-item3 (option item) Partially Interfaced to receivables
    Copied this order from the order header. The new order# is 21232.On querying the order, I see only 2 lines as follows:pd-pto-model.
    Anyone can help me on this issue.
    Thanks,
    Chinna

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Select() function is not working properly in solaris 10.

    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.
    Thanks a lot.
    Regards,
    Srikanth.

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    Sorry I had to reply through your profile Gail from Maine, my PC has java issues. In any event, when I delete them directly from my device everything is perfect and cool. However, in the rare instance I want to add new music that I actually buy in stores (I know, quite the unique and old-fashioned idea...but hey Im an audiophile) once I upload the tunes, everytime I sync my library it re-adds everything that I spent hours deleting. In a perfect world, I thought I could maintain a massive iTunes Library, and add or delete (remove) songs from my iPhone to save both memory or keep my iPhone selections more current/apt to my musical "tastes" at that time. I know about the whole playlist thing, but thought there might be an easier way. ie - checking/un-checking the little box next to the song name, and then doing a sync. Again, everytime I do this however, whether everything is checked or un-checked it adds the entire library! So frustrating. Any suggestions. Thank you graiously in advance for your help.

  • Palm Desk Top 6.2 Address Look Up Function Does Not Work In Windows 7

    I recently upgraded my desk top computer's operating system from Windows Vista Home Premium to Windows 7 Home Premium.  I synchronize with a Palm Tx PDA.  HP PalmOS customer support Chat helped me work through a compatibility issue that was preventing display of Address, Calendar, Memo and To Do items on my desk top computer via the Palm Desk Top 6.2 application.  I now find that the address look up function does not work (although it worked fine when I was running Vista).  Without success, I tried running the repair tool as well as reloading the software (both overlay and clean reinstall).  I would appreciate any help or suggestions to fix?
    Post relates to: Palm TX

    Hi,
    844869 wrote:
    CREATE TABLE TEST_EMPLOYEES
    FIRST_NAME VARCHAR2(26 CHAR),
    GRADE VARCHAR2(5 CHAR)
    INSERT INTO TEST_EMPLOYEES (FIRST_NAME, GRADE) VALUES ( 'William', 45 ); ...Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful.
    William&45     1
    Robin 43     1
    Raymond          43     1
    Richard          43     1
    Karen          28     1
    Michelle               1
    Jonathan               1
    Mark               1
    Ann               1You may have noticed that this site normally doesn't display multiple spaces in a row.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    This is one of the many helpful things found in the forum FAQ {message:id=9360002}
    Are the results above what you're getting with some existing query, or are they the results you want? 
    If those are your current results, post your query.  In that case, what are the results you want?  Do you want this?FIRST_NAME GRADE RNK
    William 45 1
    Robin 43 2
    Raymond 43 2
    Richard 43 2
    Karen 28 5
    Michelle 6
    Jonathan 6
    Mark 6
    Ann 6
    Edited by: Frank Kulash on Feb 21, 2013 2:39 PM
    I see you've added the desired results to your original message.
    Here's one way to do that:SELECT first_name
    ,     grade
    ,     RANK () OVER (ORDER BY grade NULLS FIRST)     AS rnk
    FROM     test_employees
    ORDER BY grade          DESC     NULLS LAST

Maybe you are looking for

  • Error while adding button usin pdk

    Hi all, I am working with plsql pdk & while trying to create a button in SHOW_EDIT mode using the api wwui_api_portlet_dialog.create_ok_button I am getting an error. : 'CREATE_OK_BUTTON' is not a procedure or is undefined (WWV-17050) Line No. 223 : P

  • Parallel Port

    I have an application that uses the parallel port. It works fine on Win2K using the AccessHW stuff. However, the piece of hardware I have hanging off the parallel port requires the parallel port to be put in SPP or AT mode. I change the mode in the c

  • Can't remember how to install a font

    I have a Mac OSX 10.6.8. I can't remember where to put new fonts and/or how to install them in Photoshop. I've been searching the web and have found no useful info! I downloaded the new fonts to Library/Fonts, but that's obviously not the main place

  • Every time I log on it tells me I must update firefox even though I have updated already.

    Although I have updated to the current Mozilla Firefox and also the current Thunderbird download, EACH time I log onto Mozilla, I get a notification for a Firefox Software updater. I am not the only one getting this. My husband is too. This is extrem

  • Disk Drive Not Working After iTunes Update

    Every time i install or update iTunes my computer doesn't read my disk drive. If i put in a disk for music or a game or anything it acts as if its not there. How do i fix this?