prompt end of month

I created an end of month fast with a variable presentation 'months '. This variable should work with a filter at the end of the month, so that when you select a date, for example 30/09/2004, the report should display two info 09/30/2004 and also 30/09/2003 - here is the prompt that I created but I think there's a step I'm missing, please help!

* Time. "' Fiscal year end date" in timestamp(@{month}{2011-01-31 00:00:00},@{month}{2011-01-31}-12) *.

Hello

The statement above should give you results in responses if you have data 2010-01-01 to 2011-01-01.

In addition, there is a lack of closing brackets in the statement where the error of syntax on dashboard.

Time. "" Tax period end Date "= timestampadd (sql_tsi_month,-12, date ' @{pmonth} {2011-01-01 00:00:00}" ") or the time. ' ' Fiscal period-end date "= date ' @{pmonth} {2011-01-01 00:00:00}'

Thank you

Tags: Business Intelligence

Similar Questions

  • get all the date of end of months between two dates

    Hi all, I'll try to find together the date of end of months between two dates.
    I have the following data in a table

    WITH AS's Data1
    (
    SELECT To_Date('4/30/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual UNION ALL
    SELECT To_Date('5/01/2009','mm/dd/yyyy') dt, "TEST2" lname FROM dual UNION all
    SELECT To_Date('5/02/2009','mm/dd/yyyy') dt, "TEST3" lname FROM dual UNION all
    SELECT To_Date('5/03/2009','mm/dd/yyyy') dt, "TEST4" lname FROM dual UNION all
    SELECT To_Date('5/04/2009','mm/dd/yyyy') dt, "TEST5" lname FROM dual UNION all
    SELECT To_Date('5/05/2009','mm/dd/yyyy') dt, "TEST6" lname FROM dual UNION ALL
    SELECT To_Date('5/31/2009','mm/dd/yyyy') dt, 'TEST7' lname FROM dual UNION all
    SELECT To_Date('6/01/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual

    )

    I would like to write an application that gives you all the end date for months between two dates
    for example, if you give the date 9/1/4 and 5/6/9, the output should be
    DT          LNAME
    -------------------
    4/30/2009   TEST
    IF I give you the dates 01/04/09 AND 01/06/09, THEN output should be
    DT          LNAME
    -------------------
    4/30/2009   TEST
    5/31/2009   TEST7
    as you can see, I want all the end dates of months between two dates by giving the output.

    If I give you 06/05/09 and 05/06/09, and then does so no output because there is no end of month between these two dates.
    Similarly, if I give you 30/04/09 and 30/04/09 then output should be 30/04/09 because it is an end of month date

    anyone can help to write a query. Thank you very much

    Jin
    Not sure if you need subquery, analytical functions for this.
    According to me, which should solve your purpose.

    WITH data1 AS
    (
    SELECT To_Date('4/30/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual UNION ALL
    SELECT To_Date('5/01/2009','mm/dd/yyyy') dt, 'TEST2' lname FROM dual UNION all
    SELECT To_Date('5/02/2009','mm/dd/yyyy') dt, 'TEST3' lname FROM dual UNION all
    SELECT To_Date('5/03/2009','mm/dd/yyyy') dt, 'TEST4' lname FROM dual UNION all
    SELECT To_Date('5/04/2009','mm/dd/yyyy') dt, 'TEST5' lname FROM dual UNION all
    SELECT To_Date('5/05/2009','mm/dd/yyyy') dt, 'TEST6' lname FROM dual UNION ALL
    SELECT To_Date('5/31/2009','mm/dd/yyyy') dt, 'TEST7' lname FROM dual UNION all
    SELECT To_Date('6/01/2009','mm/dd/yyyy') dt, 'TEST' lname FROM dual 
    
    )
    select distinct last_day(dt) dt,lname
      from data1
     where dt between &start_date and &end_date
       and last_day(dt) <= &end_date
    
    also, i have another request. how would i do this without using the data i provided. lets say,
     i tell you, give me alll the months end between two dates using dual in the from clause of a query.
    how would you do this in a query or pl/sql? thanks again
    

    Can be like that

    with data1 as(
    select &start_date+level-1 dt from dual
    connect by level <= &end_date-&start_date+1)
    select distinct last_day(dt)
      from data1
     where dt between &start_date and &end_date
       and last_day(dt) <= &end_date
     order by last_day(dt)
    

    See you soon!
    Bobin

    Published by: Buga added query for updated the need

  • Navigation for some entries on the issues of monthly closing and end of month closings

    Hi Experts


    A few entries on the month end close and
    What types of emissions be meet when closing (refer to any).

    Navigation for end of month closures

    In the case of the inventory: the monthly accounting period closed, you must make sure that there no transactions shipping processed, unknown of the important operations, waiting for TEC costing transactionsm etc... The number of these kinds of operations should be zero. For example, if there is no delivery of unprocessed transactions which could be stuck/wrong during the execution of Program Interface travel stop, then you cannot close the period for that month until that you delete these transactions. Check metalink, 262979.1 to the same note.

    Navigation is the inventory > Cycle farm accounting > accounting periods in the inventory. Click on the button waiting to see pending transactions. If there is NO resolution required to be done, you can close the period INV for this month.

    Kind regards
    Agnes

  • Date of end of month

    Hi all
    I have a table "xyz" that captures start_date and end_date in one line.
    i.e. start_date = * 15 October 2007 *, end_date = * 25 - dec - 2008 *.

    I want to write a query that diplay end of month of each month between start_date and end_date as dates me. .

    October 31, 2007
    November 30, 2007
    31-dec-2007
    January 31, 2008
    February 29, 2008
    31-mar-2008
    ..
    ..
    ..
    ..
    ..
    ..
    ..
    ..
    31-dec-2008

    Thanks in advance

    Try this

    select
         last_day(add_months(to_date('15-oct-2007','dd-mon-yyyy'),level-1))
    from
         dual
    connect by level <= ((to_date('01-dec-2008','dd-mon-yyyy') - to_date('01-oct-2007','dd-mon-yyyy'))/30) +1
    /
     
    
  • date of end of month in SPR

    We must show the date of end of month for a given date in a table.
    The date is March 25, 2008 ", then output should give me 31 March 2008".
    I want to create a new column derived like this in the RPD.
    I think that variables can not help me out here, because we need to have the date of end of month for each value that the date column will hold.
    Please let me know how can achieve us.

    I haven't played a lot with the expression of OBIEE constructor functions but the technique below should work, you can use standard date functions:

    (1) take the month and year of your date column (for example for today, it will be 10/2008) convert it to a string.
    (2) date data type concatenate 01 to the string of the previous step and convert the entire expression. Now you have the first date of the month of your column in a date format.
    ((3) on the date to 2) add 1 month and 1 day to remove and you get the last day of the month for your selected date.

    Should work in OBIEE too.

  • Generating dates from end of month

    Hello

    I have a table with a column as a partition_key, I want to insert all the end dates of month of Jan2009 to Dec2013 in the format below.

    PARTITION_KEY

    20090131

    20090228

    20090331

    .

    20120229.

    .

    20131231

    Please tell us a plsql sql statement (GOLD) for this block.

    SELECT last_day (add_months (DATE ' 2009-01-01',(level-1)))

    OF the double

    connect by level<= months_between(date="" '2013-12-01',date="">

    /

    is good to create lines, how you convert a date in number is easy to find...

    HTH

  • Report of the Group of dates for end of month

    Hi guys

    I need to get 6 months of data grouped by months end dates...

    I need to automate this query so that it looks always to date for the last 6 months

    How do I get there?

    The reason for writing the automated query, it's that this sql script is assigned to the business objects reporting.

    I use the pl/sql

    Here's the DOF

    create the table #Something
    (
    base_date datetime, int connections
    )

    Insert #Something
    Select ' 01 jul 2013', 21 Union all the
    Select ' 02 jul 2013', all 22 union
    Select ' 03 jul 2013', 210 Union all the

    ....

    ...

    Select July 31, 2013,"Union 498
    ' Select ' 01 August 2013 ', 44 Union all the
    ' Select ' 05 August 2013 ', 66 Union all the
    ...

    ....

    Select ' 03 dec 2013", 456 union all
    .

    .

    'Select December 31, 2013,"788

    ..............................................................................

    Desired output

    Connection of base Date

    31 jul 500 (not exact, just randomly)

    August 31 600

    30 sep 356

    31 Oct 676

    30 Nov 544

    31 Dec 456

    ..............................................................................

    Hope this helps

    Hello

    In Oracle, you can do this:

    SELECT LAST_DAY (TRUNC (base_date)) AS last_day_of_month

    SUM (connections) AS total_connections

    OF something

    WHERE base_date > = TRUNC (ADD_MONTHS (SYSDATE,-6), 'MONTH')

    AND base_date<  trunc="" (           ="" sysdate,     ="">

    GROUP OF LAST_DAY (TRUNC (base_date))

    ORDER BY last_day_of_month

    ;

    If you would care to post some CREATE TABLE and INSERT statements so you want the results of work from these data of the sample, then I could test this.

    Using Oracle?  #Something (with a sign # at the beginning) is not valid a table name, and datetime is not a valid data type in Oracle.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    The query above works if base_date is a DATE or TIMESTAMP.

    Since it is now January 2014, what are "the last 6 months?  The above query assumes that they are the last 6 months, that is, July to December 2013.

    If you mean the current (incomplete) and 5 months before it (i.e. August 2013 to January 2014), then add 1 month to the two deadlines in the WHERE clause:

    WHERE base_date > = TRUNC (ADD_MONTHS (SYSDATE,-5), 'MONTH')

    AND base_date<  trunc="" (add_months="" (sysdate, ="" 1) ="">

  • Get each end calendar month using SQL date

    Hi guys,.

    How to get the each month end date using SQL Script?

    Ex: If the effective date is January 15, 2011, then the date will be January 31, 2011.

    can someone help me get this result?


    TIA,

    Hello
    I think that below query is useful for you.

    Select last_day (Your_Date) of double;

    Kind regards
    Fame

  • Virgins of the days in the calendar at the end of a month

    Calendar in OSX on a regular Mac, every end of month continues seamlessly in the following month if the last week of the month end and the first week of the month start appear like a week continues

    In calendar, in iOS, like on an iPad, each month ends with empty days such as the last week of the month end ends on a single line with the first week of the month begins on the next line.

    As a result, that an event that fills the end appears to 'break' at the end of the month.  It is visually distracting and I can't find an option to set the schedule of the iOS, so it looks the same as OSX calendar

    Is this one?

    There is no option to change the which unfortunately. IOS users just need to deal with it or find a third-party calendar that is more to their liking. (There is a reason that I do not use a lot of calendar application)

  • End of the month payment batch

    Hi all

    In the AP, we are looking for are called concurrent request: end of month, payment batch, which is supposed to find eligible payments to be created.

    We use 11.5.10.2 and that you don't find this process.

    We checked ML and can not find any notes about this process, but when we search the Web, we get a lot of shots, saying that this process is availabe.

    http://it.Toolbox.com/wiki/index.php/period-End_Processing_in_Oracle_Payables _ (Release_11i)

    "Possibly run a batch of payment at end of month.
    When performing a batch of payment at end of month, you can get a payment of due invoices as much as possible. »


    The process has been renamed to 11.5.10.2?

    Any help would be greatly appreciated.

    Hello

    There is no specific competitor requests to execute payment orders or there is no change of name of any process in this version.

    You actually have to follow a series of steps to create your payment batch. You initiate every step from the window shares payment Batch, or for games of batch of payment, since the window submit batch set. You can also schedule the payment batch sets to submit automatically at regular intervals.

    Important measures which are necessary for creating lots of payment:

    1. open the batch payment by entering criteria for the bills you want to pay. Accounts payable selects bills and built payments; he determines what bills should be submitted on each payment document and list this information for you on the preliminary register of payments.

    At any time prior to formatting, optionally change the batch of payment. You can prevent the payment to a supplier, prevent the payment of a particular Bill, change the amount of the invoice, or add an accounts payable invoice has not been selected.
    2 payments of format accountable suppliers produce an output file.
    3 print the checks in the output file, create electronic payments or provide the output to your bank file for electronic payments.
    4 confirm the batch payment by recording the numbers of documents associated with each payment. During this stage of accounts payable updates the status of a paid invoice and associate a payment with the invoice and the payment of the invoice. Don't send checks to suppliers before confirming the payment batch.

    Accounts payable creates a record of the Final payments that you can review to verify the batch of completed payment.

    After the confirmation of the payment batch, you can review the payment of batch control report to verify the posting of invoices you paid. You can submit this report after each batch of payment to compare it with the actual payment information. You can also use this report to provide your signed check with full information on each payment document, eliminating the need to review the paper invoices. The
    report displays payment provider, invoice and expense information.

    You can check the status of a batch of payment at any time for the batch processing of payment by checking the State field of the payment batch window. You can also check the status of the payment process in the query window.

    Refer:
    Online liabrary document:
    http://download.Oracle.com/docs/CD/A60725_05/HTML/comnls/us/index.htm

    Hope that clarifies
    Shanks

  • Based on another command prompt command prompt.

    I have a few questions about the preparation of the report in OBIEE
    1. is it possible to change the values of the line depending on the value chosen in another message of solicitation? If so, how?
    2 I need fill two static a values menu drop down prompt such as "Hi" and "Hello". These values are not available in all tables. How can I do this?

    Further explanation to my question

    I need a prompt indicating monthly or annual reports

    According to the choice of users, the next prompt should a list a list of the years or months.

    Published by: rgksugan on Sep 20, 2010 20:34

    Hi, Pascale.

    You can do this by using the passing variables to make a prompt to another

    1 fast:

    (1) choose SQL results and enter the SQL like this,

    SELECT Case when 1 = 0 then table1.col1 end else 'monthly' IN THE 'domain '.
    Union All
    SELECT Case when 1 = 0 then table1.col1 "Year" across the end "domain."

    (2) remove all the choices of demark all the choices box,.

    (3) failure to, choose SQl results and re-enter the SQL above.

    (4) set the presentation variable (P_Var)

    2 fast:

    (1) choose SQL results and enter the SQL like this by referring to the variable created in prompt 1.

    SELECT "Dim Date. "{" "Months" OF 'Area' where ' Monthly'='@{P_Var} '.
    Union
    SELECT "Dim Date. "{" "Year" OF the 'matter' where ' Yearly'='@{P_Var} '.

    (2) keep all the choices,

    (3) failing to put all the choices

    Once you select the prompt1 value and click go to line 2 will be filled by month or year according to your selection.

    Thank you
    Vino

  • Count of the number of days in a calendar month according to the year

    Hi all

    On my table, column 1 is the list of months over several years.

    Column 2 is the activity number od each month.

    Column 3 I want an average rate of activity per day during the month, which should be: (C2 / number of days according to C1) %

    Problem: I can't find a fomula give me the number of days, particularly in February when the year is leap.

    Any help is appreciated.

    Thank you all,

    Lopez

    PS: by the way, with this new version of Apple Comunity I seem to have lost my previous questions about the numbers.

    Hey Lopez,

    EOMONTH(A1,0) (end of month) will GET help you.

    Column B is Date & time format to display only the month and year (actually the 1st of the month, but the day is not displayed).

    Formula in C2 (fill down)

    = EOMONTH(B2,0)

    The end of the month 0 months later.

    Formula in D2 (fill down)

    = DAY (C2)

    February 2015 (non-leap years) shows 28

    February 2016 (leap year) shows 29

    Kind regards

    Ian.

  • HP monthly Diagnostic Tool - Runs slow and eventually hold endless.

    The Daiagnostic HP of end of month on a HE - 210Y Pavilion 64 bit Win7 works extremely slow and finally stops at the end of 63%.  No other programs are running.  Had to cancel because of the stall.  No test failure wasn't indication for the part that ended.  This is the second consecutive month that has happened.  Prior months - the test ran successfully and quickly.  What is the solution?

    30/04/14 - the monthly diagnostic completed without error, test and it was completed in maybe an hour of time.  I did not observe the process - the computer was ON and I completely forgot the test of end of month.  When I came back, he had successfully completed in maybe an hour or two.  This is in contrast to the experience last month when he never completed and finally stalled after several hours.  (The computer worked very well except for a few issues download in Google Chrome using Realplayer).

    So, what has been fixed in the meantime?  Unknown, expect that Kaspersky Anti-virus I have lead me to leave 'fix' a 'threat '.  I admitted to its process.  The Feast was due to "Quicktime", and it has been deleted.

    Also, I did remove 'Intermediate' which was marked with another download and replace the search Google by Bing - udesired by me.  I must be more careful with downloads.

    For now - the problem of diagnosis of end of month slow / stalled has been fixed somewhat.

  • Need to query to find missing months between two dates.

    A bank customer a monthly overview of databases (in the tens of millions of accounts)

    The data are sent with a line per account each month.  It is stored in a table called "ACCOUNTS_TAB".

    Fields on registration, which

    Column

    Description

    Example of format.

    * YRMTH-1

    Year and month of the snapshot

    6-character numeric, 4-digit year added to months of 2 digits, example 201301, 201311

    * AccountID

    Unique identifier for an account.

    Integer, example 100098322

    Opening balance - 1

    Initial account balance at the closing of the previous month

    $30000

    Closing balance - 1

    The account balance at the end of the month of closing

    $34200

    Class-1 relative to investments

    .....

    ...

    .....

    ......

    .....

    Many more columns, two favorites (*) columns are alone, that you will need for the query. There are no columns to tell when an account is closed, or has just opened, and not separate "master account" - you use this single table for your query that results.

    The table was in place from 200301, so many accounts have dozens of lines, if they have been open for many years and other only 1 or 2 ranks, if new.

    Write a query to give just a list of accountDs that meet the following criteria.

    1. 1) has a record for specific 201503
    2. 2) was also a record for the month specific 201602
    3. 3) missing one or several months between these two records.

    A good account which was opened from 201503 to 201602 inclusive would of course have lines for

    201503

    201504

    201505

    201506

    201507

    201508

    201509

    201510

    201511

    201512

    201601

    201602

    It's good to hardcode the month of departure (201503), end of month (201602) and the actual number of months between them (10 exclusive or 12 inclusive) as part of your query.

    Once again the account must meet all 3 criteria to be an account issue.  If only, they have a partial set of these documents but do not have the month of departure, or is not the end of the month, it is not a problem, only when they have so specified and end early and not a full between game.


    Help, please!

    Maybe this...

    -----

    -The Dataset for the test begins

    WITH dataset (ACCOUNT_NO, DATES)

    AS (SELECT 100, DOUBLE 201503

    UNION ALL

    SELECT 100, DOUBLE 201504

    UNION ALL

    SELECT 100, DOUBLE 201505

    UNION ALL

    SELECT 100, DOUBLE 201506

    UNION ALL

    SELECT 100, DOUBLE 201507

    UNION ALL

    SELECT 100, DOUBLE 201508

    UNION ALL

    SELECT 100, 201509 OF THE DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201510

    UNION ALL

    SELECT 100, 201511 OF THE DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201512

    UNION ALL

    SELECT 100, 201601 DOUBLE

    UNION ALL

    SELECT 100, DOUBLE 201602

    UNION ALL

    SELECT 200, DOUBLE 201503

    UNION ALL

    SELECT 200, DOUBLE 201504

    UNION ALL

    SELECT 200, DOUBLE 201505

    UNION ALL

    SELECT 200, DOUBLE 201506

    UNION ALL

    SELECT 200, DOUBLE 201508

    UNION ALL

    SELECT 200, DOUBLE 201509

    UNION ALL

    SELECT 200, DOUBLE 201510

    UNION ALL

    SELECT 200, DOUBLE 201511

    UNION ALL

    SELECT 200, DOUBLE 201512

    UNION ALL

    SELECT 200, 201601 DOUBLE

    UNION ALL

    SELECT 200, DOUBLE 201602

    UNION ALL

    SELECT 300, DOUBLE 201503

    UNION ALL

    SELECT 300, DOUBLE 201504

    UNION ALL

    SELECT 300, DOUBLE 201505

    UNION ALL

    SELECT 300, DOUBLE 201506

    UNION ALL

    SELECT 300, DOUBLE 201507

    UNION ALL

    SELECT 300, DOUBLE 201508

    UNION ALL

    SELECT 300, DOUBLE 201509

    UNION ALL

    SELECT 300, DOUBLE 201510

    UNION ALL

    SELECT 300, DOUBLE 201511

    UNION ALL

    SELECT 300, 201601 DOUBLE

    UNION ALL

    SELECT 300, DOUBLE 201602

    UNION ALL

    SELECT 400, DOUBLE 201504

    UNION ALL

    SELECT 400, DOUBLE 201505

    UNION ALL

    SELECT 400, DOUBLE 201506

    UNION ALL

    SELECT 400, DOUBLE 201507

    UNION ALL

    SELECT 400, 201508 DOUBLE),

    -The Dataset to test ends

    -Hand with clause begins

    ResultSet

    AS (SELECT account_no,

    CASE

    WHEN COUNT)

    CASE WHEN dates IN (201503, 201602) THEN 1 END)

    COURSES (PARTITION BY account_no) = 2

    AND (COUNT (DISTINCT SUBSTR (dates, 4)))

    COURSES (PARTITION BY account_no) = 12

    OR COUNT (DISTINCT SUBSTR (dates, 4))

    COURSES (PARTITION BY account_no)<>

    AND COUNT (DISTINCT SUBSTR (dates, 1, 4))

    (PARTITION BY account_no) > 1

    THEN

    « Y »

    ON THE OTHER

    « N »

    END

    FLG

    THE dataset---> replace with your table name

    GROUP BY account_no, dates)

    SELECT DISTINCT Account_no

    FROM THE result set

    WHERE flg = 'Y ';

    -Hand with the ends of the clause

    ACCOUNT_NO

    -----------------------

    100

    300

    200

    See you soon,.

    Manik.

  • Validate if something is selected in the command prompt

    Hello-

    How can I check if something is selected in the command prompt? In the report, I have to do < function1 > when there is only option selected in the prompt else < function2 >. I tried with variable presentation. So, my syntax in the column:

    -CASE when @{Var}['@']{'abc'} = 'abc', then 'Nothing is selected in the prompt' else 'this value in the prompt' end

    It works fine when only a single value is selected in the command prompt. When there are multiple values selected, it gives an error.

    Is there another trick to achieve this?

    Thank you!

    Instead of checking for is null or "variable presentation, it would be easy.

    just in case where to check it cool - bi.com you could get an idea of how validate the variable presentation.

    If brand aid

Maybe you are looking for

  • My acer aspire V nitro will not download firefox 39, it hangs at 46.6 m and says that the file can't be varified

    I uninstalled the old version of Fire Fox and I tried the download 39.0 out of sight of firefox. Now download 50% cycles then goes back to 0% and start over again. I stopped this cycle to 4 times through. The computer is running windows 8.1 and inter

  • A user of YouTube found my IP address

    How what happened. The address with which it came was actually the IP of Qwest my provider rather than the real IP of my computer network. He found that this IP based on a post I did on YouTube. My Question is, how did do it? What advantage a troll g

  • Legend of the plot does not update?

    My legend of conspiracy will not show the new names I'm wiring. It displays the default plot 0, track 1, and so on, rather than the column headers it is supposed to read the data file. Any ideas? See the attached VI and the associated text file that

  • iPad + battery + charge

    Hello I am trying to charge the iPad battery while connected to my computer Someone knows how to do this? Thank you Federico

  • Definition of the JCA properties by spring component

    Hello gurus SOA,.While exploring in the spring (SOA suite 11.1.1.7), I am able to make calls to maps directly from spring by following a few items.But I could not find any hardware/blog useful, that would help me to set the properties of jca directly