Identify all Quarters associated with a Given Date Range

Hi,
I am trying to create a Crystal Report that shows all Quarters data for a give date range. For E.g. the user defined date range is 02/20/2013 - 01/15/2014, the report should include the data for Q1-2013 till Q1-2014. Is there a simpler way to achieve this functionality.
I will really appreciate your help/guidance on this.
Regards,
acb

Hi Chandra,
Do you have a Date Range prompt or two separate prompts for Start Date and End Date? If it's a Date Range prompt, use this as the Record Selection Formula:
datevar start := Minimum({?Date_Range_Prompt});
datevar end := Maximum({?Date_Range_Prompt});
{Date_Field_in_Database} >=
     If start in Calendar1stQtr then
         Minimum(Calendar1stQtr)
     else if start in Calendar2ndQtr then
         Minimum(Calendar2ndQtr)
     else if start in Calendar3rdQtr then
         Minimum(Calendar3rdQtr)
     else if start in Calendar4thQtr then
         Minimum(Calendar4thQtr)
AND
{Date_Field_in_Database} <=
     If end in Calendar1stQtr then
         Maximum(Calendar1stQtr)
     else if end in Calendar2ndQtr then
         Maximum(Calendar2ndQtr)
     else if end in Calendar3rdQtr then
         Maximum(Calendar3rdQtr)
     else if end in Calendar4thQtr then
         Maximum(Calendar4thQtr)
-Abhilash

Similar Messages

  • CUP 5.3 is coming back with all risks associated with a user

    HI, i know this has probably come up in the past but i'm not finding it anywhere in the forum.  we are having a problem with CUP 5.3 provisioning as it's bringing up all risks associated with a user rather than the new ones for the role being requested.  this is especially aggravating for roles that do not have a conflict.  i'm thinking this might be a very simple answer but i'm not finding it anywhere.
    thanks
    ryan

    Ryan,
    Excuse me for the link. the problem was because a 'P' at the end
    This is the correct one: Did CUP risk analysis change with SP7?
    And, as per my knodelge, There's no way to show only the "new risks" in CUP risk analysis.
    If you want to use GRC succesfully, first you have to "get clean". Check here (Note 1593056 - Best Practices for Remediation of
    Segregation of Duties risk):
    The Risk Analysis and Remediation (RAR) application is part of the "Get Clean" methodology which is at the core of GRC Access Control. The first step of any Access Control project should be to "Get Clean" of any segregation of duties violations through the use of RAR. Once clean, Compliant User Provisioning, Enterprise Role Management and SuperUser Privilege Management are tools used to "Stay Clean".
    If you've already identified the risk, mitigate them. This is the best practise. I undertand your problem, but until you finish the "clean procedure" you should use an alternative workflow for CUP.
    Cheers,
    Diego.

  • ERROR_NOT_FOUND: there is no credentials associated with the given resource name. + WCF Service while Retrieving WindowsCredentials

    Hi guys,
    I am struck with a problem while retrieving the Windows Credentials from WCF service.
    1. I have used WSHttpBinding.
    2. I have configured the Website and App pool to run under a specific user who is an Administrator for the server.
    3. I have created the windows Credential of Generic type using Credential manager with the same user.
    4. I configured the Website to allow only Anonymous and Windows Authentication in IIS (IIS Version: 8.5).
    5. I tried the same code in the same server by logging into server with same user and debug the service. The service is returning the windows Credential requested.
    6. But i am unable to retrieve the Windows Credentials from the same code when published in IIS in the same server.
    i configure the Security in Server and client as below:
       <bindings>
          <wsHttpBinding>
            <binding name="wsHttpEndpointBinding">
              <security mode="Transport" >
                <transport clientCredentialType="Windows"/>            
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
    7. I tried to read the error code generated by Credential Manager API from  my code and it returned the below error when i am accessing the deployed service.
    ERROR_NOT_FOUND: there is no credentials associated with the given resource name.
    8. I have also checked this with other environments out side my virtual machine with the same code and config file. All environments it is working fine except my environment. Can any body help me out on this...

    Hi pavan kumar,
        As per this case, I have shared the details below :
    1.where you got stuck & receive error message whether in service side or client side ?
    2.if its in service side, then I suggest you to enable tracing on wcf service for debugging purpose to findout the root cause.
    3.For configure tracing refer here "https://msdn.microsoft.com/en-us/library/ms733025.aspx"
    4.To know about WCF Extensibility – System.Diagnostic Tracing ,then refer the below link
    http://blogs.msdn.com/b/carlosfigueira/archive/2011/08/02/wcf-extensibility-system-diagnostic-tracing.aspx
    5.If its in Client side, Please make sure that the client is in the same or trust domain as service. 

  • To find quarters in given date ranges

    Hi All,
    I need help on this..
    I need to display the quarter dates in a given date ranges.i.e the start date is 06-nov-2008 and the last date is 12-dec-2009.

    Hi,
    Something like:
    WITH  d  AS
        SELECT  TRUNC (TO_DATE (:from_dt_var, 'DD-mon-YYYY'), 'Q') AS from_dt
        ,       TRUNC (TO_DATE (:to_dt_var,   'DD-mon-YYYY'), 'Q')  AS to_dt
        FROM    dual
    SELECT  ADD_MONTHS (from_dt, 3 * (LEVEL - 1))  AS dt
    FROM    d
    CONNECT BY  LEVEL <= 1 + (MONTHS_BETWEEN (to_dt, from_dt) / 3);where :from_ and :to_dt_var are strings like '06-nov-2008'.
    Edited by: Frank Kulash on Nov 6, 2008 9:52 AM
    Added 1 to CONNECT BY condition.

  • How do I deauthorize all computers associated with my Apple ID?

    Hi all,
    First post on Apple Support Communities :-)
    When I bought my first Apple product (iPad 2) a few months ago, I didn't know anything about Apple IDs, iTunes Store, Home Sharing and Computer authorizations. I experimented a little with iTunes and home sharing in VMware virtual machines (Windows 7) on my computer (Ubuntu). I quickly used up the 5 authorized computers, so I used the "Deauthorize all computers associated with your Apple ID" feature in iTunes and kept on experimenting (since I couldn't get things to work properly in my virtual environment).
    Now I have an iPhone 4S and my daughter has an iPod Touch 4G, and I'm planning on buying the new Apple TV. But I'm not going to because I can't have Home Sharing. I can't "clean" the authorized computers because I did it a few months ago and it is only permitted once a year.
    It is possible to request an exception (and how?) and have the authorized computers cleaned up?
    Thanks a lot
    Sebastien

    If you can't deauthorize systems just by the "deauthorize" command under the Store menu in iTunes, then go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the problem to the iTunes Store. They may be willing to clear your authorizations for you.
    Regards.

  • How can I get all users associated with my VSO

    I see here: https://www.visualstudio.com/en-us/integrate/api/shared/profiles that I can get my profile info from the API, but can I get all users associated with an account?

    Hello!
    If you want to see all of that in a single mailbox, you can create a Smart Mailbox from the "file" menu in the top left corner of your screen. It's a bit of trial and error before you get the rules correct, perhaps, but that will work.

  • When trying to access music stored on my icloud i get the following warning 'This computer is already associated with an Apple ID'. itunes support say they have 'released' all devices associated with my account but i still have the same problem-any ideas?

    cant access music sored in my icloud when using my lap top. any ideas?

    iTunes imposes a 90 day wait period before a device can be associated with a different ID.  If iTunes support only removed all devices associated with your ID, this does not override the 90-day wait period.  From http://support.apple.com/kb/HT4627:
    "Removing a device from your Apple ID does not override the 90 day timer. The timer must complete 90 days from the day the device was associated before it can be associated to another Apple ID."
    Unless iTune support can override the wait period for you, you have no choice but to wait if you want to download it from iCloud.  If your purchases music is on any of your iOS deivces, you can transfer it to the iTunes library on your computer by authorizing your computer for the Apple ID(s) used to purchase the music (in iTunes, Store>Authorize This Computer), then connecting your device to your computer, opening iTunes, and going to File>Devices>Transfer Purchases.

  • Methods associated with a given business object...

    How can I find different methods associated with a given business object ? Any transaction ?
    Thanks.
    Regards,
    Tushar.

    Use transaction SWO1.

  • I need help deleting "all records associated with my domain name"

    Hello,
    I'm having problemsthe same exact problem as Daren... setting up my site to go live. Here's what I've done so far:
    1) built the site and pushed it live
    2) upgraded the site
    3) set up a GoDaddy domain name
    4) set up the servers on GoDaddy
    5) set up the associate account info on BC
    And then.... nothing.
    I've then deleted the domain and tried to repeat the process, in case I missed something, but now I can't set up a new domaine and keep getting the error "Domain already exists. Please delete all records associated with this domain". What records? What does this even mean?
    Can someone please walk me through the steps to get this site live?
    Thanks!
    Alex

    Can you try again? If still no go, please reach out to BC support directly via http://helpx.adobe.com/contact.html?product=business-catalyst&topic=using-my-product-or-se rvice.
    Thanks,
    Vinayak

  • How to calculate a week & Month in given date range (not for sele-options)

    Hi ,
      I have defined 2 date parameters in sel-screen (Plz remember that date variable are not a SELECT-OPTIONS).  Now i want ot display week nos & monts in output.
          Ex: date1: 20080101 & date2: 20080229. then
                    weeks : 1, 2, 3,---9.
                    months: jan-08, feb-08.
    Plz help me with block of code or any FM.
    Regards,

    Hi Srikanth,
            The FM HR_99S_INTERVAL_BETWEEN_DATES   is doesn't existing, but there is a fm HR_MX_INTERVAL_BETWEEN_DATES but it returns no of Years & Days.
           But i found some FM which r returns no of months for given date range. but my requirement is, want to display the month no bw 1 to 12. (ex: dat1=15-03-2008 & dat2= 01-06-2008 then in month fields 03,04,05 & 06. ).
    Plz help me on this.
    -Regards.

  • Get table partition name dynamically for given date range

    Dear All,
    Could you please tell me how to get the partition name dynamicaly for given date range ?
    Thank you.

    SQL> select table_name,
           partition_name,
           to_date (
              trim (
                 '''' from regexp_substr (
                              extractvalue (
                                 dbms_xmlgen.
                                 getxmltype (
                                    'select high_value from all_tab_partitions where table_name='''
                                    || table_name
                                    || ''' and table_owner = '''
                                    || table_owner
                                    || ''' and partition_name = '''
                                    || partition_name
                                    || ''''),
                                 '//text()'),
              'syyyy-mm-dd hh24:mi:ss')
              high_value_in_date_format
      from all_tab_partitions
    where table_name = 'SALES' and table_owner = 'SH'
    TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE_IN_DATE_FORMAT
    SALES                          SALES_1995                     01-JAN-96               
    SALES                          SALES_1996                     01-JAN-97               
    SALES                          SALES_H1_1997                  01-JUL-97               
    SALES                          SALES_H2_1997                  01-JAN-98               
    SALES                          SALES_Q1_1998                  01-APR-98               
    SALES                          SALES_Q2_1998                  01-JUL-98               
    SALES                          SALES_Q3_1998                  01-OKT-98               
    SALES                          SALES_Q4_1998                  01-JAN-99               
    SALES                          SALES_Q1_1999                  01-APR-99               
    SALES                          SALES_Q2_1999                  01-JUL-99               
    SALES                          SALES_Q3_1999                  01-OKT-99               
    SALES                          SALES_Q4_1999                  01-JAN-00               
    SALES                          SALES_Q1_2000                  01-APR-00               
    SALES                          SALES_Q2_2000                  01-JUL-00               
    SALES                          SALES_Q3_2000                  01-OKT-00               
    SALES                          SALES_Q4_2000                  01-JAN-01               
    SALES                          SALES_Q1_2001                  01-APR-01               
    SALES                          SALES_Q2_2001                  01-JUL-01               
    SALES                          SALES_Q3_2001                  01-OKT-01               
    SALES                          SALES_Q4_2001                  01-JAN-02               
    SALES                          SALES_Q1_2002                  01-APR-02               
    SALES                          SALES_Q2_2002                  01-JUL-02               
    SALES                          SALES_Q3_2002                  01-OKT-02               
    SALES                          SALES_Q4_2002                  01-JAN-03               
    SALES                          SALES_Q1_2003                  01-APR-03               
    SALES                          SALES_Q2_2003                  01-JUL-03               
    SALES                          SALES_Q3_2003                  01-OKT-03               
    SALES                          SALES_Q4_2003                  01-JAN-04               
    28 rows selected.

  • Bapi for getting openitems with in the date range

    Hi experts,
                     Can anybody suggest me or is there any bapi for calculating balances for vendor with in the given date range.
    Thanks in advance,
    Regards,
    Murali Krishna T

    Hi,
    Please check
    BAPI_AP_ACC_GETBALANCEDITEMS Vendor Account Clearing Transactions in a given Period
    BAPI_AP_ACC_GETCURRENTBALANCE Vendor Account Closing Balance in Current Fiscal Year
    BAPI_AP_ACC_GETKEYDATEBALANCE Vendor Account Balance at Key Date
    BAPI_AP_ACC_GETPERIODBALANCES Posting Period Balances per Vendor Account in Current Fiscal Year
    Regards
    Hiren K.Chitalia

  • How to select Months with in a date range

    Hi
    I am working on a report which will list out Month wise totals in each row.
    How should i select the Months with in a date range and do the sum ( User may select the date range for  N number of  years also. Example :  01/10/2000 to 01/01/2010 )
    Thanks in advance
    Thanks&regards
    Mrudula

    Hi
       Use the following code:
    data: l_date(8) value '03042007',
            l_mname   type   t247-ktx,
            l_c(25).
      select single ktx from t247
      into l_mname
      where spras = sy-langu
      and mnr = l_date+2(2).
      concatenate l_mname l_date+6(2)
      into l_c." SEPARATED BY space.
      data: g_date(10) type c. " Processing date of Report
      g_date = sy-datum.
      concatenate g_date0(4)  g_date4(2)  g_date+6(2) into g_date.
      data: g_date1(10) type c.
      g_date1 = so_verab-high.
      concatenate g_date10(4)  g_date14(2)  g_date1+6(2) into g_date1.
    Regards,
    Sreeram

  • SD pricing extract for given date range

    Hi,
    Is any one knows any FM where you can able to extract pricing for given date range.
    FM Pricing works for one date. I don't want to loop at this
    FM for the given date rage. It takes very long time.
    Thanks for any suggestion.
    Kind Regards
    Nir

    Hi,
    Is any one knows any FM where you can able to extract pricing for given date range.
    FM Pricing works for one date. I don't want to loop at this
    FM for the given date rage. It takes very long time.
    Thanks for any suggestion.
    Kind Regards
    Nir

  • Name of users of a particular Tcode for a given date range

    Hi experts,
    I am making an alv where inputs will be
    1> T_code(as parameter)
    2> Date Range(as Select options)
    I have to display the following fields:::
    1> User name
    2> Frequency of use the Tcode for the given Date range.
    Please give me the tables where I can get the relation of those fields.
    N.B. I know the transaction AL08 and SM04.But it won't solve my purpose.
    Thanx in advance,
    Sourav

    >
    SOURAV PAUL wrote:
    > Hi experts,
    > I am making an alv where inputs will be
    > 1> T_code(as parameter)
    > 2> Date Range(as Select options)
    by creating the report As per your this requirement you need not to create any Bulk on your SAP.Just use STAD/STAT transaction they are availabe for this purpose.
    and more you may track by security log audit by SM20 get these details.
    i'm worried about tables which sre storing these details.

Maybe you are looking for