Aggregations using Dates

I need to create a report with many aggregations some of which are based on dates.
For example:
Count Where Status = Closed AND Date Created >= Today() -365
Count % SR Where Status = Closed AND Date Created >= Today - 365
From what I understand, BI Publisher can manipulate dates and formats provided they are in the canonical format.
http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm (date formats section)
This format is: YYYY-MM-DDThh:mm:ss+HH:MM ... e.g. 2005-01-01T09:30:10-07:00
The problem is, my data fields are not in canonical format they are as follows:
11/03/1999 10:59:49 and sometimes 09/15/1999
I also need a function for the aggregate condition that returns the current date.
So far I have got part of my aggregate working:
<?count(ssStatus[.='Closed'])?>
Questions:
Is it possible to manipulate the date format if the date field is not canonical and without using string functions?
Is there a function to return the current date/time in the same format as those I have?
How can this a comparison be written for Year to date? i.e. Today() - 365 ?
Thanks, John

No - I cant format the date strings at all, it looks like I will have to get them in canonical format to avoid using substrings.
Once in canonical format, how can I compare the system date to a canonical date?
Are there any functions/techniques to calculate the number of days difference i.e. YTD (Today - 365 days)
Would it be easy to add this conditional to my existing aggregate? for example...
<?count(ssStatus[.='Open'] ... AND ssDate >= Today -365 )?>

Similar Messages

  • Dynamic Aggregation Using BI Query Wizard

    Hi,
    Is it poosible to perform dynamic aggregation using Oralce Query Wizard. In other words , is it possible to change/filter the dimension members of a particular dimension and recalculate the aggregation with out changing the fact/dimension table contents.
    Your help is appreciated.
    Panneer

    Hi,
    Not sure exactly what you are tying to achieve. However, if your data is stored in Analytic Workspace objects then you can recalculate data via OLAP DML programs or models dynamically from within a BI Beans application. The AW environment is always attached in read-only mode as a default. Hence, you can change the data during a session and then dump the changes when the user exits the application.
    From within a relational environment it is very difficult to create the same approach since it is possible a commit could be issued. Unless you mark the required tablespaces as read-only. In which case you could execute PL/SQL procedures to recalculate data. However, not sure how you would resolve the refresh of any related MVs
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • Why does "itunes accounts" use data with all settings OFF?

    Does anyone know how to keep "iTunes accounts" under system from using cellular data?
    I have already:
    1. Toggled OFF all settings in the "Use cellular data for" menu.
    2. Turned OFF all automatic downloads and any other options under iTunes/app store settings.
    3. Turned OFF Background App refresh.
    4. Turned OFF all options under iCloud sync menu.
    Right now, the only thing that keeps "iTunes accounts" from pulling cellular data is turning Cellular Data completely OFF, but I don't want to do this because I lose some messaging and voicemail functions and I need to be able to use Find My Phone. I have two identical iPhone 5c's on this account. One is running iOs 8.1.2 and the above settings control it's data usage nicely. The other phone is running iOs 8.1.3 and this one uses 50-100 mb a day even with all the above settings off and the phone almost always on wifi.
    I am aware that the phone will lose it's wifi connection when asleep, but that shouldn't be a problem if all the apps/settings are already set not to use cellular data. What am I missing. I've read a bunch of threads on this issue and they all suggest settings I already have OFF.

    My personal phone is on 8.1.2. My daughter's phone is 8.1.3.
    It is her phone that is currently having this problem, but I reported it under my account; sorry for the confusion.
    My phone has had some data problems in the past, but I have been able to control them by keeping almost all data options OFF and the overall switch ON. My usage is back to less than 50 mb per month which makes sense since my phone is almost always on wifi and I don't use data dense applications.
    Everything about my daughter's phone is the same as mine except for the 8.1.3 upgrade. She does use things like Instagram more than I do, but I have them all set to not use Cellular Data and the option to change these settings is locked. When I look at the usage on her phone, it isn't her apps that are pulling unexpected data; it's "iTunes accounts" under system services. All the options under iTunes/App Store (auto downloads, home sharing, etc.) and all the iCloud options are already OFF.

  • Can we load data in chunks using data pump ?

    We are loading data using data pump. So I want to clear my understanding.
    Please correct me if I am wrong on my understandings -
    ODI will fetch all data from source (whether it is INIT or CDC ) in one go and unload into staging area.
    If it is true, will performance hamper in case very huge data (50 million records at source) at source as ODI tries to load entire data in one go. I believe it will give better performance if we load in chunks using data pump.
    Please confirm and correct.
    Also I would like to know how can we configure chunk load using data-pump.
    Thanks in Advance.
    Regards,
    Dinesh.

    You may consider usingLKM Oracle to Oracle (datapump)
    http://docs.oracle.com/cd/E28280_01/integrate.1111/e12644/oracle_db.htm#r15c1-t2
    In 11g ODI reads from source and write to target in parallel. This is the case where you specify select query in source command and insert/update query in the target command. At source side Odi reads records from source and add them to a data queue. At target side a parallel thread reads data from the data queue and writes to the target. So the overall performance would be the slower of the read or write process.
    Thanks,

  • Item Cost Is not Updated when using Data Object OinventoryGenEntry in DTW

    Hello Everyone,               
    I'm using data transfer workbench (OInventoryGenEntry) to send the production to sap-bo. All The info that I entered in the layouts Documents.csv and Document_Lines.csv are correctly loaded, except the info related to the field "price". Do you know what changes should I apply to the layouts in order to make the DTW transfer the Item Price?
    (version: SAP Business One 2005A SP:01 PL:27)
    Thanks a lot
    Salomon Ponce
    Viniteck SA de CV
    Guadalajara, Jal. MEX

    Thank You Vincent. It works for finish goods that currently have cost in the sap-bo (taking std or avg) . Do you what should I do when the item is receiving the first-transation and it is an inventory entry coming from DTW ? Because when I test this conditions, the field "price" is ignored and when I check the inventory entry sent using dtw the recorded cost is "cero".
    Thank a lot
    Salomon Ponce

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • Issue using data link in XML Publisher

    Dear All,
    I am new to XML Publisher, for the first time trying data link concept in XML Publisher tool. The issue is very simple, I have two queries Q1(say it fetches sales_order_number, application_name ) and Q2 (say it fetches sales_order_number , error_number, error_description). And sales_order_number is passed as input using data link to Query Q2 from query Q1 and Q2 will retrive more than one row for a given sales_order_number.
    Say for a given dept_name 1001 the output will be something similiar like
    Q1:
    SO# | Appl.Name
    1001 | 'Invoice '
    Q2:
    SO# | Error.# | Error Desc
    1001 | 1512 | No Data Found
    1001 | 1513 | Invalid Entry
    1001 | 2674 | Error while inserting the record
    and the query which I have used in XML template goes like this
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select sales_order_number, application_name                 
                      from T1
                     where sales_order_number = :in_sales_order_num]]>
    </sqlStatement>
    <sqlStatement name="LINES">
    <![CDATA[
    select sales_order_number , error_number, error_description
    from T2]]>
    </sqlStatement>
    <link name="Dummy_LINK" parentQuery="Q1" parentColumn="sales_order_number" childQuery="Q2" childColumn="sales_order_number" condition="="/>
    </dataQuery>
    <daraStructure/>
    And the grouping is as follows
    <group name="G_Q1" source="Q1">     
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="application_name" value="application_name"/>     
    <group name="G_Q2" source="Q2">
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="error_number" value="error_number"/>
         <element name="error_description" value="error_description"/>     
    </group>
    </group>
    And in the RTF template I have properly used <?for-each:G_Q1?> <?for-each:G_Q2?>- --
    <?end for-each?><?end for-each?>
    Ideally the header (Q1) should have one row and the lines (Q2) should have 3 rows. But the issue here is even Q1 produces 3 rows.
    If in case Q2 has 4 records, then Q1 also plots 4 records in the report output. Hope I am explaining the issue correctly. Any help to resolve the issue would be a great. Thanks in advance.
    Regards,
    Antony.

    try like this
    <?if: (TYPE='A') or (TYPE= 'B')?><TABLE STRUCTURE><?end if?>
    or
    <?if:contains('A~B', TYPE )?><TABLE STRUCTURE> <?end if?>

  • Upload Excel sheet using Data Integrator 6.1?

    hi all ,
    Upload Excel sheet using Data Integrator? and how to create ODBC for the PC and jobserver i am using version 6.1? i am using excel as my one of the data source and tell me how to use different types of data sources in DI . after uploading the xl file if i apply any transform on the excel data i will give error like
    Posted: 25 Sep 2008 04:30
    Post subject: Re: Upload Excel sheet using Data Integrator? 
    I am getting the error like
    3128 292 CON-120302 09-25-08 09:59:40 ODBC call <SQLDriverConnect> for data source <sas> failed: <[Microsoft][ODBC Driver Manager] Data source name not found and no
    3128 292 CON-120302 09-25-08 09:59:40 default driver specified>. Notify Customer Support.
    1512 2992 CON-120302 09-25-08 09:59:41 ODBC call <SQLDriverConnect> for data source <sas> failed: <[Microsoft][ODBC Driver Manager] Data source name not found and no
    1512 2992 CON-120302 09-25-08 09:59:41 default driver specified>. Notify Customer Support.
    Please help me out
    Thank u

    Hi Shonti,
    The DI 11.7 installer can be used to upgrade a DI 6.1 local repository (e.g. the upgrade is supported).  This will migrate all jobs and flows.  They will remain intact, however, this is always a major migration effort and should not be taken lightly.  If you do upgrade, please make sure this is a planned effort with rigorous testing and validation.  You should also ensure that you consult the release notes and [supported platforms documentation|https://websmp110.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000712240&_SCENARIO=01100035870000000202] for the 11.7 package you intend to install.  The DI 11.7 documentation also contains info about how to install and configure the Excel Adapter, and what functionality it provides.
    Thanks,
    ~Scott

  • Why does my phone use data with cellular data turned off?

    I have problems with my iPhone 5 using data on its own. It usually happens at night, with all the apps closed and plugged in to charge (should be connected to my wifi). Recently, I started turning off my cellular data any time I'm at home out of desperation to save my data. Last night, my phone used 6MB of data with my data off, plugged in. I use My Data Manager to track, it matches up with AT&T's record of my data usage, so I'm pretty sure the app is not wrong. I have the 200MB plan, so I have to be very careful and it's incredibly frustrating to wake up and find 6MB gone when cellular data was turned off. Does anyone know what's going on?  I haven't bothered calling Apple or AT&T, I never get anywhere with either one.

    I'm not familiar with My Data Manager but from the name I would think it would tell you what app or apps have used the data and that might help narrow down the problem. If it doesn't have that information, you can go to Settings > Cellular > Use Cellular Data For and that shows usage by each app and if you click on System Services in that list it will also give details of that usage. The numbers are since you last reset the statistics (bottom of that screen). With a little time and detective work you may be able to identify the cause.
    Also, there have been many discussions on various internet forums of AT&T (and other) reporting of the time of data usage not matching the actual time of the use. The usage numbers over a number of days for example are accurate but usage reported at 2AM may actually be a summary of some types of use that happened the previous day.

  • How to get useful data from request?

    Hello.
    I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
    Thanks.

    If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
    The only thing you can try to rely on are ;
    - the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
    - the User-Agent header : from this, you can guess the OS and the browser used
    - the Referer header : usefull to get where your user comes from (where they found a link to your site)
    - the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
    Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't)

  • Issues with Using Data Dashboard and Using Web Service

    After running a system for many months it has suddenly decided to not work at all.  I am using Data Dashboard to read variables on a host.  I'll outline the system here to get a baseline:
    I'm running LV 2012 SP1 f5. 
    I collect data from one Ethernet port and interfact it to another Ethernet port to form a proxy.
    I use a fixed IP address from my DSL along with port forwarding/port triggering in my router for data observation and control.
    So, what have I done so far?
    1.  Repaired my original LV 2012 SP1 and tested system.
    2.  Upgraded to LV 2012 SP1 f5 and tested system.
    3.  Ran service.msc and checked all the NI services that should be operational.  Started and stopped several of them and rebooted computer.
    4.  Deployed all my SVs (multiple times)
    5.  Disconnected second Ethernet interface becasue sometimes the variables would deploy to this IP address.
    6.  Turned off my wireless because sometimes the variables would deploy to this IP address.
    7.  Checked "Web Server Configuration" "Application Web Server" for correct port number.
    8.  Checked "Web Services Management" and under "Deployed Web Services" there is one category:  SV is marked as running.  NOTE!!  WebService is NOT listed and this could be a problem
    I can use the following to retrieve data&colon;  localhost:<port number>/sv/variable.  But when I substitute my DSL IP number, I can no longer get any data.
    So, what am I missing?  
    Thanks,
    Paul.

    Siana,
    Thanks for your response.
    I haven't touched the NI code in months.  It is running on an XP laptop and I have the Windows updates turned off.  McAfee is running on it and of course that updates regularily.  This laptop is a dedicated machine that I only use for this function, nothing else.  I haven't added or subtracted any programs for many months.
    There have been no changes to the DSL from me.  AT&T is constantly trying to get us to upgrade to U-Verse but we have resisted.  All DSL modem and router hardware is the same.  
    Confusing, huh?

  • IPhone 5 using data all the time

    My husband has had his iPhone 5 for a couple of weeks.  We have Verizon 300 mb plan, as he is mainly just using it for calls and text.  But it is using data all the time!  Today our online Verizon account is showing 59 episodes of data usage.  They are small, but still, why are they there?  All he has done is call and text.  He would like to keep the cellular data on because he texts by talking to it.  He did not send anything close to 59 texts.n was not on the Internet.
    We have turned off practically everything.  Location services, stocks, weather, email, notifications for everything except text and calls.  Stopped it from sending data to Apple.  He has added only 4 apps- cam wow, talking bird, talking cat, and free cell solitaire.  Not signed in for iCloud or Facebook or anything.

    Is Digi a CDMA carrier? or is it GSM/UTMS?
    If CDMA, that's normal. The technology was not designed for data and calling.
    If its GSM, give them a call to seek resolution.

  • How to use data from standard view in Web dynpro for ABAP

    Hello:
    I have to create an Abap Web Dynpro, and I must use data from a standard view in the new one. Does anybody know what do I have to do?
    Thank you and have a happy new year.

    Hi Rodrigo,
    Firstly, list the Standard component under Component Usage of the Component which you are creating in your View.
    Second, In the Custom Component, view, goto context, and try to add the node from the Standard component in to your view.
    NOTE: The second step requires a Node in component controller of the Standard Component.
    Finally, Now in your view, get the data from that and map the data.
    NOTE: To do this, I think you need to call your Standard WDA first and then only your node contains data and it will be passed.
    I hope it is helpful.
    Regards,
    Shashikanth. D

  • Why do my 5c and 5s use data when I am on WiFi? And why does it show up in regular intervals of 6 hours? Very strange.

    I am really having problem controlling the data usage. It seems that iPhone 5c and 5s both use data when wifi is available. And plus, the data seems to be dumped all at once every 6 hours most of the time. I know I am neither uploading nor downloading 140MB over data at 7am. DOes anyone know how to control this?
    I switched off almost all background data usage (except messages). I am not on facebook etc. What is going on?

        Thanks for trying Jay's suggestion, zole. The iPhone should still be able to use WiFi to send and receive iMessages. By design though, Apple devices will turn off WiFi when the phone goes dormant (screen turns off) so if you are in the midst of downloading something or a new message comes in, the phone will be using the available mobile data by default.  You can turn cellular data on or off for individual applications http://vz.to/1IuZJIM instead of completely shutting off the cellular data. In that same section, you can see what applications may be using more cellular data than others to go into that specific app for settings (for example, if Facebook is using a lot of data, go into the application's settings and make sure the video autoplay is turned to WiFi only).
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Why do i keep getting 'to use data on your phone,you'l need add on pack' texts?

    I ordered a pay as you go sim card from EE a few weeks ago to use in my iphone 5 as a second/work phone. The package on the sim is a 'top up £1 and get some free mins and texts (no data allowance)' plan. I put the sim card in my phone and have left the phone at home and not put any credit on it yet or used it at all, ( not even any apps/calls etc ). Every day when i come to look at the phone there are atleast 4 text messages a day from EE saying 'To use data on your phone, you'll need an add-on pack Click here to buy'. I am getting sick of this as i have turned mobile data off in the settings and my phone is constantly connected to my home wi-fi so cannot see how it would even by using any data. Today i have come home to 8 of these messages! I refuse to top my phone up with credit and start using it until this is sorted as im not paying for any data usage i wont use! There are no apps running in the background, and nothing has been set up on the phone that would require internet usage i.e. emails / weather etc. Please can someone help me...  Thanks

    Hi,  I also recieved thousands of messages saying that I need to buy add-on, that's anoying.  I called EE for 3 hours and they are not able to deal with that. They just try to make my mobile phone responsible. What can I do?  Thank you.

Maybe you are looking for

  • Dump Error : Unable to Interpret '/'

    Hello,          we are trying to upload Material Master, where we have a Custom Field, this custom field is defined as NUMC(10) data type in BMMH1-YYD_YMANU and also in MARC table. And this field has been customized in Material Master in a seperate s

  • Can I trash "Previous Systems" after Archive and Install?

    For details leading up to this question, please see my previous post entitled "Not recognizing password after OS install". Basically I want to know if I can throw out the "Previous Systems" folder that was created when I did an "Archive and Install"

  • Bouncing Navigation Text

    Hi all, I'm looking for advice on how the experts do this kind of thing. (Link below) The text navigation next to the guy in the middle of the flash piece has a nice bounce to it (both the text and the arrow glow). I can create this using a movie in

  • LSO Portal: link 'confirm participation' shows up randomly

    Hello, the link 'confirm participation' shows with some participants after having finished a training, enabling them to follow it up. With other participants taking the identical training, passing and finishing it the link does not show up, so they c

  • ERROR when trying to print to EPSON 1400, RASTERTOESCPII Any suggestions please?

    I downloaded after S/W update said I had new printer S/W available, NOT positive this caused problem, but sure can't print now from any Apps. I D/L new Combo S/W from Epson, but didn't resolve. I de-installed using Epson CD, but still not resolved. S