MultiCube Query Issue

I created a MultiCube based on 2 DSO.
DSO1 has following information.
MATERIAL    COMPONENT         PROD QTY
A                 -               100.000
DSO2 has following information
MATERIAL          COMPONENT     FACTOR
A               B               1.2
A               C               0.75
A               D               0.50
I created a query, which shows results as follow
I Created a formula TARGETQTY, which is FACTOR * QTY. The query shows me following results
MATERIAL     COMPONENT      FACTOR          QTY          TARGETQTY
A                                                100,000     0
A                  B               1.2                            0               
A                  C               0.75                            0     
A                  D               0.5                                 0
I WANT TO SHOW RESULTS AS BELOW
MATERIAL      COMPONENT     FACTOR      QTY          TARGETQTY
A                 B               1.2          100,000     120,000
A                 C               0.75          100,000     75,000
A                 D               0.5          100,000     50,000
How can I achieve this in query??

Hi,
I am afraid to say your MultiProvider will not solve your issue,if your Target Qty is based on multiplication of two different ODS keyfigures. Becasue MultiProvider is only for union ,not for joining .You cannot combine two fields of the ODS in multiprovider. I suggest in this case you can either go for look-up which means reading the data from the second ODS into first ODS based on the combination of the keyfields or the infoset(i'm not sure, though)
After the look-up the data is available in only one ODS and you can create a formula based on that.
Thanks.

Similar Messages

  • Dataset query issues twice if the dataset is connected to matrix and used in multilookup function

    hello everybody.
    could not find any information if this is an intended behavior:
    dataset query issues twice if the dataset is connected to matrix and used in multilookup function
    parameters in both queries are the same
    ssrs: 2008 r2, sharepoint 2010 integrated
    sharepoint 2010: september 2014 cu
    thanks in advance
    Sergey Vdovin

    Hello, Wendy.
    I prepared a very empty sample report for you to demonstrate the problem - with this report, i hope, there is no place to discuss the shrinking of time data retrieval.
    There is one dataset, one parameter and one lookup function. The query is executed twice.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>http://t005/ProjectBICenter/DocLib/IntegrationDBVdovin.rsds</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>7e554344-d6c2-48a5-a7f4-1d24608cb4b5</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select 1 as temp, '$' as tempname</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="temp">
    <DataField>temp</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="tempname">
    <DataField>tempname</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportSections>
    <ReportSection>
    <Body>
    <ReportItems>
    <Textbox Name="ReportTitle">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Lookup(1,Fields!temp.Value,Fields!tempname.Value,"DataSet1")</Value>
    <Style>
    <FontFamily>Verdana</FontFamily>
    <FontSize>20pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
    <rd:DefaultName>ReportTitle</rd:DefaultName>
    <Top>0mm</Top>
    <Height>10.16mm</Height>
    <Width>139.7mm</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>57.15mm</Height>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Body>
    <Width>152.4mm</Width>
    <Page>
    <PageFooter>
    <Height>11.43mm</Height>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <PrintOnLastPage>true</PrintOnLastPage>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </PageFooter>
    <PageHeight>29.7cm</PageHeight>
    <PageWidth>21cm</PageWidth>
    <LeftMargin>2cm</LeftMargin>
    <RightMargin>2cm</RightMargin>
    <TopMargin>2cm</TopMargin>
    <BottomMargin>2cm</BottomMargin>
    <ColumnSpacing>0.13cm</ColumnSpacing>
    <Style />
    </Page>
    </ReportSection>
    </ReportSections>
    <ReportParameters>
    <ReportParameter Name="ReportParameter1">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>ReportParameter1</Prompt>
    <ValidValues>
    <DataSetReference>
    <DataSetName>DataSet1</DataSetName>
    <ValueField>temp</ValueField>
    <LabelField>tempname</LabelField>
    </DataSetReference>
    </ValidValues>
    </ReportParameter>
    </ReportParameters>
    <rd:ReportUnitType>Mm</rd:ReportUnitType>
    <rd:ReportServerUrl>http://t005/ProjectBICenter</rd:ReportServerUrl>
    <rd:ReportID>cd1262ef-eca7-4739-a2ce-d3ca832d5cd6</rd:ReportID>
    </Report>
    Sergey Vdovin

  • Web Query issues

    Hi All,
    I have created a web query and assigned it to a role. I have moved the role, web templete and the query from dev to QA was able run the query fine without issues.
    The problem I am having is when I make changes to the query and transport it to QA...when I run the query from the role menu it still shows the old query instead of the changed query.
    Can someone please explain what are the steps I need to take when I make changes to exsisting web query in dev and move to QA and be able to see the changes. What are all the objects I need to collect. Also would like to know if there are any settings on the role menu or web templete that need to be changed and also any buffers that I need to cleared??
    Any help is appriciated and will give max points.
    Thanks

    BWdesi,
    please avoid reposts - it could be that due to network issues the post got posted twice... close one of them as answered and then proceed with the other one...
    Web Query issues
    Arun

  • Query issue

    I had query issue on planning layout
    Sold    mat   price   qty   amount
    100      3        5        5          25    layout 1
    100      4       10       5          50    layout2
    when I should removed  material  cal has to come  like this
    100             15        10          75
    but I getting value like
    100        15       10       150
    can u plz tell me how to slove this
    regards
    raju

    Dear Raju,
    In the query, for the Calculated Key Figure (Amount)
       Select properties, enhanced and change to:
                          "BEFORE AGGREGATION"
    It seems to be doing after aggregation, which is  default.
    it is aggregating:
        price = 5+10 = 15
        qty   = 5+5 = 10
        Amount = 15 * 10 = 150
    Good luck, BB

  • Physical query issued by Obiee when cache is on is different and slow

    When the same report runs in OBIEE 10g and cache is OFF it takes less then 1min to get results. If cache is turned ON physical query issued by Obiee is totally different and it takes 2h to get results. Has anyone experienced this with having cache on that some queries are performing poorly.
    Thanks,
    Tatjana

    We are using BI Apps Order Management and Fulfillment Analytics and all tables are cached anyway. Dimensions used are not that huge up to 40K rows. What should I check when it comes to DB query? As I said is different than one generated when cache is disabled although both have the almost the explain plan.

  • Multicube query

    Hello all,
    I have 2 issues that i am facing with multicubes.
    1. We have a sales order cube which is being fed from 2ODS sales order header&item and the other being sales order schedule line. When i run the query i want to see only one line with the details of the few characteristics that are on the header.
    2. I have multicubed sales order and deliveries.The report requires that i give selection criteria on goods issue date which is present only on th deliveries cube. How do i get the corresponding values of the characteristics present in the sales order cube based on delivery number.Also I want to have only one line in the report with data coming from both cubes.
    thanks in advance
    amit

    Ryan,
    Let us take the case where we are pushing data from 2 ODS where in which for each header we have a number of items.
    Now for any query on the cube i beleive we get for 1 order number of the header we get a number of lines= number of items for that order number.But the users do not want to see the items but only 1 line which says if any of items fail to be delivered we get 1 line stating the order number and the reason.
    Is this possible to be done.
    With respect to your answer i understand that is not possible. But i read somewhere its possible to overcome using restricted key figure but not sure how.
    thanks
    amit

  • SQL query issue

    I am attempting to connect to a Progress database using JDBC and am having a few issues with my SQL statement. The code concerned looks like this:
    // Get a statement from the connection
    Statement stmt = conn.createStatement() ;
    // Execute the query
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust" ) ;
    // Loop through the result set
    while( rs.next() )
    System.out.println( rs.getString( "cust-code" ) ) ;
    That works just fine. Prints out each of the cust-code values. My issue comes when I try to refine the query to be:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE cust.Cust-code='100001-0'" ) ;
    or even
    ResultSet rs = stmt.executeQuery( "SELECT Cust-code FROM pub.cust" ) ;
    Both of these give me an error saying Column not found/specified.
    if I wrap Cust-code in single quotes, the script prints Cust-code on each line, not the value for it. If I escape Cust-code like Cust\-code, I get an Illegal escape character. Any ideas?

    I have never used Progress, but maybe you have to fully qualify the field names like this:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE pub.cust.Cust-code='100001-0'" ) ;
    ResultSet rs = stmt.executeQuery( "SELECT pub.cust.Cust-code FROM pub.cust" ) ;Just a thought.

  • Help needed in resolving query issue

    Hello all,
    Would appreciate any help on the following issue.
    Our process has a stored procedure, which used to take 6 mins to run.
    We are not sure what changed at what level, but now the query goes on forever( till database shuts down or we kill it), and never returns any result. Also, this is not consistent at all times. Sometimes(!!), it brings back results in expected time.
    Apparently nothing changed in the database.
    We checked and the query where it gets stuck is as follows:
    select a.x,
    b.y,
    c,z
    from a,b,c where
    b.header_id =a.header_id and c.property_id =a.property_id(+) and b.status_id in (1,0) and a.date(+)>c.date;
    It does not give any error or any mesg, when it reaches this query, and just hangs in there( Mind this was a working query since last 2 months)
    We are at a total loss at the inconsistent behaviour of this.
    Any help or advise would be greatly appreciated
    Thanks
    Aparajita

    I recommend you to post this as well here:
    Forums Home » Oracle Technology Network (OTN) » Products » Database » SQL and PL/SQL
    Discussion of Oracle SQL and PL/SQL issues
    PL/SQL
    Joel Pérez

  • Oracle Sql Query issue Running on Different DB Version

    Hello All,
    I have come into situation where we are pruning sql queries on different DB version of Oracle and have performance issue. Let me tell you in brief and i really appreciate for your prompt response as its very imperative stuff.
    I have a query which is running on a DB of version 7.3.4 and it takes around 30 mins where as the same query when run on 8i it takes 15sec., its a huge difference. I have run the statistics to analyze on 7.3 and its comparatively very high. Question here is, the sql query trys to select data from same schema table and 2 tables from another DB using DB link and 2 other tables from another DB using DB link.So,how can we optimize this stuff and achieve this run as same time as 8i DB in 7.3. Hope i am clear about my question, Eagerly waiting for your replies.
    Thanks in Advance.
    Message was edited by:
    Ram8

    Difficult to be sure without any more detailed information, but I suspect that O7 is in effect copying the remote tables to local temp space, then joining; 8i is factoring out a better query to send to the remote DBs, which does as much work as possible on the remote DB before shipping remaining rows back to local.
    You should be able to use EXPLAIN PLAN to identify what SQL is being shipped to the remote DB, If you can't (and it's been quite a while since I tried DB links or O7) then get the remote DBs to yourself, and set SQL_TRACE on for the remote instances. Execute the query and then examine the remote trace files, And don't forget to turn off the tracing when you're done.
    Of course it could just be that the CBO got better,,,
    HTH - if not, post your query and plans for the local db, and the remote queries.
    Regards Nigel

  • Adhoc query Issue in IT0001- Additional fields.

    Hi Everyone,
            Im facing issue in adhoc query, In IT0001- Additional field .The supervisor name is not getting displayed in the output  even though personnel number is getting fetched.Output value attributes is  chosen  as 'value and text'.
    Details of the field:
    Name of the field: Personnel number of superior (Org. Manag
    Technical name :SYHR_A_P0001_AF_OMNGR_NR (Additional field)
    This is happening after the implementation of A3 to A9 notes.
    Thanks in Advance.
    Regards,
    S P Joshi.

    Did you try Ted's solution of identifying the "addtional field 'SYHR_A_P0001_AF_OMNGR_NA' "as a displayed field ?
    Note that if that field is not already in your Info-Set, you will have to add it (using t-code sq02).

  • Tabular model with Direct Query issue

    Hi,
    i am creating a tabular model - Direct Query option. I am using a kind of below query to import data,
    Declare @TEST as Table (TestID int, TestName varchar(20))
    Insert into @TEST
    Select 1, 'TEst1' Union
    Select 2, 'TEst2'
    Select * from @TEST
    But the Import fails with an error similar to below,
    OLE DB or ODBC error.  An error occurred while processing the partition 'Query_``````````' in table 'Query_````````'.  The current operation was cancelled because another operation in the transaction failed.
    Any idea, why it is failing ? or is it like we shouldn't use declare statement in the Query area ?
    Please reply ...Thanks in advance !
    --------------------------- Radhai Krish | Golden Age is no more far | --------------------------

    I'm pretty sure that the query would have to be a single statement so the declare statement would be causing issues.
    So just doing this as a single union query should work:
    Select 1 as TestID, 'TEst1' as TestName Union
    Select 2, 'TEst2'
    http://darren.gosbell.com - please mark correct answers

  • With clause query issue in oracle cloud script editor

    When I am running this query in SQL Workshop > SQL Commands window then its working fine
    with cte as (select * from emp)
    select * from cte
    where deptno = (select deptno from dept where loc = 'DALLAS')
    but its give me error in SQL Workshop > Script Editor window
    When I did copy & paste query from Script Editor window to notepad,
    then I realize that its automatically adding hidden "?" question mark (as per below query)
    how can I resolve this issue?
    please guide me.
    I have confirm that there is no any white space after 'DALLAS')
    & another simple queries working fine in both windows.
    with cte as (select * from emp)
    select * from cte
    where deptno = (select deptno from dept where loc = 'DALLAS')?
    Edited by: Sanjay on 28 Mar, 2013 6:46 PM

    Hi Sanjay,
    You have mentioned "+but its give me error in SQL Workshop > Script Editor window+" - are you referring to the SQL Workshop > SQL Scripts > Script Editor option, while editing a SQL script? If so, then I have been unable to reproduce the behaviour you have reported, and have not received any errors using your test query.
    To assist in identifying the cause of your problem, could you please outline the exact steps that you followed, leading up to the step where you receive an error?
    Regards,
    Hilary

  • Af:query issues within a taskflow

    JDev: 11.1.2.1
    I've created a simple fusion app, using the HR countries and department tables. The ViewController contains a home page and a taskflow.
    The taskflow accepts a 'SearchBy' parameter, and I have a router (default) which then redirects the user to one of two pages, based on that parameter.
    <case id="__1">
    <expression>#{pageFlowScope.SearchBy eq 'countries'}</expression>
    <outcome>countries</outcome>
    </case>
    <case id="__2">
    <expression>#{pageFlowScope.SearchBy eq 'depts'}</expression>
    <outcome>depts</outcome>
    </case>
    The two pages "CountriesQueryPage" and "DeptsQueryPage" contain nothing more than a standard af:query (with table) based on the named criteria "All Queriable Attributes" for respective views.
    The Home page contains the taskflow above as a region, and a couple of links, which set a #{requestScope.SearchBy} parameter. The taskflow binding was changed to Refresh 'ifNeeded'.
    <af:panelHeader text="panelHeader 1" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
    <af:group id="g1">
    <af:commandLink text="Countries" id="cl1" partialSubmit="true">
    <af:setPropertyListener from="#{'countries'}" to="#{requestScope.SearchBy}"
    type="action"/>
    </af:commandLink>
    <af:spacer width="10" height="10" id="s1"/>
    <af:commandLink text="Depts" id="cl2" partialSubmit="true">
    <af:setPropertyListener from="#{'depts'}" to="#{requestScope.SearchBy}"
    type="action"/>
    </af:commandLink>
    </af:group>
    </f:facet>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    <af:region value="#{bindings.tf11.regionModel}" id="r1" partialTriggers="::cl1 ::cl2"/>
    </af:panelHeader>
    When I run this, the default "countries" page is displayed in the region. The af:query functions perfectly. When I click the link to the Depts page, the region refreshes as expected, but when the query table is rendered an error is thrown "Content failed to load.... data transmission was interrupted. Checking the log, I'm getting....
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    java.lang.IllegalStateException: Could not find component to stream
    <FaceletViewHandlingStrategy> <handleRenderException> Error Rendering View[Home]
    java.lang.IllegalStateException: Could not find component to stream
    Couldn't find much online about this error message.
    The only way I've been able to stop the issue is to remove the af:table on the depts query page.
    I also tried using a dynamic region to get the above functionality (dividing each query page into it's own taskflow and removing the router) and got exactly the same issue.
    Any ideas?
    Thanks
    Edited by: drb on Nov 24, 2011 6:31 PM

    Just in case anyone else has this issue -:
    It turns out that the fault was using RequestScope parameters within the af:setPropertyListener. Once I changed this to a longer scope, pageFlowScope for example, the issue was resolved.

  • UCCX 5 SQL Dbase Query Issues - Slow Returns

    For several months it seemed to me that our UCCX 5 system was beginning to have trouble. At first it appeared as a problem with our wallboard system being unable to display the real-time data properly. I had deduced that queries to the db_cra database were taking 4 - 5 minutes to return data.
    At first I called on the vendor for our wallboard, but they were unable to help stating that it was a UCCX database issue - and I agreed. I then went to Cisco TAC and fed them all my information and asked them for help. They also were unable to help figure out what was happening, but they could see that the SQL queries that used to take 2 seconds were now taking several minutes. Since the wallboard system queried the database every 10 seconds, it was over-taxing the database.
    This began to cause little anomalies in things like call-distribution, dropped calls, slow to no Historical reports returns, and this ultimately began to cause failovers to our backup node. I could not go a day without a failover and I had to reboot the servers almost every night.
    I felt there was no solution and was afraid we needed to replace our system.
    After talking to all the engineers around the world, my solution came from our very own SQL administrator. Within 5 minutes he was able to resolve all our issues.
    The root of our problem was that the indexing of the db_cra database was extremely fragmented.
    He wrote a SQL sript that he had me run against the database and he told me that this would correct any indexing issues.
    It worked like a charm.
    The system stopped behaving poorly immediately. This resolved many of our problems that I had been living with for a long time. It made the Admin page work so much faster, call distribution issues halted, the wallboard is running faster than ever with real-time data, and the list goes on. This resolved so many smaller issues that I cannot even list them all.
    I would advise anyone using a SQL database, whether it be a Cisco product or not, to always keep their database 'defragmented'.
    My SQL admin also setup the script to run automatically, on a schedule to keep our database running like a Ferrari. It has been sweet ever since.
    KEEP YOUR INDEXES CLEAN AND YOU WILL REAP HAPPINESS!

    I was equally shocked that there was no escalation, as was my boss and my Cisco rep. They let me go with no resolution and hung-up the phone leaving me with instructions to have some-one else take a look at the database. It was very unexpected, especially considering how close they were to the point when we were trouble-shooting.
    The TAC SR # 611904619 - IPCC Database Not Returning Query Data.
    With this resolution, it also raised to my mind the issue of Informix. We are using CUCM 6.1.2 and are concerned about the same issue happening there and we would like to determine if this can happen there also, and if there is a re-indexing tool available for Informix.

  • Caching Query Issues?

    I have a test(on the server) and a development(localhost) sites so is the oracle database schemas.  Both Oracle database schemas reside on the same server. I have the same datasource name for both schemas in the CF Administrators (local and server). For some reason, it seems to me that the data being pulled only from the test environment database eventhough I run the code on the development(localhost).  I cleared the cache on the CF administrator.   Any advise would be great.  Thanks.

    Soumen Mondal,
    If you are facing this problem from the same client PC and in the same session, it's very strange.. but if there are two sessions running on the same PC this kind of issue may come..
    Something about caching:
    To decide whether to cache a query or not, consider the number of times you intend to run the query in a minute. For data changing in seconds, and queried in minutes, I would recommend not to cache query at all.
    I may give a typical example for query caching in a query on material master cached for 24 hours, where we know that after creating material master, we are not creating a PO on the same day.
    BR,
    SB

Maybe you are looking for

  • Error in sending ALV mail

    Hi, I am sending the ALV List through mail. But I am getting the error "MAXIMUM NUMBER OF INTERNAL SESSION REACHED". But without using the mail variant i am able to see the output. Mine mail functionality is not working

  • Polling in BC4J Struts

    Hi folks, How would I achieve a polling functionality? One of our applications is setup with the 10gR2 version which comes with BC4J and Struts(Struts was a personal choice). I understand we have an af:poll tag with jsf which helps us to achieve the

  • WOW VERIZON

    I just made a switch from AT&T after 8 years of service due to AT&T not honoring my grandfathered data package from the original I-Phone. Upon activation, I was told by the gentlemen that started my service that I would only have to pay 92 something

  • PI Export(PI_INRUN) - picking up few extra employees who are not suppose to

    Hi, PI Export - ADDL_PAY_DATA Data Export through PI Export. I am exporting ADDL_PAY_DATA Data through PI Export Process for earning codes defined in Definition Table. PI Process picking up few extra employees in export file who are not suppose to be

  • Applets load very slowly on 64bit Windows 7 using 64 bit Java

    Hi We have an applet that was very quick to load under windows XP. Some of our users are now using the 64 bit Windows 7 Operating system with 64 bit Java runtime environment and this applet takes up to 20 seconds to load. These machines have both the