TOPN filter on two combined cubes

Hi guys,
do you know how to apply a TOPN filter on two combined queries like the one below:
SELECT saw_0, saw_1, saw_2 FROM ((SELECT Companies.Company saw_0, "Non Revenue Facts".Rooms saw_1, "Local Revenue Facts"."Room Revenue" saw_2 FROM COMPANY) UNION (SELECT "Travel Agent".Travel saw_0, "Non Revenue Facts".Rooms saw_1, "Local Revenue Facts"."Room Revenue" saw_2 FROM TRAVEL_AGENT)) t1 ORDER BY saw_1 DESC
The filter should be this one WHERE TOPN("Non Revenue Facts".Rooms,10) <= 10)
I tried to apply it on each query, but doesn't give the expected results.
the filter should apply for both queries.
Any idea?
Thanks!

Hello User,
When you are trying to implement on one query the TOPN function,Are u getting any error? Or just it is not showing the results?
Do let me know the updates?
Thanks.

Similar Messages

  • How data update when there is two planning cubes in one aggregation level

    If we have two planning cubes and a multi-cube includes these two planning cubes.
    then we have the aggregation level defined based on this multi-cube.
    if the characteristics and key figures defined in aggregation level all are included in these two planning cubes. When we plan the data with plan query based on this aggregation level, which plan cube will be updated with plan data, or both of them?

    HI Wang,
    yes as Bindu said you need to restrict the layout based on the infoprovider.
    Lets assume that we have a multi provider M1 and it has two planning cubes cube1 and cube1.
    in case u develop a layout for updating cube 1 give the restriction in the filter section as infoprovider = cube1.
    or the vice versa.
    Else ur layout must input values for both the cubes simultaneously, then in that case create two restricted KF with each having a restriction for cube1 and cube 2.
    so wen the user enters value for the first restricted KF it will get saved in cube1 and wen he enters value for the second  restricted KF it will gets saved in cube2.
    This is how it works. Guess this was useful to u.
    Regards.
    Shafi.

  • What are prerequisites for joining two essbase cubes

    Hi,
    Please explain us the could we able to join essbase cubes. What is the approach in three layers of the rpd. We are struggling since long to join two essbase cubes.
    Regards,
    Chandra kanth

    You can create a third cube and partition those two cubes. This will let you view both the cube from the third cube seamlessly.
    Please look this up.
    Oracle Essbase Database Administrator's Guide
    -Biraj

  • Is it possible share a FILTER bewteen two power pivot tables

    Hi All,
    I know in PowerPivot you can share a slicer between two tables but can you share a "Filter" between two tables. Workaround is to create a slicer but maybe there is a option
    thanks
    Sonny

    Hi Sonny,
    In your scenario, you want to apply one filter to all the Pivot table on one sheet, right? As Mohan Kumar said, currently it seems that we cannot apply one filter to all the Pivot tables on one sheet. Here is a similar thread, please see:
    http://social.msdn.microsoft.com/Forums/en-US/291570df-cce9-46f3-bf8e-ea755eec46c4/excel-2013-pivot-charts-with-ssas?forum=sqlanalysisservices
    If you have any concerns about this feature, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to improve it in the next SQL Server version. Your feedback is valuable
    for us to improve our products and increase the level of service provided.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • AWM Newbie Question: How to filter data loaded into cubes/dimensions?

    Hi,
    I am trying to filter the amount of data loaded into my dimensions in AWM (e.g., I only want to load like 1-2 years worth of data for development purposes). I can't seem to find a place in AWM where you can specify a WHERE clause...is there something else I must do to filter data?
    Thanks

    Hi there,
    Which release of Oracle OLAP are you using? 10g? 11g?
    You can use database views to filter your dimension and cube data and then map these in AWM
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Filter/Exclude two specific characteristics values

    Hi,
       I need to filter specific combination of two characteristic values. Example, I have two characteristics CH1 and CH2 with values
    CH1  CH2
    A         X
    B         Y
    C         Z
    My requirement is to filter the records only when CH1=A AND CH2=X. Other combination records (Example: CH1=A and CH2=Y; CH1=B and CH2=X) should be shown in the report.
    If I filter on CH1=A and CH2=X and exclude these values in Row/Filter/Free area, it is filtering out all records where CH1=A or CH1=X. In other words the combinations that I mentioned (Example: CH1=A and CH2=Y; CH1=B and CH2=X) are also getting filtered. But I need these records. How do I do this in Query Designer?
    Any help is appreciated.
    Thanks,
    Sridevi.

    Yes you are right actually, about conditions. Is it possible in your case to include a flag field in the infoprovider and populate it with a particular value (at the back end) for all records which contain combinations which you want to filter out? Then you can filter out this value of the flag in the query.

  • Combining Cubes

    Hi Gurus,
    I need to combine the cubes 0CATS_C01 & 0PS_C04 to generate and present reports by profit center, project definition and customer.
    0CATS_C01 - Time sheets Approved
    0PS_C04   - Project Systems
    We can't combine using multiproviders because, don't have common characteristics. These are the fields i am expecting to be displayed in the report.
    0NETWORK     Network
    0PROFIT_CTR     Profit Center
    0PROJECT     Project Definition
    0R_ACTIVITY     Activity Number
    0WBS_ELEMT     Work Breakdown Structure Element
    ZWORKITEM     Work items (Customized field)
    0CO_AREA     Controlling area
    0RECV_NETW     Receiver network
    Planned Logic
    The logic would need to use the network/activity to derive the wbs element,the customer user field is on the wbs, the wbs element can be used to determine the project definition, and then the profit center would be determined from the project definition.
    IT WOULD BE GREAT, YOU PEOPLE CAN PROVIDE SOME CLUES (As a starting point) TO GET THE SOLUTION..
    Thank you,
    Kumar

    Here is the two cubes,
    CUBE 1 - 0CATS_C01 - Time sheets Approved
    0NETWORK       Network
    0R_ACTIVITY    Activity Number
    ZWORKITEM      Work items (Customized field)
    CUBE 2 - 0PS_C04        Project Systems
    0NETWORK       Network
    0PROFIT_CTR    Profit Center
    0PROJECT       Project Definition
    0ACTIVITY      Activity Number
    0WBS_ELEMT     Work Breakdown Structure Element
    0CO_AREA       Controlling area
    0RECV_NETW     Receiver network
    As per you suggestion, can i add the WBS element in CUBE 1 and update that through update rules..
    I am not familiar/clear with the following point.
    "derivate it from network/activity in the update rules."
    Once i add the wbs element to the CUBE 1, could you tell me the steps to proceed...
    Thank you Oscar...I assigned the points

  • Filter problem in combined analysis

    Hi
    I have the following scenario
    i made one criteria1
    channel id ,sum(sales) with filter channelid=direct
    i made second criteria2
    channel id ,sum(sales) with filter channelid=indirect
    Then i combined all the two criteria with union all operator in combined analysis
    but i only got the result of second criteria.
    the combined query is taking the second query with filter.
    but i want the first query result also,pls help
    regards
    Obiee fan

    Did you try to extract the SQL from the union report and run it against the database to see if you are seeing the results that you want? This might be because of an in appropriate joins in the RPD. Just another thought, instead of creating two different reports and having filter on the same column in both reports, why do you not create one report and filter the criteria there? for ex: channel Id is equal to direct and in-direct? This would avoid all the extra work right?
    Regards,
    -Amith.

  • How to do Fragmentatiom of Two Essbase cubes.

    Hi
    How can we create a fragmentation on OBIEE taking data sources from 2 cubes? For example:
    I have two cubes basreg(current year) and basreg09(history) .Their is a minor change in cube structure for that reason they created a new cube for year 2010.
    I need to pull both cubes data inorder to show report result. Is their any method or way through which i can use both cubes in obiee in creating report.
    Regards
    Sandeep Artham

    Hi Everyone
    Please respond to this request. Help me out how to solve this issue.
    Thanks
    Sandeep

  • Reg Filter View in Combined Request OBIEE11g

    Hi,
         We have a requirement where we need to show the filter view in a combined request. Currently we have achieved the same but putting another request but the issue when the download of the request happens the filter view is not downloaded and it has to be downloaded separately. We are using OBIEE11g(11.1.1.6.9).
         Please advise if there is any workaround to achieve this functionality so that download of results and filter view can be achieved in one shot. Thanks.

    Dev,
    Not possible to use the filter view in union request.Try creating the filters with filter view as a separate request and add them to the dashboard.
    Rgds,
    Dpka

  • Month filter between two ranges based on user response inIDT

    Hi,
    I am working on SAP BO4.0.I have a requirement of creating a month filter on a date which will be between two ranges.The first range is the user response and the second range will be 6 months added to that user response.For eg:-If a user enters 1 as the response for month prompt then the date will be filtered between 1 and (1+6)=7.The database used is SAP HANA.
    Please let me know if further clarifications are required.
    Any help on this will be appreciated.
    Thanks in advance.

    Hi Riddhi ,
    afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
    Check below logic if it helps.
    For a requirement to run a report for  fiscal year starting date to last month if nothing selected .
    @Select(Time\Yr-Mth Key)  between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and   
    (case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM')  
    else  
    @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
    This is on Oracle Database.
    When you run webi report
    From Date : JUL 2013 (fiscal year start date)
    To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)

  • Filter view for combined request

    Hello!
    We have 12 requests combined to the single Answer's request using UNION. Each of these 12 requests has a filter. But when we try to display the filter view for the combined request, it says "Request contains no filters". Any ideas how to display the big "combined" filter?
    Thank you!

    I am assuming that the columns in each of your 12 individual queries are the same and you just have different combinations of filters to produce your final query. If so, try building this using one query and using the OR operand for each set of criteria that corresponds to the 12 different sets of filters. This way the filters will show up in Filter View.
    If the columns in the 12 queries are simply the same datatype (minimum requirement), but different, then how would the user know which filter set corresponds to which set of columns since the "final" query will have one name for each column? It would be confusing at best. The only thing I can think of is having 13 queries, 12 individual ones and the one "combined query."
    In your dashboard, display the "combined query" in the Compound Layout view in the usual manner. Underneath that query in the design mode of your dashboard. Add the 12 individual queries but only display the "Filter View" of each query.
    With just the combined query, nothing will display in Filter View as you surmised.

  • Using filter view in combined request.

    Hi,
    I want to see the filters used in a combined request in a filter view which I am unable to. Can anyone help me with this?
    Regards,
    Dev.

    Dev,
    Not possible to use the filter view in union request.Try creating the filters with filter view as a separate request and add them to the dashboard.
    Rgds,
    Dpka

  • Two Filter on Two dimensions without constraining the fact table

    Hi All,
    does anybody know how to avoid the fact constraint when creating a report with two filters on different dimensions?
    I have a big fact table with more than 10 Million rows. In the starmodel the is the dimension customer and products. I create a filter on the customer atrribute "Status" and choose the value "Active". Now I add the column "Product Type" from the dimension "Product" to the filter section. When I want to choose a value OBIEE executes a select statement within the fact table. So I have to wait very long to select a value. Is there any way to say OBIEE only to select the dimension table without joining the fact table?
    Thank you very much in Advance.
    Regards,
    Stefan

    Hi Stefan,
    Generally queries on the dimensions (across dimesions also) always go through a fact. In case, you would like the queries not be through fact table, but just the dimension tables right away, you can set up a separate subject area for them.
    You can create a separate subject area based on a dummy fact table to get these prompt values.
    Please refer to http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_parameter_prompt_subject_area for more details on this setup.
    Hope this helps.
    Thank you,
    Dhar

  • What can filter data in a cube ?

    I have the following problem.
    I have 2 cubes based on the same datasource view.
    When I browse a certain dimension (just the dimension), they show different records.
    In one of the cubes some records seem to be filtered out
    I assumed this was probably due to different relations between tables in both cubes, but the relations are exactly the same.  So my question what else could be the reason some records are being filtered in one of the cubes.
    (btw I didn't create these cubes I just inhereted them :-))

    Could be a bunch of things! Tis true that you need to check that the default measure is the same in both cubes. Make sure there's no calculated member in the calculation script of the cube with missing members doing any kind of filtering (via a scope
    statement).
    Check the dimension data tab (via visual studio or management studio) for the dimension in question to make sure there's no dynamic security filtering out some members (either dynamically via MDX) or explicitly (check all member check boxes are checked under
    list of allowed members).
    Are both cubes using the same conformed dimension! You don't have a scenario do you where there are two dimensions based on the same simension view in the datasource where one dimension has been processed and the other hasn't!!?
    'll keep thinking about this see what else I can come up with!

Maybe you are looking for

  • Recording audio on my mac

    Hi, As part of a course I am doing I need to carry out some interviews and I need them recorded so that I can transcribe them.  I've never done anything like this before and am not sure what software I can use.  I've tried Quick Time but it doesn't r

  • Latest Fx version won't download, getting error message. "pSVzV7gx.exe.part source file cannot be read.

    I have attempted to download the latest version of Fx. I get the message "pSVzV7gx.exe.part can't be downloaded because the source file could not be read".

  • Help with Album Covers...

    I have Albums of artists who's albums are explicit but when I download the album cover, it always selects the clean album cover. Is there a way for me to select which album cover I want?

  • Errors in Payroll log

    Hi SAP Experts we have applied new HRSPS and we are testing it in QA server.i have the following errors in the payroll log,please i request you to give me some suggestions.I have this error for a payroll area XX 1) STOP: Enhancement to variable key i

  • Why is Youtube not recognizing my Adobe Flash Player Add-On?

    I just did the auto update so that Firefox 17.0 was installed. Anyway, for whatever reason, Youtube only seems to notice that my Adobe Flash Player add-on exists when it wants to. At the moment, it's not recognizing it, so I can't play videos. I've h