Quarter filter based on the selected month

Hi all

I need to filter the report with quarter based on a period in the report guests.

The user selects the name of month in prompt report, the report should show the information of quarter data falling from the chosen month. I used the subreport that provide a quarter of the month. This degrades performance report, so I need a solution to find a quarter of the month in the filter of the report itself. Can anyone provide an idea on that?

Well, now that I know the syntax, it should work for you:

Assumptions: "month" is in the format "LUN - AA' (DEC-11); quarter is in the format "YYYY Q M" (2012 Q 2);

Here are the pieces of the CASE statement...

LEFT (' @{pv_month}', 3)... allows at least 3 letters ("Jan", "Feb", etc.) of the selected month...

.. Right('@{pv_month}',2) .save the month selected two-digit year...

Cast (Right('@{pv_month}',2) AS INTEGER)... .converts as a whole two-digit year. It is how we use the year in a calculation to determine the correct exercise when the month is September, October, November or December. In this case, (11) two-digit year is less than the tax (2012) year.

Here are the facts:

Q-11 MAY 2011 3 MAR-11
JUN-11 AUGUST - 11 2011 Q 4
SEVEN.-11 TO 11 - NOV 2012 Q 1
DEC-11 TO 12 FEBRUARY 2012 Q 2
etc...

The above represents an exercise. As you can see, for the months from March to August, the exercise is the same as the selected year (all that is needed is to convert the year to two digits of a four-digit year).
When the month is seven, Oct or Nov, the year must be incremented by 1. Month Jan and Feb, exercise is identical to the year chosen, but Dec must be dealt with separately, because even if exercise is the same as Jan and Feb (2) year should be incremented.

Gather all this logic, you get the following:

BOX WHEN IN LEFT('@{pv_month}', 3) ('SEP', 'OCT', 'NOV') THEN '20'. Cast (Cast (Right('@{pv_month}',2) AS INTEGER) + 1 AS CHAR). "Q 1'
OTHER CASES WHEN leash (' @{pv_month}', 3) = 'DEC' THEN '20'. Cast (Cast (Right('@{pv_month}',2) AS INTEGER) + 1 AS CHAR). "Q 2'
On the OTHER BOX WHEN IN LEFT('@{pv_month}', 3) ("JAN", "FEB") THEN '20'. Right('@{pv_month}',2) | "Q 2'
OTHER CASE WHEN LEFT('@{pv_month}', 3) IN ('MAR', 'April', 'MAY') THEN '20'. Right('@{pv_month}',2) | "Q 3'
ANOTHER BOX WHEN IN LEFT('@{pv_month}', 3) ("JUN", "JUL", "Aug") THEN '20'. Right('@{pv_month}',2) | "Q 4'
END END END END END

This will give you a quarter based on the selected month. You can use in the filter (Advanced > convert this SQL filter) and apply it on your column 'quarter '.

WARNING: I did at home in order to check the syntax...

Tags: Business Intelligence

Similar Questions

  • Change the content of the page based change the selection box

    Hi all

    I want to create a page with 2 box selection and 1 table below

    • Selection box
      • Box1: 1-12 (months of the year)
      • Box2: 2010-2015 (year between 2010 and 2015)
    • Table
      • Get data from view GET_DATA_SALARY. This view having a 4 column: NAME, SALARY, FAC_MONTH, FAC_YEAR
      • This table will be based on the selected value of 2 boxes above change

    Please help me solve this problem.

    Thank you

    To put it simply, add a button that submits the page.

    Add a where clause clause to your report

    where FAC_MONTH = P_MONTH

    and FAC_YEAR = P_YEAR

    Gus

  • Studio: Chart based on the day/month/year

    In the Studio, there is a requirement for us display the chart based on the day/month/year.

    Because the Date attribute does not appear as a Dimension in the graphics configuration list, I divided attribute date day/month/year attributes and inspiring that I generated a sample chart

    But now I am facing a problem

    Suppose that there are records for only July and Ms then the graph shows in July and Aug, it does not show in August.

    I agree that there is no record for August in my field of data which is the reason why Augustus is not displayed in the table. But according to our requirement, we must view August as well as with zero count.

    I'm curious to know if there is a way to do it.

    The idea behind the record calendar type is a secondary, new record type are you introduction that completes your registration type "sale."  The records you provided would be your 'sales' record type, not your type of registration of "calendar".  To use your example, your recordings of 'sale' would look like what provided you:

    =============== RECORD ==================

    ID: 1

    Sales_Amount: 1000

    Month: October

    RecordType: sale

    Date: 2012-10 - 01 T 00: 00:00.000Z

    day: 01

    year: 2012

    =============== RECORD ==================

    ID: 5

    Sales_Amount: 1000

    Month: December

    RecordType: sale

    Date: 2012-12 - 01 T 00: 00:00.000Z

    day: 01

    year: 2012

    ==========================================

    And your registration type "calendar" would be charged later.  I usually provide a single record of short for all day for this record type:

    =============== RECORD ==================

    ID: 1

    Month: October

    RecordType: calendar

    Date: 2012-10 - 01 T 00: 00:00.000Z

    day: 01

    year: 2012

    =============== RECORD ==================

    ID: 2

    Month: October

    RecordType: calendar

    Date: 2012-10 - T 02, 00: 00:00.000Z

    day: 02

    year: 2012

    ==========================================

    (and so on, one for each day until today... yawn)...

    =============== RECORD ==================

    ID: 790

    Month: July

    RecordType: calendar

    Date: 2013-07 - 31 T 00: 00:00.000Z

    day: 31

    year: 2013

    ==========================================

    Thus, when you write a statement of EQL as:

    RETURN foo AS SELECT

    Sum (Sales_Amount) AS "TotSales.

    GROUP BY month

    You will get a bucket of months for every month, where the record type "calendar" will not fail to offer a month when sales do not offer it... aka. Fill the "holes".

    HTH,

    Dan

    http://branchbird.com

  • How to identify all the analyses using a filter based on the findings of another analysis

    How can I identify all analyses in the catalogue that contains a filter based on the results of the analysis another? Due to limitations on TimesTen, we remove all instances of the filter based on another feature of analysis completely.

    Christian Berg says:

    do research on the physical files in the file system

    A quick test, I guess you want to get the assuming you are on Linux, grep would be:

    oracle@demo:SampleAppWebcat () $ grep --files-with-matches --recursive '
    

    From there, you can identify the relevant analyses.

  • How can we make a visible element on the screen based on the selection of an existing menu in the same screen

    February 2015 release OPA

    How can we make a visible element on the screen based on the selection of an existing menu in the same screen.

    I have a list box and a text box in the same screen.

    I have a visibility rule on the text box saying that it is only available for one of the selection in the menu dropdown.

    problem is now unless I hit the button next to the screen and return to the original screen the text box does not appear.

    Is there a solution to more to come this problem.

    Please help me

    The feature you describe is called "dynamic visibility" (http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy%20Modeling%20User%20Guide/Interviews/Screens/Add_questions_to_screens.htm#Dynamic). It allows to control the visibility of another article on the same screen, without writing a separate rule of visibility and click on Submit.

    Using out-of-the-box functionality, you can have dynamic visibility based on Boolean values and value lists (but not regular drop-down lists).

    The example in the February 2015 User Guide based on a Boolean value on the same screen. See slide 27 of the bridge-features and benefits for an example of what it looks like to a list of value: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf

    If you are wondering what is a list of values, see here: http://documentation.custhelp.com/euf/assets/devdocs/february2015/PolicyAutomation/en/Default.htm#Guides/Policy Modeling User Guide/Value_lists/What_is_a_value_list.htm

    See you soon,.

    Jasmine

  • When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting?

    When you save a file to the [.jpg] format, I wonder to choose a quality from 1 to 100. What are the changes in the created file based on the selected quality setting? I would like to know what changes, so in the future, I can set my camera to one who will give me the highest quality in a first time, which allows me to make cultures and always preserve the quality.

    Thank you

    Dovid

    Thank you twenty-one... your answer of common sense to me.

    so, in short, can I assume down the chosen quality over compression algorithm?

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • Create the style of paragraph based on the selection

    Is there a way to create a paragraph style based on the selection in the same way, the "New paragraph Style" dialog box without having to go through ALL the elements of style individually?

    Thank you

    Hi Ken,

    Dave (Thanks Dave) code and put it into a string:

    REM note the quotes "escaped".

    myString = "if (app.documents.length > 0 & app.selection.length = 1 & app.selection [0] .hasOwnProperty (""baseline" ")) {"& vbCr '.

    myString = myString & "myDoc = app.documents var [0];" & vbCR
    myString = myString & "var myPstyle = myDoc.paragraphStyles.add ({name:" "myNewStyle" ""}); "& vbCr
    myString = myString & "myPstyle.properties = app.selection [0] .properties;" & vbCr

    myString = myString & "}" & vbCr

    REM run now the string using "DoScript" (requires that you have a

    Instance of rem InDesign "myInDesign"...

    myInDesign.DoScript myString, idScriptLanguage.idJavaScript

    That should do it.

    Thank you

    OLE

  • Checkbox validation based on the selection of the values LOV

    I'm trying to validate a checkbox custom on the opportunity page, based on the selection of the values LOV.

    For example only when the user selects 'rating = A', the box should be able to select and save.

    If the user selects other that 'A' in the field assessment, the box should not save.

    or

    Is it possible to do, the READ ONLY checkbox, enable only when the side 'A' is selected.

    Any thoughts / help on this.

    Thank you, Kumar

    Edited by: user10833334 may 4, 2010 06:43

    There is no function to make a read-only field based on the contents of another field, it is not an option. I will list my thoughts on how you might handle this below.

    -Option 1: I recommend that you use validation to manage it. I don't know exactly to your needs, but you could write a field validation that checks to see if the flag is checked and rating <>has and sends an error message to the user, if it is not. The user would not be able to save the file until it Unchecks the box or sets the side = A.
    Advantages: User gets a message explaining the problem with the data and is forced to fix it before you save it.
    Cons: Requires interaction from the user to save and if they do not pay attention, the data may be lost if they cancelled without saving the changes.

    -Option 2: Another option would be to use the workflow to validate the registration. In this scenario, you can create a workflow that determines whether the field is out of adjustment, and if it is not correctly set, the workflow would update the box accordingly. In this scenario, you would use the 'Actions if Condition is False' also to inform the user that the flag cannot be controlled unless the side =. Then, you must set the Action "Update the values" update the uncontrolled field.
    Pros: Manages the work without user interaction.
    Cons: The con in this case, is that there is no workflow 'Before NEW record saved' trigger, so it is likely that the user sets the value incorrectly when creating the folder and it would stay like that until they update the record again.

    Some people might argue that there is another option that uses the functionality of dynamic page layout to make the field read-only, but this isn't a good option. You would need to convert using the Type of the opportunity in a way that would make use of the possibilities of lourdes for your users and I mention it only to you recommend to avoid his review completely.

    Good luck and let me know if you have any questions.
    Thom

  • Fill a combobox based on the selection of another

    Hi all

    I have a combobox that is filled dynamically. I want to fill an another combox based on the selected item in the combobox first. I use PHP to manage the connection to the database. The drop-down list box cbDivision fills very well.

    Can someone point me in the right direction?

    Here is my code:
    [Bindable]
    public var selectedItem:Object;

    [Bindable]
    private var datalist: ArrayCollection collection;
    private void resultHandler(event:ResultEvent):void {}
    DataList = event.result.data.row;
    }
    [Bindable]
    private var datalist2:ArrayCollection;
    private void resultHandler2(event:ResultEvent):void {}
    Datalist2 = event.result.data.row;
    }

    "" < mx:HTTPService url = " http://127.0.0.1/getDivisions.php"
    ID = "xmlGetDivisions".
    showBusyCursor = "true".
    result = "resultHandler (Event)" "
    method = 'GET' / >

    "" < mx:HTTPService url = " http://127.0.0.1/getFacilities.php"
    ID = "xmlGetFacilities".
    showBusyCursor = "true".
    result = "resultHandler2 (Event)" "
    method = "POST" >
    < mx:request xmlns = "" >
    < DivisionValue >
    {selectedItem.Division}
    < / DivisionValue >
    < / mx:request >
    < / mx:HTTPService >

    "< mx:ComboBox ="116"x ="60"id ="cbDivision"editable ="false"active = 'true' prompt = 'Please select' close ="selectedItem = ComboBox (event.target) .selectedItem, xmlGetFacilities.send ();"initialize =" getDivisions () "dataProvider ="{datalist}"= 'Division' labelField >
    < / mx:ComboBox >

    < mx:ComboBox = "413" x = "60" id = "cbFacility" editable = "false" enabled = "true" initialize = "xmlGetFacilities.send (); ' prompt = "Please sΘlectionner" dataProvider = "{datalist2}" labelField = "Name" > < / mx:ComboBox >


    Thank you in advance!

    No need to answer. I have it working now. It turns out that it was a problem with my PHP code.

  • Vary the accounts based on the selection of feature in data form

    Hi all

    I use Hyperion Planning 11.1.1.0.

    I have a problem by varying the members accounts on the dataform based on the selection of members of the entity of the dimension of the page.

    Currently, we use the Begbalance as a member (column) in the dataform and kept hidden. And we set the value of Begbalance-> actual values to zero for accounts that correspond to a specific entity...

    Then, on the form, I put 'delete missing data... That way I can show the accounts that should appear for an entity.

    But the list of members of the entity has more than 200, and thus also the accounts.

    Therefore, it is very tedious to do this adjustment for them...

    Someone please you suggest a better way to achieve the same * (i.e. different accounts on the dataform based on a selection of entity?) *.

    Kind regards.

    Alicia

    Hello

    You use the technique that a lot of consultants allows you to control what is displayed on a form.
    How do you set the values, if you have an excel template that you just update and then send the data to essbase it can facilitate the management of it a little.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Filter records based on the selection in adf 11.6

    Hello

    I have page, on the top section af:table displayed and tabs (af:showdetaiItem), in the section displayed below each tab having slumped workflow as a region (each workflow with the table)

    After selecting any line on table top, then should filter the corresponding records on table region taskflow I am able to get the selected value to the region through input parameters task flow.

    I have question concern, how to run the workflow after the selection of each row in the table? (see communication of the region)

    Please suggest good approach, as appropriate

    Thank you

    you are correct. by passage of parameter is an approach. Another approach is contextual event...

  • analysis of filter based on the current date to the exercise YYYYMM

    In a filter for an analysis, I want to put in place so that the settings are based on the current date and format field I want to filter is based on a July - June fiscal fiscal month.  (IE. Today, 22/04/2014 should feed the month of exercise with 201410 field)

    Is there a simple formula that can be set, based on the date of the day that will work like this?

    Use this

    Replace (Cast (Year (CURRENT_DATE) as char) |) (case when month (current_date))<10 then="" '0'||cast(month(current_date)="" as="" char)="" else="" cast(month(current_date)="" as="" char)="" end),'="">

    Instead of these functions concat and casting If you use exercise and exercise name is good to go

    Thank you

    http://cool-bi.com

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    

Maybe you are looking for