Creating query depending  dimension 's LOV

Post Author: Ferhat
CA Forum: WebIntelligence Reporting
hi..
i 've got a problem with creating a report like that:
i ve got a year and month dimension objects and sales measure object. İn year object i've got 1998, 1999 and 2000 datas.
i want to do add column that doing this:
      for 1999( for april : ( (sales in 1999 april - sales in 1998 april) / (sales in 1998 april)) 
       for may : ( (sales in 1999 may - sales in 1998 mayl) / (sales in 1998 may)) ...)
and
for 2000( for april : ( (sales in 2000 april - sales in 1999 april) / (sales in 1999 april)) 
       for may : ( (sales in 2000 may - sales in 1999 mayl) / (sales in 1999 may)) ...)
how can i do this in web intelligence..i need help
tanks a lot...

Post Author: James MacDonald
CA Forum: WebIntelligence Reporting
You should be able to do this using Webi's report variables.
For April 1999 Sales
v_Sum1=Sum(if([Year]=1999 and [Month]="April";[Sales];0))
v_Sum2=Sum(if([Year]=1998 and [Month]="April";[Sales];0))
v_Ratio=Sum(if([v_Sum2] = 0;0;([v_Sum1] - [v_Sum2]) / v_Sum2))
etc.
You can prompt for the year and month and then test the prompt results instead of the hard coded values.  It is important to use the 'Sum()' function as the variable is recalculated on each row and would probably be 'Multivalue' without the sum.
I didn't test this so I can't guarantee the syntax is right but it should be close.

Similar Messages

  • Can't create multiple dependent LOVs from the same bind variable

    Hi all,
    I'm having difficulty creating multiple dependent LOVs from queries based on the same bind variable in my JSF application (JDev 10.1.3.1). Basically I have a static LOV in a af:selectOneChoice component from which users select a value which then becomes the bind variable value for two separate queries that generate two different dependent LOV. Having developed the code along the lines of Steve Muench 's blog (http://radio.weblogs.com/0118231/2006/04/03.html#a685), the first dependent LOV works really well. The first dynamic LOV gets refreshed whenever the list from the static LOV changes, and I can execute other queries based on the values selected.
    The problem arises when I want to create the second dynamic/dependent LOV that has the same bind variable based on the same selected value from the static LOV. Here I would also like the functionality whereby the second dynamic LOV is also refreshed after the selected value in the static LOV changes. Thinking that all I had to do was replicate the methodology used in creating the first dependent LOV, I created the second iterator, invokeAction and other binding components in the PageDef. The executable section now looks like the following:
    <iterator id="SelectStaticQueryViewObjIterator"
                  Binds="SelectStaticQueryViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery1BindParameter"
                  Binds="ExecuteWithParams1" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery1ViewObjIterator"
                  Binds="SelectDynamicQuery1ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery2BindParameter"
                  Binds="ExecuteWithParams2" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery2ViewObjIterator"
                  Binds="SelectDynamicQuery2ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>I now have a problem whereby everytime I change the value of the static LOV, multiple HTML components for the same ADF component are being generated (the LOVs are refreshed via PPR). The surprising thing is that this duplicating behaviour applies to all ADF components listed after the first dynamic LOV in the *.jspx source. For example, I have a <af:outputText="Test Text"/> component created after the first dynamic LOV. Each time the value in the static LOV changes, a duplicate HTML component is created. This also applies to the 'related' second dynamic LOV which is bound to a af:selectOneChoice component - multiple dropdown lists are created. I've checked with the browser's Page Source and there are actually multiple html components being generated with their own unique ADF-generated IDs. I've tried all different options for the Referesh and RefreshCondition attibutes in the second invokeAction element but nothing seems to eliminate this issue.
    Any suggestions about how I might create multiple dependent LOVs from the same bind variable that get refreshed when the selected value changes would be greatly appreciated.
    Thanks
    George

    Hi all,
    Just updating the thread on how I've overcome this issue. As it stood the manner in which I was trying to solve my use case, as described above, was creating an absolute mess. Then with a blank sheet of paper I quickly realised that a much simpler solution would be to create a whole series of master-detail VOs and build my components around them. Thankfully I haven't had any issues going down this path as yet.
    Cheers
    George

  • Simple SQL Query and Parameters and LOV

    Newbie and trying to work thru building a simple sql query with a single table query and use a parameter and lov.
    Can anyone point me to an example.
    simple query:
    select cust_id, name_desc, name_add1, name_add2, name_city
    from customer_table
    where cust_id = :cust_parm
    This works in straight sql and in the query builder by prompting for the customer ID. When building a parameter using LOV or search, it doesn't seem to detect the variable.
    Thanks..
    DD

    If you are using version 11g, then as soon as you save the query in the data model, it should notice the parameter and ask if you want to add the parameter to the data model. What version of BIP are you using?
    What happens if you exclude the parameter from the query and simply hard-code the criteria? Can you generate XML data?
    From your wording, it sounds like you're trying to create a parameter from the LOV dialog. LOVs and parameters are totally distinct. After each are created separately, then you configure the parameter to use the LOV.

  • How to create a Time Dimension

    Hi
    This is regarding a new topic which i could not find the answer in this forum.
    Actually i want to create a time dimension to populate my source data which is in date/time format.
    can anyone please reply back reagrding how to create a time dimension in ODI???
    regards
    Gourisankar

    Hi Gourisankar,
    I am not aware of time dimension. But when i searched in metalink i got the below note. I am not sure whether it will help you or not but still a small contribution. :)
    The note as follows,
    To create new time dimensions, run the following SQL instructions :
    * Example to generate a calendar between 1999-01-01 and 2007-12-31 one row per day
    SELECT to_date('1999-01-01','YYYY-MM-DD')+rownum
    FROM DUAL
    CONNECT BY
    ROWNUM<=to_date('2007-12-31','YYYY-MM-DD')-to_date('1999-01-01','YYYY- MM-DD');
    * Example for generating a calendar random number
    SELECT DBMS_RANDOM.VALUE
    FROM DUAL
    CONNECT BY ROWNUM<=1000000;
    May be you can create a VIEW out of this query ,reverse it and use that as a source in your interface.
    Try this and let me know.
    Thanks,
    G
    Edited by: Gurusank on Dec 22, 2008 4:19 PM

  • Time dependent dimension

    Hi all,
    I was hoping to get some more info on this subject.
    Has anyone had some experience or even used dimension in strategy management which have change over time.
    For example, dimension Organisation unit has new structure since the beginning of 2014. Some sectors don't exist anymore and some are new.
    How to resolve such issue?
    I would appreciate any advice and suggestion.
    Thank you in advance.
    Best regards,
    Petra

    Petra
    Dimension structure changing over time is quite normal.
    How you handle this will depend on how comparable the structures are and how significant the reorganisation is. If it is simply that new members have been added to that dimension then you can just add them and decide what you want to do with the older members. For example if you had KPIs tracking the fuel efficiency and utilisation of your vehicle fleet you could add new vehicles as members of the dimension while the top level would remain the same. If there are no Targets and Actuals for those members they won't be visible when you go to the drill view in the KPI. As vehicles go off fleet you can periodically do a clean-up and group those that have gone into an 'Off-fleet' group that is still within the dimension overall.
    But if for example your Organisation dimension changes fundamentally with a restructuring of business units then it may make sense to go as far as creating a new dimension that reflects the new structure and back loading data at the lowest level that reflects that new structure with new versions of the KPIs so you can see the trend over time. More complex and requires more of a rebuild but if that is what is needed.
    What it comes down to is not a technical question but a business question - what does the business need to be able to usefully see the new structure in the light of the trends from the past. When you answer this it will indicate to you which way you go when you make your updates.
    Regards
    Colin

  • Error after creating a new dimension in dev studio

    Hi,
    I have set up ATG 10.1.2 along Endeca 3.1.1
    For the CRS application the cartridges are shown properly.
    But once I create an autogen dimension from dev studio and run the baseline the navigation cartridges disappear giving the below mentioned error.
    error=com.endeca.infront.navigation.NavigationException: com.endeca.navigation.ENEException: HTTP Error 404 - Navigation Engine not able to process request 'http://localhost:15000/graph?node=10098&refinement=dimvalid:10093+dynrank:0+exposed:1&refinement=dimvalid:10001+dynrank:0+exposed:1&refinement=dimvalid:10002+dynrank:0+exposed:1&refinement=dimvalid:1+dynrank:0+exposed:1&refinement=dimvalid:10011+dynrank:0+exposed:1&groupby=product.repositoryId&offset=0&nbins=0&allbins=1&autophrase=1&autophrasedwim=1&filter=AND%28product.priceListPair%3asalePrices_listPrices%2cOR%28product.siteId%3astoreSiteUS%29%29&irversion=640'., displayNameProperty=displayName_en, dimensionId=10001, buryRefinements=[]}, {showMoreLink=false, sort=default, @type=RefinementMenu, boostRefinements=[], maxNumRefinements=200, numRefinements=10, displayNamePropertyAlias=displayName, name=Size, moreLinkText=Show More Refinements..., dimensionName=clothing-sku.size
    I have also put the --back_compat flag as 640 but even then getting the same error.
    Only the redeployment of full application removes the error.
    Please suggest if anyone has faced similar issue.
    Regards,
    Varun

    Please see the suggested solutions in the following docs.
    Entity Maps Not Defined For Attachment Error When Selecting A Deliverable (Doc ID 358385.1)
    Corrupt Personalization - No Entities Found Entitymaps Not Defined For Attachment Item (Doc ID 1085011.1)
    R12:Supplier Page Unexpected Error: 'No Entities Found EntityMaps not Defined for Attachment Item' (Doc ID 1361320.1
    Geography Hierarchy No Entities Found, EntityMaps Not Defined For Attachment Item (Doc ID 831088.1)
    Depot Repair Bulk Receiving Error: "No entities found, entityMaps not defined for attachment item" (Doc ID 1357977.1)
    Thanks,
    Hussein

  • How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    For my part you are welcome, sdowers.
    Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
    I just came to remember a warning that needs to be given:
    The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25.

  • Error while creating query in Adhoc report

    Hi Experts,
    when i am creating query using tables bseg,bkpf and kna1(logical database BRF) and vbrk,i am getting error as "query Specifications cannot be used to generate list" in SQ01.I linked BRF logical database with vbrk by using condition vbrk-vbeln = bkpf-awkey.
    is my condition is wrong in linking VBRK to BRF logical database.please guide me how to solve this.
    If my joining is wrong means why i didnt get error in SQ02.??
    Required fields are:Invoice number(vbrk),invoice category(vbrk),invoice date(vbrk),account document number(bkpf),company code(bkpf),G/L account(bseg),currency(bseg),state(kna1),invoice amount(vbrk).
    Do i picked fields from wrong tables?/
    Thanks&Regards,
    narasimha.

    can somebody help on this
    Regards,
    narasimha

  • Creating A new dimension for a characteristic versus adding in the same dim

    Hi Guys,
    I have a scenario where I have 0Material in a line item dimension in the cube.
    Have to add 0Mat_plant which is compounded to 0plant as we need MRP controller
    as one of the Nav attributes. 0Plant is also available in the cube.
    There are two options of doing this:
    1) Either add it to the 0Material dimension removing the line item property.
    2) Or create a new dimension for 0MAt_plant and make it as line item dimension
       considering the large volume of material information.
    Which is a better option and why.
    Please advise.
    Many Thanks and Regards,
    KAte

    Hi Kate,
    I'd recommend to have a new dimension as line itemdimension for 0MAT_PLANT, just for performance purposes (almost logarithmic access of data instead of full table scan)
    The Plant Segments in R/3 usually have a lot more records than the general material master has (max: number of plants * number of materials).
    Adding the object to 0material means that you have to unassign the line item flag. Usually this leads to increasing load- and queryruntimes.
    hth
    cheers
    sven

  • Problem in create query

    Hai good afternoon to all,
    When i execute create query in oracle9i{create table t1 as(select * from t6)}
    it shown error like that
    ERROR at line 1:
    ORA-01536: space quota exceeded for tablespace 'SYSTEM'
    Please tell me the solution..

    Hi
    You are using the SYSTEM tablespace as your default tablespace
    Tell your DBA to use some other tablespace
    Using SYSTEM tablespace as default tablespace is a bad idea

  • How to create an attribute dimension in Essbase Studio?

    I cannot figure out how to create an attribute dimension using Essbase Studio. The online help states that I need to "Find the Attribute settings grouping in the center" of the member properties dialog box. I suspect that I'm having a problem figuring this out because I don't have the attribute dimension properly defined in the relational data source or in the mini-schema. I've tried creating a table with no key relationship to the other tables and with no logical joins defined, but that doesn't seem to help. Any ideas?

    so in the 11.1.1 version you would click on the member name in the hierarchy you added to the Essbase model and in the center pane of the general tab should be the attributes settings section.
    If I had a dimension called stores wth two groupings unser it region and store_type, I would click on store_type and add the attribute info

  • How do create query in SAP?

    Dear Expert
    How do create query report in SAP?
    thanks for advance

    hi
    this is to inform you that,
    please follow the links:
    http://wiki.sdn.sap.com/wiki/display/ERPFI/abap+query
    http://wiki.sdn.sap.com/wiki/display/sandbox/ABAP+queries
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c?quicklink=index&overridelayout=true
    hope this clears your issue
    balajia

  • Creating a DWMQY DIMENSION using Analytic Workspace Manager

    Hi everyone,
    I need some help creating a "time aware" (DAY, WEEK, MONTH, QUARTER, and YEAR) dimension using Analytic Workspace Manager.
    Let me give you some background. I'm coming from a traditional "Oracle Express" OLAP background where all our data is stored in cubes and these are defined, populated and operated on using OLAP DML, there is no SQL or traditional relational tables involved.
    I now want to pull data from relational tables into some OLAP cubes and am using Analytic Workspace Manager to do this (maybe this is not the best way?)
    Let me explain what I'm trying to achieve. In OLAP worksheet I can type the following DML commands:
    DEFINE MY_DAY DIMENSION DAY
    MAINTAIN MY_DAY ADD TODAY '01JAN2011'
    What this will do is create a "day dimension" and will populate it with values for each and every day between 1st Jan 2011 and today. It will be fully "time aware" and thus you can use date functions such as DAYOF to limit the MY_DAY dimension to all the Fridays etc. Similarly if I define a "month dimension" there will be an automatic implicit relationship between these two dimensions, this relationship and time aware cleverness is built into Oracle.
    However, a dimension defined using DML commands (and indeed all objects created using DML language) is not visible in Analytic Workspace Manager (as there is no metadata for them?) and for the life of me I cannot work out how to create such a dimension using AWM. If I create a "Time Dimension" then, as far as I can tell, this is not a proper time dimension but merely a text dimension and I, presume, I have to teach it time awareness.
    Can anyone help me? I have no issues creating, and populating cubes from relational tables using Analytic Workspace Manager, the only issue I have is creating a "proper" time aware dimension.
    Many thanks in anticipation.
    Ian.

    When a dimension is of type "TIME" in AWM, then for each member of that dimension, you need END_DATE and TIMESPAN attributes in addition to the key column and description column.
    So in your case, if there are 5 levels: DAY->WEEK->MONTH->QTR->YEAR
    then you will need atleast 15 columns in your source sql table/view
    or 20 columns if you have separate column for description.
    For example the columns in your source table/view could be:
    DAY_ID,
    DAY_DESC,
    DAY_END_DATE, (which will be that day's date)
    DAY_TIMESPAN, (which will be 1)
    WEEK_ID,
    WEEK_DESC,
    WEEK_END_DATE,
    WEEK_TIMESPAN,
    MONTH_ID,
    MONTH_DESC,
    MONTH_END_DATE,
    MONTH_TIMESPAN,
    QTR_ID,
    QTR_DESC,
    QTR_END_DATE,
    QTR_TIMESPAN,
    YEAR_ID,
    YEAR_DESC,
    YEAR_END_DATE,
    YEAR_TIMESPAN
    Just "map" this table/view to the 5-level time dimension in AWM.
    NOTE that behind-the-scenes lot of useful structures are automatically defined to support time-series measures,
    and there are lot of calculation templates available also.
    Since you came from Express background, I have to say that try to use new OLAP Expression Syntax when creating calculated measures instead of OLAP DML.
    Its very rare these days that we need OLAP DML.
    Edited by: Nasar on Nov 22, 2012 12:11 PM

  • Create Query views in BI 7.0

    My Dear Friends
    Can any body tell me how to create Query views in BI 7.0 and assign to Data provider
    its top urgent.
    Your help will be more appreciated
    Thx & regards

    Hi,
    When you run a BEx query the result is displayed on Excel.You could save this as a workbook
    under a role or save view as global under a role.
    For detail info Check the below links:
    http://help.sap.com/saphelp_nw04/helpdata/en/46/4a04f82663400181bc8631551d34ad/frameset.htm
    Web query views
    http://help.sap.com/saphelp_nw04/helpdata/en/94/01f8894dec
    45129a245027c29cb836/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/624da0e6444ddee10000000a1553f7/frameset.htm
    Reg
    Pra

  • When we create Line item dimension Like before implementation or  productio

    Hi BW experts ,
    i have doubt Regarding the creation of Line item Dimension
    When we creating the lineitem dimension means After Implementation or Before implementation plz Give the Exact answer .
    if u give the exact answer i will assign the moer points
    Regards
    prakash.v
    [email protected]

    Hi Prakash,
                     You can create the line dimension before implenmentation and after implementation.. if u know the size of data u can create at initial stage otherwise go RSRV tcode u can know the size and can create the line dimension, otherwise if dimension table is bigger than fact table u can create line dimension.

Maybe you are looking for

  • Default for baseline date  in Payment terms

    Hi All, Can anyone please explain me the options in OBB8 default for base line date 1. No Default 2. Posting Date 3. Document date 4. Entry Date while creating payment terms with examples. It's very very very Urgent!!!!!!!!!!!! Thanks in advance. Bop

  • Unlock system file

    This probably a very basic question...sorry in advance. I just inherited an HP psc 750 and it won't scan. On the HP site, it gives a new file to download and copy into the HD/System/Library/CFMSupport folder...the file is called TWAIN Source Manager.

  • COnverting class to jsp

    I'm new to jsp and was just wondering how I go about adding my classpath to the jsp page... for example, I have a class like:public class testDriver{    public static void main(String args[]){       MyOtherClass other = new MyOtherClass();       Syst

  • Weblogic server crashes with optimizeit request analyzer

    Hi, I am using weblogic 9.2 version and optimizeitsuite2006. I changed the audit system selector to request analyzer. then restarted my weblogic server. It shows the below error. Please let me know how to solve this problem. Error Message: Illegal me

  • Can I use more than one flash-drive for ready-boost on Satellite L650/0ed

    Hi, I have a toshiba Satellite L650/0ed, is it alright if i use more than one 8gb flash-drive for 'ready boost' - what is the maximum number of flash-drives use can dedicate to 'ready-boost'. In addition, if i use a 16gb flash-drive, will this dedica