Divide any 12 months into group of 3 months

Hi,
I have a report where in my report fetches previous 12 months data. Previous means previous from current month. So if report is run in Feb-2014 it fetches data from Feb-2013 to Jan-2014.
Now, I need to divide this span of Months into group of 3 months. Like:
02/2013 - 04/2013
05/2013 - 07/2013
08/2013 - 10/2013
11/2013-  01/2014
How can it be achieved.. Any inputs please..
I am working on CR for Enterprise 4
Thanks..

If the source wasn't a Universe, here's what you would do:
1) Find out of the Minimum Date from the  records returned by the query. To do this, go to the Database Options on the Top > Show SQL Query > Copy. Let's assume the copied sql looks like this:
Select table.date, table.field1, table.field2 from Table where <condition>
2) Go to the Database Expert > Under the Connection Name, click Add Command > Paste the copied SQL and modify that to:
Select Min(table.date) as Minimum from Table where <condition>
2) Go to the Database Expert and make sure these two tables are Not Joined on any field
3) Create a formula with this code:
If Month({Date}) IN
[Month({Command.Minimum}),Month(DateAdd('m',1,{Command.Minimum})),
Month(DateAdd('m',2,{Command.Minimum}))] then 1
else If Month({Date}) IN [Month(DateAdd('m',3,{Command.Minimum})),Month(DateAdd('m',4,{Command.Minimum})),
Month(DateAdd('m',5,{Command.Minimum}))] then 2
else If Month({Date}) IN
[Month(DateAdd('m',6,{Command.Minimum})),Month(DateAdd('m',7,{Command.Minimum})),
Month(DateAdd('m',8,{Command.Minimum}))] then 3
else If Month({Date})
IN
[Month(DateAdd('m',9,{Command.Minimum})),Month(DateAdd('m',10,{Command.Minimum})),
Month(DateAdd('m',11,{Command.Minimum}))] then 4
Replace {Date} with the Date field from the existing table and {Command.Minimum} with the field from the Command Object that we added
4) Go to the Group Expert > Add this formula to the Group list.
That's it!
If you have access to the Universe, you can create a Dimension Object that gets Minimum Date from the query. You can then create another Dimension object using Case Statements that uses the 'Minimum' object to number each row as 1,2,3 or 4. You can then simply group on this new object inside the report.
Hope this helps.
-Abhilash

Similar Messages

  • How do I divide a large catalogue into two smaller one on the same computer?

    How can I divide a large catalogue into two smaller ones on the same computer?  Can I just create a new catalogue and move files and folders from the old one to the new one?  I am using PSE 12 in Windows 7.

    A quick update....
    I copied the folder in ~Library/Mail/V2/Mailboxes that contains all of my local mailboxes over to the same location in the new account. When I go into mail, the entire file structure is there, however it does not let me view (or search) any of the messages. The messages can be accessed through the Finder, though.
    I tried to "Rebuild" the local mailboxes, but it didn't seem to do anything. Any advice would be appreciated.
    JEG

  • Contacts into groups

    The contacts catorgories in Outlook 2003 won't sync into
    groups in Iphone.
    any help welcome
    chas

    I can't use iCloud because my computer is running 10.6.8 and can't go to 10.7 (older machine). Otherwise this wouldn't be a problem. I have individual contacts and I have contact groups, both on my iPhone. I want to do some housecleaning and put individual contacts into specific groups. I can't figure out HOW to do this. Can't do it on the iPhone, can't access iCloud Contacts. Do I use the Mac Address Book? I can't figure out how to sync that with my iPhone either.
    Thanks!

  • I downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    i downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    hi philly, thanks for getting back to me, especially on such a busy day.
    I don't think that's quite the issue though. I bought an album and it appears in 'my purchases' within the itunes app. Yet, in order to listen to the music, i must use the 'music' app and in this application, there are only three tracks displayed at any one time from my downloaded album.
    I can 'download all' from the 'my purchases' section but that still doesn't help, it just keeps the last three tracks downloaded in the music app.
    I have the 'icloud' enabled and wondered if it had anything to do with that.
    i have successfully downloaded another full album totally into the music app, but this first album is causing me problems.

  • How can I see in my address book all contaacts that have not been placed into groups?

    How can I see in my address book the contacts that have not been put into groups?

    The best way to do that is create a new "smart group" with the following:
    This way you can identify those without a group and drag them to one.
    Regards,
    Captfred

  • How do you get your contacts into groups?

    how do you get your contacts into groups?

    When you ask a question, please include the version of Mac OS X on your computer. iOS is not a Mac operating system.
    Assuming you are running OS 10.9.1:
    Open Contacts. Click File in the menu bar and select New Group. Enter the name of the group in Contacts on the left.
    Go back to All Contacts (on the left) then drag and drop the names you want in that group on to the folder you just named.
    Repeat as necessary for other groups.
    Note that the names remain, as they should, in All Contacts, even after you have added them to a group.. You can delete a group if you want. The names will still remain in All Contacts.

  • Convert virtually any CAD file into a PDF document .

    Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates?
    Earlier Acrobat 9 Pro Extended used to be ?

    In the latest version of Acrobat the grammer was added to allow embedding a swf file. Unfortunately the Designer (the tools for getting the swf in there) lags behind and will be there in a future release. So if you really want this you must do it by hand and it will only work in Acrobat/Reader 10.
    Here is a blog entry that describes how to do it:
    http://blogs.adobe.com/formfeed/2010/12/flash-in-xfa-sample-column-chart.html
    Paul

  • LDAP Authentication Failed :user is not a member in any of the mapped group

    Hi,
    I tried to set up the LDAP Authentication but I failed.
    LDAP Server Configuration Summary seems to be well filled.
    I managed to add a Mapped LDAP member Group: This group appears correctly in the Group list. 
    But itu2019s impossible to create a User. Although this user is a member of the mapped group (checked with LDAP Brower) , an error message is displayed when I tried to create it (There was an error while writing data back to the server: Creation of the user User cannot complete because the user is not a member in any of the mapped groups)
    LDAP Hosts: ldapserverip:389
    LDAP Server Type: Custom
    Base LDAP Distinguished Name: dc=vds,dc=enterprise
    LDAP Server Administration Distinguished Name: CN=myAdminUser,OU=System Accounts,OU=ZZ Group Global,ou=domain1,dc=vds,dc=enterprise
    LDAP Referral Distinguished Name:
    Maximum Referral Hops: 0
    SSL Type: Basic (no SSL)
    Single Sign On Type: None
    CMS Log :
    trace message: LDAP: No such attribute: supportedControl, assuming no ranging support.
    trace message: LDAP: LdapQueryForEntries: QUERY base: dc=vds, dc=enterprise, scope: 2, filter: (samaccountname=KR50162), attribute: dn objectclass
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 2453 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 1
    trace message: GetParents from plugin for cn=huh\,chen, ou=accounts, ou=users, ou=domain1, dc=vds, dc=enterprise.
    trace message: LDAP: De-activating query cache
    trace message: LDAP: LdapQueryForEntries: QUERY base: , scope: 0, filter: (objectClass=*), attribute: supportedControl
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 0 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 0
    trace message: LDAP: query for DSE root returned 89
    trace message: LdapQueryForEntries: incr. retries to 1
    trace message: LDAP: Updating the graph
    trace message: LDAP: Starting Graph Update...
    trace message: LDAP: LdapQueryForEntries: QUERY base: , scope: 0, filter: (objectClass=*), attribute: supportedControl
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 0 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 0
    trace message: LDAP: query for DSE root returned 89
    trace message: LdapQueryForEntries: incr. retries to 1
    trace message: LDAP: LdapQueryForEntries: QUERY base: , scope: 0, filter: (objectClass=*), attribute: supportedControl
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 0 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 1
    assert failure: (.\ldap_wrapper.cpp:3066). (pSetAttributes : no message).
    trace message: LDAP: No such attribute: supportedControl, assuming no ranging support.
    trace message: LDAP: LdapQueryForEntries: QUERY base: dc=enterprise, scope: 2, filter: (&(cn=gp-asia)(objectclass=group)(member=cn=huh
    , chen, ou=accounts, ou=users, ou=domain1, dc=vds, dc=enterprise)), attribute: objectclass
    trace message: LDAP: LdapQueryForEntries: QUERY base: , scope: 0, filter: (objectClass=*), attribute: supportedControl
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 0 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 1
    assert failure: (.\ldap_wrapper.cpp:3066). (pSetAttributes : no message).
    trace message: LDAP: No such attribute: supportedControl, assuming no ranging support.
    trace message: LDAP: LdapQueryForEntries: QUERY base: dc=enterprise, scope: 2, filter: (cn=gp-asia), attribute: member objectclass samaccountname cn
    trace message: LDAP: LdapQueryForEntries: QUERY result: 0 took 3109 ms
    trace message: LDAP: LdapQueryForEntries() QUERY number of entries returned: 0
    trace message: LDAP: query for DSE root returned 0
    trace message: Failed to commit user 'KR50162'. Reason: user is not a member in any of the mapped groups.
    trace message: [UID=0;USID=0;ID=79243] Update object in database failed
    trace message: Commit failed.+
    Can you please help?
    Joffrey

    Please do this after you verify all permission settings for all the groups the account is associated with. Also, make sure you check the NTFS folder permissions before doing this as well.
    Since the same result happens on multiple computers, it is not the profile.
    I am recommending you delete the AD account (or rename to backup the account).
    It will not effect the users Exchange account, but you will need to link it back to the new AD user account. 
    You can also delete her profile just to remove it, for the "just in case" scenario.
    Don't forget to mark the post that solved your issue as &quot;Answered.&quot; By marking the Answer you are enabling users with similar issues to find what helped you. Lewis Renwick - IT Professional

  • I was quit group by command. But I had not quit and I can't receive any info from that group.

    I was quit group by command. But I have not quit and I can't receive any info from that group.so I can't quit and add again. also receive info. This is very funny. 

    Bump

  • Any one have any information about Security Group to send it to me

    any one have any information about Security Group to send it to me
    what is it and how can we use it in our work

    Have a look in the general R12 MOAC and FA concepts.
    With security groups, you can defined a set of organizations with a shared access.
    E.g. you defined one Secruity groups and assigned in these group 5 organizations.
    The security group is assign to a responsibility.
    You have access to these 5 organizations over one responsibility, you must not change the responsibility, if you will enter transactions for a other organization.

  • Is there a way to organise Ipad apps into groups (folders) e.g. English, Maths, PrePrimary etc. in Itunes for syncing purposes?

    I work in a school and have a 32 bay syncing, recharging cabinet. We are starting to get a lot of apps and need to orgaise them better. I know I can organise them into groups on an individual ipad but can I do this organisation in itunes and then sync this organisation to the 32 ipads in the cabinet.

    Sorry did quick reply on your title. I'm not sure about iTunes. If you have them all attached to one apple I'd, then yo u can sync all of them the same up to 10 devices. Once you create one then you can sync the rest the same with the same folders. I'm not sure on how education works. You might be able to do more than 10 per id. I'm out of my league on that ?

  • Why does Discoverer put my custom function into GROUP BY

    To make things clear with simple example:
    I have 10 id's from people (people.id) and sum function on their salary [sum(people.salary)] during a period of time that i set in my parameters.
    The sql looks something like this:
    SELECT PEOPLE.ID
    ,SUM(PEOPLE.SALARY)
    FROM FRS_PEOPLE
    WHERE [MY CONDITIONS]
    GROUP BY PEOPLE.ID
    I registered a function that uses people.id, and some other parameters to calculate something for each people.id!
    I made a calculation:
    MY_FUNCTION(people.id,'xxx','yyy')
    ,so my sql looks like this now:
    SELECT PEOPLE.ID
    ,SUM(PEOPLE.SALARY)
    ,MY_FUNCTION(people.id,':xxx',':yyy')
    FROM FRS_PEOPLE
    WHERE [MY CONDITIONS]
    GROUP BY PEOPLE.ID,MY_FUNCTION(people.id,':xxx',':yyy')
    It runs but never finishes....?!
    When i run my sql in sqlplus i do not put my function into group by, but discoverer does so, despite it already has people.id item in GROUP BY!
    And if i put instead of people.id an actual id it works correctly and does not put my function into group by!
    The sql i am looking for and works correctly is:
    SELECT PEOPLE.ID
    ,SUM(PEOPLE.SALARY)
    ,MY_FUNCTION(people.id,'xxx','yyy')
    FROM FRS_PEOPLE
    WHERE [MY CONDITIONS]
    GROUP BY PEOPLE.ID
    Please someone help!
    My select clause is much more complicated, with many outer joins so i made the above up just to explain to you what my problem is!
    I hope i made my self clear!
    Help would be very appreciated.

    Hi,
    I think there is a problem with your function. That fact that the report completes when an actual id is used must not when a people.id is used suggests that it works when the function is called once with an actual id but not when it is called many times with a people.id.
    If the function is doing complex lookups and calculations to obtain a salary for each people.id then often this type of report will run quicker with the salary calculation is brought into the report SQL using joins etc.
    Tracing the Discoverer session running the report will show you all the SQL processed by the database and the execution plans used. It will show you how often the function is being called and what SQL is being run by the function.
    Rod West

  • Can't import any .psd files into after effects.

    Hello all.
    I was using CS5 master collection without issue, for a year. 
    Decided to upgrade to the CS6 master collection and that’s when the problems began.
    For example, I can’t import any .psd files into AE.
    All files are saved in RGB mode.
    The previous files were made on CS5.
    I made a new .psd file in CS6 with just a couple of layers on it, couldn’t import that either.
    I’ve tried Ctrl-alt-shift to delete preferences, that had limited success. I can import a file and do a little bit of work on it but as soon as I close the file down and opened it up again, it does not recognise the .psd file.
    The errors I’m getting in AE are many
    For example:
    After Effects warning: Reading past end of file
    After Effects error: Could not open intro.psd because it is not a valid Photoshop document
    After Effects error: Crash in progress. Last logged message:<8104><dynamiclink><5>C:\ProgramFiles\Adobe\Adobe Premiere Pro CS6\Adobe Premiere Pro exe
    After Effects error: Not enough memory to initialise PSL
    I have un-installed and re-installed many times.
    I’m using Windows 8, with 32ram. Hard drives C: 100mg, D: 2 Tb
    I’ve tried installing on both drives, still the same thing happens. 
    Does anyone out there in Adobe Land have any ideas?
    Totally confused
    Cheers,
    Gary.

    Hi Arie,
    Thanks for your response.
    It actually happens with every .psd file regardless of size or specs.
    All the other programs in the CS6 master collection work fine, except for AE and PS.
    I tried the small file. Created a small file, 100 px by 100px 72dpi, just with a gradient background. Same thing, not enough memory to initialise PSL.
    I got the adobe cleaner, and re-installed on my system (again) .... same thing.
    As long as I open AE with doing ctrl-alt-shift every single time or export layers from PS individually I seem to be OK.
    The problem is far from solved, so I guess i just have to put up with workarounds.
    Thanks for taking the time to respond

  • Is there any options to organise groups in contact...

    i am using nokia asha 502
    There is no way to organise contacts as seperate groups ?
    even while sending messages there is no way of selecting more than one contacts ?
    is there any way to organise groups in contacts 
    or any ways  to create groups for messages ?
    please suggest sme ways ?

    Yes you can do this but it is a little tedious. If you have just one level of sub folders it's OK. If you have more it becomes difficult.
    You could use "tell app "Finder" - set myContents to entire contents of folder mySelectedFolder - end tell
    This returns all the items including PDFs and folders as a flat list. From there you can move files or process them.

  • Is there any chance that Tab Grouping feature (like the one in Opera 11) will become native for Firefox? Could be very helpful.

    Is there any chance that Tab Grouping feature (similar to Opera 11) will appear in Firefox? Could be very helpful and convenient.

    Hi ThaPlaya,
    I feel your pain. I am in charge of over 250 PCs and laptops. Flash Player stopped working for me after an update. I have been working on this issue non-stop since the middle of October, 2012. It's time-consuming, and even after applying the latest Flash update, it still doesn't work properly.
    I am beyond frustrated! I have people calling me left and right saying that they can't access content. I have been using this site https://www.mozilla.org/en-US/plugincheck/ to try and do a browser plug-in check while in IE an dFirefox. Even after I update all plug-ins, Flash still works about half the time.
    For instance, the principal of the middle and high school wanted to view an online magazine http://upfront.scholastic.com/issues/12_10_12, about 3 pages load on this site. The rest continue to say LOADING. When I right-click on a page and then left-click on ABOUT ADOBE 11.5.502.110, it seems I am using the most up-to-date version for IE and Firefox.
    Students are trying to access sumdog.com and stmath.com, both run using Flash. STMath is now working a bit better because I allowed some exceptions in our internet content filtering appliance, and in our firewall, sumdog still works half the time.
    If Adobe is going to update their browser plug-ins, they need to test and retest before giving the public access. This situation is causing me a ton of problems!
    Sorry to infiltrate your post...
    Dawn/Flower1964

Maybe you are looking for

  • Come on Adobe?

    I expected more from you, or at least did years ago with your video editting products. Thought you were the best, and then I ran into 'flash'. I'm really surprised that a group such as Adobe could charge SO MUCH for ADOBE FLASH for developers when on

  • [JDBC][ODBC] How to compact access database from Java ?

    Hello, I'm developping a java applcation wich is connected to an MS Access file database. For now, I don'y compact it but it would be better. So How can I compact an access database from Java ? thanks :)

  • Select G/L Account

    Hi all, How do I select G/L account of Revenue a/c by SQL query?Is it possible to load Revenue a/c into a matrix using  DBDatasource with condition(oCondition)? Please help, thanks in advance, BBN

  • SQ01 and SE93

    Trying to add a bespoke transaction code to a query I have created via SQ01. I ran the query and got the code behind it from System->Status. I then added the program name and screen 1000 to the transaction. The quesry and the transaction were then tr

  • SQL statement: select maximal 20 rows of table

    Hi everybody, I know taht this is no dedidcated XI question. But, does anybody the sql statement for selecting maximal (e.g. 20) rows? Regards Mario