Sub-Region in a query

Hi All,
I have to write a query wherein I have to use Divisions in the rows.
Now in my system I have these Divisions defined. But furthermore the requirement says that the data should be displayed at sub-region level.
these sub regions of a region are based on the customer codes.
For example, if customer code is HBV2XYZ then sub region is North and if it is HBV8XYZ then the sub region is South etc.
Now, in my Sales cube I have data at divsion level and Custmore sode is also there in my cube.
How do i write this query which should give me data at the above defined subregion level which is nothnig but customer code?
Thanks and regards,
Sharmishtha

Sharmistha,
Did not see that in your mail earlier -
Considering that the Customer sub regions are coded into the Customer codes... and this being for customer data - it sould be better is you had a transfer routine as Edwin Harpino suggested and store the same as a nav attribute on Customer master - that way if the customer master changes - you need not worry if the customer shiufts across regions etc - that is of course depending on your requirement...
You could use a virtual Characteristic otherwise. And is this in Excel or the Web - if it is in WAD - you could use the table modifier to achieve the same....
Arun
Assign points if useful

Similar Messages

  • Report region with sql query

    Hi
    I have a report region with sql query. There are two regions in page. On top of page, user enters data and after that second region show enterd data which is report region
    based on sql query.
    Now,when this page is opned, as user had not entered any thing, report region shows "no data found" message. Is it possible to remove that message or
    may i conditionally disaply report region i.e if data is inserted then only report region is dispalyed.
    Thanks

    >
    i was trying with select count(1) in expression.
    >
    Just for your info, COUNT() (without any grouping obviously) with always return 1 row. If there are no result for the query then 1 row will be returned with a value of zero - so there are results returned.
    Secondly, why were you using COUNT(1) rather than COUNT(*)? That is is faster is a very common misconception and not true. If you need to know how many rows have been returned, use COUNT(*). If you need to take nulls into account (ie. not include them in your count) then use COUNT(column_name) and name the column that you are interested in specifically.
    Cheers
    Ben

  • How use parameters on a html region for report query region

    Hi all.
    I have created a number of report regions which initially query some data.
    The requeriment now is to have a date range (initial and final) and use this range as a parameter for report queries.
    i created a new region containing these two date values. Now i need to:
    - Give this date fields and initial value: say first and last day of current month.
    - Perform a validation to ensure initial date is less or equal to final date.
    - And most importantly, i need to reexecute the queries based on this date range.
    How do i do it...?
    Thanks in advance ...!

    Start here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21679/toc.htm#
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB25030
    I can guarantee that it will be easy

  • Standard jQuery tabs and an interactive report as a "tab" sub-region

    Hi all,
    I have a standard, simple implementation of jQuery tabs following the exact instructions by Patrick via this thread:
    Re: New themes in APEX 4 not working with JQuery tabs
    As one of the "tabs" (sub-regions), I want an interactive report. I use "no template".
    Problem is that when the IR is in a tab, the pop-up column menus and such are no longer aligned, e.g. I click one of the column headers of the IR and the pop-up menu shows up much lower on the screen than it should -- sometimes off the screen if I have another region above. Can anyone assist? Maybe it's a DIV tag conflict between the jQuery template and the built-in IR?
    Here is my example app:
    http://apex.oracle.com/pls/apex/f?p=19782:1
    Also another issue I've never seen quite resolved -- on "tab2" in the above app, you see what happens when you actually use a template in the sub-region. It breaks off the encompassing parent tab.
    Sorry, if I was more savvy in the display options, I could probably solve all this -- so I'm hoping somebody else is or has already solved it and can share. Thanks so much!
    David

    If anyone is interested, I finally found the answer to this issue. It's all here:
    http://www.apex-blog.com/oracle-apex/using-jquery-to-fix-broken-apex-interactive-report-drop-down-menus-150.html
    Very special thanks to Stephen Blair (who owns the blog above) for the simple solution! Thanks Stephen!
    David

  • Align sub-region Right

    How can I align a sub-region to the right? On an order form, I want to show the line items followed by various other items in the bottom right corner.
    Also, is it possible to align the page items to the right instead of the left within a region?
    Thanks,
    Gregory
    Nudged by Gregory on May 24, 2011 3:54 PM

    for horizontal + vertical alignment I use this little gem of a layout manager:
    [http://www.java2s.com/Code/Java/Swing-JFC/AverticallayoutmanagersimilartojavaawtFlowLayout.htm|http://www.java2s.com/Code/Java/Swing-JFC/AverticallayoutmanagersimilartojavaawtFlowLayout.htm]
    Simple and effective. It can even stretch components on demand.

  • How to Control Width / Align rightmost edge of sub regions on a page ?

    Hi folks
    Am Apex newbie using Oracle XE and 4.0.1 Apex to develop app on laptop before deploying to production.
    I have a page with region display selector and multiple sub-regions.
    Am using Theme as per the Issue Tracker packaged application.
    Problem is that my subregions on page align on left hand side but the subregions widths are different ... therefore page looks a bit scrappy / unprofessional as regions look a bit like
    XXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXX
    Is there any way to control / make the subregions widths the same so that screen looks better.
    Have spent ages moving individual fields on page to try and force sizes to match but with no luck .. so any help would be gratefully received as always.
    Thanks

    Hi-
    I was trying to align sub-regions side-by-side, I followed what Patrick suggested to put the following in the region's sub-region template.
    <div> #SUB_REGION# </div>then to be enable to put the subs side-by-side I had to put the following in the regions attributes.
    width: 300px; float: left
    that would align the subs side-by-side, I tried to change the template so I can use the attributes
    <div#REGION_ATTRIBUTES#> #SUB_REGION# </div>but when I ran the page I can see the following in the Firebug.
    <div #region_attributes#="">so no effect, am I missing something or what.
    Regards,
    Omar

  • Can i join a list in sub-site using Join query?

    Hi all,
    I'm newbie and i have tried to join a list in parent site with a list in sub-site using Join query but i always get the error. How can i do this action? Thanks!

    You could try using SPSiteDataQuery or a DataTable.
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery%28v=office.14%29.aspx
    http://sharepoint.stackexchange.com/questions/75713/is-it-possible-to-populate-result-by-joining-two-lists-throughout-the-site-colle
    --Cheers

  • 2 differently aligned sub regions on a region in the same line

    Hi!
    I would like to place 1 region aligned on left, 1 on the right of a parent region. I added style="float:left/right" to sub regions.
    <div>
    #SUB_REGION#
    </div>
    is added to parent region's sub regions template.
    If I leave this way, then They are eligned correctly, but not in the same "line", but under each other. If I add style="float:left/right" to sub regions template, than sub regions will aligned side by side, but I can't force to place in the same line one left, one right.
    What is strange, than if float added in region's sub regions template, (side by side), and change float of on of the sub regions in firebug, that appears good.
    How to do it correctly?

    selection-screen : begin of block B1 with frame title TEXT-001.
    selection-screen : begin of line.
    selection-screen : comment 1(23) TEXT-001.
    parameter        : P_01 radiobutton group R1.
    selection-screen : comment 30(8) TEXT-001.
    parameter        : P_02 radiobutton group R1.
    selection-screen : comment 42(10) TEXT-001.
    parameter        : P_C01 type rlgrap-filename obligatory.
    selection-screen : end of line.
    selection-screen : end of block B1.
    Change the text elements accordingly
    Regards
    - Gopi

  • Sub Regions and Conditionals

    Greetings. Having an issue with conditionals and sub regions. Using apex 4.2
    I have a region (Deployments) that has several items and a few buttons (Button A, Button B, etc). I need to conditionally show Button A. I have a sub region(People) that is a report of people deployed. I need a button to show in the Deployments region, that if there are no people in the report (i.e. People_ID is null) then the button won't show. I tried using a conditional, but am having no luck. Please help. Thanks in advance.

    NewApexCoder wrote:
    Greetings. Having an issue with conditionals and sub regions. Using apex 4.2
    I have a region (Deployments) that has several items and a few buttons (Button A, Button B, etc). I need to conditionally show Button A. I have a sub region(People) that is a report of people deployed. I need a button to show in the Deployments region, that if there are no people in the report (i.e. People_ID is null) then the button won't show. I tried using a conditional, but am having no luck. Please help. Thanks in advance.Our crystal balls are being repaired. What did you try?
    When asking a question you need to provide sufficient information:
    <li>How to ask questions
    <li>{message:id=9360002}

  • Master Region for sub regions

    I have four sub region which belong to a master region. I would like give a title to master region and have a border outline for this master region which includes all four sub regions. is this possbile, any ideas are appreciated.
    thanks for your help,
    Surya

    thanks Arie, that's helpful. it works when I have all the regions displayed in "Column 1". is it possible to to apply similar technique, when I have three regions, top two regions displayed in column 1 and column 2 and third region at the bottom displayed in column1?
    thanks for your help.
    Regards,
    Surya

  • Does XmlResults includes sub-node for EAGER query execution type?

    If to query elements and eager query execution type is set, would XmlResultset contain sub-elements as well?
    If yes, is there a way to return element without sub-element? Also, I can't actually use lazy evaluation right now as it crashes the Python.

    Hi Phillipe,
    As long as you are using a NodeContainer storage model, DB XML will not pull any sub-elements into memory until you ask for them - it lazily manifests them. This is therefore not a problem that you need to worry about.
    I'm sure that lazy evaluation works in Python. If you are seeing problems here, you may have to post code before anyone can help you.
    John

  • Customised sub-total via UNION query - how to exclude from totals?

    Hi,
    I have a client requirement that a couple of companies have their own sub-total in a report, a treatment which applies to no other companies in their group.
    I have achieved this via a union all, but they also want a total of companies.
    Is there anyway to emulate a Grand Total, other than another union query such that the double count is not double counted?
    thanks for any ideas.
    Robert.

    only solution which i can think of is to create another union request for the grand total.. this way you wont add up your sub totals twice..

  • Custom Hierarchy sub selection from BEx Query to Webi

    Hi All,
    The client has requested that from a hierarchy only certain accounts / account nodes be brought into the Webi report.
    I have made a Account Number Filter in the BEx query containing the nodes that the client has requested. In order to get a hierarchical view, I activated the hierarchy display through BEx and selected the hierarchy the the selection of the nodes came from.
    I ran the report through Analyzer and all works - the only nodes that show are the nodes that were filtered on through query designer and all lower nodes below it. It displays as a hierarchy properly.
    When running in Webi, I bring in the hierarchy object for Account number and the report crashes giving me the general Webi error. (I have added a screenshot).
    In conclusion, what I am trying to do is take a sub selection of certain account nodes from a hierarchy and display those nodes with all lower levels below in a hierarchy. It works in BEx, not in Webi.
    If this won't work in Webi, any idea how to build this in BEx so it will work in Webi?

    I haven't tried this myself yet - but did you register your Google API key?  Please see Google Maps in SDK Extension

  • Difference between 2 sub-totals in SAP query

    Hello Experts,
    Is there any possibility to find out the difference between 2 sub-totals and display it at the bottom of the ALV output( like total) in SAP Query using SQ01.
    For example: see below example(Request you to paste the below in an excel sheet for more readability).
    PRZ     25.05.2011     A 007 008 01 15     10     EA           0,00     INR          0,00     INR          2,00     INR               0,00     INR
    PRZ     27.05.2011     A 007 008 01 00     1     PC          10,00     INR          0,00     INR          0,20     INR               0,10     INR
    PRZ     27.05.2011     A 007 008 01 00     1     PC          10,00     INR          0,00     INR          0,20     INR               0,10     INR
    Sub-total               10     EA     20,00     INR          0,00     INR     2,40     INR     20     INR
                   2     PC                                        
    DRP     26.05.2011     WDB2020261X744924     1     PC          60,00     INR         50,00     INR         30,00     INR               0,00     INR
    DRP     31.05.2011     WDB2020261X744924     1     PC          60,00     INR         50,00     INR         30,00     INR               0,00     INR
    Sub-total               2     PC     120,00     INR     100,00     INR     60,00     INR               0,00     INR
    Grand totals               10     EA     140,00     INR     100,00     INR     62,40     INR     20     INR
                   4     PC                                        
    In the same way as Grand total, Is there any possibility to find out the difference between the 2 sub-totals and display at the bottom after the Grand Totals row.
    Please let me know if there is any possibility for the same.

    Just to update on my question.
    In the sub-totals line you can see that there is 20,00 INR value which is summation of the above fields present in individual line numbers above. And the same way for the rest of the fields as well.
    After calculating the sub-totals in this manned, I need to find out the difference between the subtotals and display it at the bottom of the output.
    Please let me know if this is possible.

  • ResetActionListener does not appear to work for sub regions

    I have input fields that are contained within a region. Outside of this region is my Cancel button which contains the af:resetActionListener tag. When pressing Cancel, input fields outside of the region reset as I expect them to, however, input fields contained within the region do not reset at all. Does the resetActionListener behave this way by design, or was it not designed to handle this case?

    I appreciate the response, however, partialTriggers are not the issue here. I already have a panelGroupLayout, which contains the input fields, as a partial target of the cancel button, and have confirmed that the fields are getting refreshed (by using an outputText which fetches the current time). I believe this is an issue with the resetActionListener's ability to reach input fields contained within a region. Placing a resetActionListener on a cancel button within the region resets the fields as one would expect, however, I need to have the cancel button outside of the region. Here is an idea of the code structure which is not working to reset the input fields with an resetActionListener:
    <af:commandButton text="cancel" id="formCancel"
    actionListener="#{pageFlowScope.myBean.cancelActionListener}"
    partialSubmit="true" immediate="true">
    <af:resetActionListener/>
    </af:commandButton>
    <af:region value="#{bindings.mypagdef.regionModel}"
    partialTriggers="::formCancel"/>
    And it's in this region that my input fields, which are not getting reset, exist. I have stripped out several panel form, group, and stretch layouts, and a template usage to simplify the example code structure, but I don't believe those have anything to do with the problem.
    Edited by: Jesse Stephens on Nov 10, 2009 9:13 AM

Maybe you are looking for