Combining 2 BEx queries into 1 for 2 WebI reports for different 0CALYEAR

Hi all,
I have the following requirement in BEx Query designer:
I have two queries with 0CALYEAR infoobject in each.
One query shows me the data of last 5 years and the other does not have any such condition, it shows me full data.
I need to build a combined query based on these 2 queries.
This combined query shall be used for 2 WebI reports:
-     1 report showing the user, data for last 5 years
-     2nd report showing full data
Is it possible to handle this, without giving any date selection prompt for the user on the WebI report.
If so, please let me know how.
Thanks and Regards,
Srilakshmi

You have many options available. You can use structures and/or cells in  your single query to present one set of data for "5 years" and one set of data for "Forever". You can simply create the query using selection columns to limit one column to 5 years and one data to 'full data'.
However... I always strongly advise my users to never, ever, ever create a query for 'everything'. You have no idea what the future will hold in terms of data volume. Creating an unlimited query will only produce performance issues and sadness. Users NEVER actually need 'all the data'. They just think they do. It's part of your job to keep them from creating requirements that they will regret later on.

Similar Messages

  • How to combine several regex queries into a script?

    Hi there,
    is it possible to combine several regex queries into a javascipt? I export the text from a database with custom tags and the regex queries perform text AND character style replacements.
    example
    Let's say my exported text is the following
    "I have a <tag_bold>very big text</tag_bold> that includes a lot of different character styles, such as <tag_bold>bold</tag_bold>, <tag_italic>italic</tag_italic>, <tag_bold>bold with some <tag_bold_underline>underlined words</tag_bold_underline></tag_bold>,
    or ever words with different <tag_size-2>text size</tag_size-2>"
    The result I want is
    "I have a very big text that includes a lot of different character styles, such as bold, italic,
    bold with some underlined words, or ever words with different text size"
    Notice that all the tags open and close in the same paragraph and that there are nested tag pairs in some cases. So i execute my queries (more than 20) from the outer pair to the inner, that is:
    <tag_bold>...</tag_bold>
    <tag_italic>...</tag_italic>
    <tag_size-2>...</tag_size-2>
    <tag_bold_underline>...</tag_bold_underline>
    Thanks in advance for your help
    dps

    Hi Shonky,
    thank you for your answer. It seems that it is very close to the solution.
    1) I see now that my question was not clear enough.
    In the text that is included between the tags, I want to apply a Character Style I have define in the character style palette of InDesign CS3.
    That style can contain a lot of options, such as font family, size, style or color changes and is different for each tag.
    2) I tested the function with my tags:
    function my_replace (tag_bold)
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.findWhat = '<' + 'tag_bold' + '>' + '(.+?)</' + 'tag_bold' + '>';                     // here is the name i use in the regex tag
    app.changeGrepPreferences.changeTo = '$1';
    app.changeGrepPreferences.fontStyle = 'tag_bold';                                //here is the name of the Character Style I have define in InDesign
    app.activeDocument.changeGrep();
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    result: nothing happens
    3) Using in the script only the body of the function and running it, it highlights the right words with that pink color and shows that the Style of the text is "tag_bold", which is not available in the font family I use (Minion Pro).
    I think that the function needs a modification in the line "app.changeGrepPreferences.fontStyle = 'tag_bold';", especially the "fontStyle" attribute, but I don't know what it is. I'm not a javascript expert and maybe I don't know the right way to use this function with InDesign. I read some books about InDesign Scripting and Regular expressions, but  I didn't found all the answers I need as the one above or how I can run all the queries in one script (this is necessery because of the number and the order of scripts, to avoid mistakes).
    Thanks
    dps

  • Combining 2 spatial queries into 1

    Hi there. I want to merge two different spatial queries both of which return a single aspect of what I need. The first query returns the distinct group feature ids of all those geometries falling within a specified tolerance of a particular point, i.e. each geometry belongs to one feature id type:
    select distinct a2.cfcc from GEOMETRY_MAP.GEOM_POINT$_TABLE a1,
    attribute_map.landmark_table a2 where SDO_WITHIN_DISTANCE
    (location, (MDSYS.SDO_GEOMETRY(2001, 8265, MDSYS.SDO_POINT_TYPE(-104.9,39.9,null),NULL, NULL)), 'DISTANCE = 10000')='TRUE'
    and a1.land = a2.land order by cfcc;
    The following results are returned (one for each feature id) e.g. D43 is the id for schools but many schools may have fallen within the specified distance:
    CFCC
    D43
    D44
    D61
    D65
    The second query returns the feature ids of geometries AND their distances from the specified point and looks as follows:
    select distinct a2.cfcc, sdo_geom.sdo_distance(location, b.pgeom, 0.005) distance from GEOMETRY_MAP.GEOM_POINT$_TABLE a1, attribute_map.landmark_table a2, (select MDSYS.SDO_GEOMETRY(2001,8265,MDSYS.SDO_POINT_TYPE(-104.9,39.9,null), NULL, NULL) pgeom from dual)b where a1.land = a2.land and SDO_WITHIN_DISTANCE (location, b.pgeom, 'DISTANCE = 10000')='TRUE' order by cfcc, distance;
    The results of this query are:
    CFCC DISTANCE
    D43 4025.459
    D43 5585.05361
    D43 5589.70435
    D61 7770.4209
    D65 6223.59763
    D65 7929.03858
    As you can see the second query returns not just the feature id but the associated distance of each individual feature of that type. What I would like to do is to merge the two result sets so that only the closest individual feature of a particular type and its distance from the input point is returned, i.e. I only need the closest school as oppose to all the closest schools. Any ideas? Thanks a lot, Joe

    Hi Richard. Thnaks for your reply. I should have mentioned that more than one feature type is returned, i.e. not just schools, and so ROWNUM = 1 would not work in this scenario. Any other ideas. Cheers, Joe

  • How to combine below 4 queries into a single query?

    SELECT COUNT(*) AS NORMAL_PASS
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =1)
    SELECT COUNT(*) AS NORMAL_FAIL
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =2)
    SELECT COUNT(*) AS REPEAT_PASS
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =1)
    SELECT COUNT(*) AS REPEAT_FAIL
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =2)

    Are you looking for the below:
    SELECT COUNT(*) as Cnt, 'NORMAL_PASS' as [Type]
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =1)
    Union All
    SELECT COUNT(*) , 'NORMAL_FAIL'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =1 AND TESTFLAG =2)
    Union All
    SELECT COUNT(*) , 'REPEAT_PASS'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =1)
    Union All
    SELECT COUNT(*) , 'REPEAT_FAIL'
    FROM (
    SELECT MAINSERNO
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556' AND TESTMODE =2 AND TESTFLAG =2)
    Or
    SELECT MAINSERNO,Count(Case when TESTMODE =1 AND TESTFLAG =1 Then 1 Else NULL End) as 'Normal_Pass',
    Count(Case when TESTMODE =1 AND TESTFLAG =2 Then 1 Else NULL End) as 'Normal_Fail',
    Count(Case when TESTMODE =2 AND TESTFLAG =1 Then 1 Else NULL End) as 'Repeat_Pass',
    Count(Case when TESTMODE =2 AND TESTFLAG =2 Then 1 Else NULL End) as 'Repeat_Pass'
    FROM SGSTUDENT.PPL_PRODUCT_TESTID2
    WHERE (MONO = '5954556')

  • Getting BEx query header data into Xcelsius for line chart Category Labels?

    Hello - Is it possible to get header data from BEx queries into Xcelsius so they can be used for Category Labels in a line chart?
    We have a BEx query that displays 16 weeks of shipment trends by column and text variables are used to display the respective date selection for each of the weeks in the query header but When connecting QaaWs to Xcelsius, the header row does not get displayed.
    When using LiveOffice, the header row seems to come thru with the correct dates for each of the weeks but if you are stacking more than one connection than you will get an extra header row for each connection.
    Are there any tricks to hide a header row in a LiveOffice document?
    Is there anyway to display the header row from QaaWs in Xcelsius?
    Any other work arounds?
    Thanks,
    Derek

    Derek,
    Below are my inputs...
    -->Using QAAWS you will not be able to get the header data, so you will have to maintain header data manually in Xcelsius (Spreadsheet).
    -->Using Live office you will be able to get the header data, and if you are using multiple live office connections, then you need to use cell reference formulas and format the spreadsheet (Xcelsius) as you require.
    -Anil

  • Can I create one single  crystal report using 2 bex queries

    HI all,
    I have 2 bex queries and has to develope a single crystal report .Is it possible???? If so, than how to connect two bex queries  and develope  one single crystal report.Any other option is also fine. I mean ....no need to use crystal..( I can go for one single webi..).But need to know the approach ...
    or else...can I create universe on 1 bex and other universe on other bex ..and go for one single webi report..
    Only problem is client is particular about one single report(either crystal or webi)
    if i go for webi ...I know we can use link universe option but I dont know whether it works fro OLAP environment.
    Please let me know if I can link OLAp universes and go for 1 single webi report.
    Any help is appreciated.
    Thanks in advance,
    Mahathi

    You can use either CR or WebI.
    In CR Designer create the report using the SAP toolbar (Create report from query) based on the 1st BEx query. Then use the Database expert (first entry in the Database menu) to add an additional connection to your 2nd BEx query (+Create new connection->SAP BW DX query). You can then join the results of the 2 different queries in the database expert also.. Please note that if you do NOT want to join the result sets, then it is more efficient to use subreports. Create two different CR reports, each based on one of the BEx queries and then use one of those as your main report and insert the other one into it as subreport. Once embedded you do not have to keep the separate .rpt file of your second report.
    For Webi you must build 2 universes, each based on one of your BEx queries. In your report you can add multiple queries based on different universes. You can join the results sets here by using the Merge dimensions button in the report editor area.
    Regards,
    Stratos
    PS; Keep in mind that joining a large number of rows at report level (either in CR or WebI) can cause performance problems. If this is your requirement, how many rows do you expect to get back from each individual query?

  • Help regarding integrating BEx queries onto portal

    Hi Friends,
    CAn anyone please help me in the steps and process required to follow for integrating the bex queries into portal.
    we have queries developed in bex analyser , the users want to access the reports via portal, for this to be acheived  do we need to integrate or develope the report templates in WAD and then integrate into portal or we can directly integrate these bex queries onto portal, your response and help is highly solicited, many thanks in advance!
    Regards
    Srinivas P
    Cell:09676771313

    Assuming you are using BW 7 objects. If you are satisfied with the formatting provided by the standard template (see transaction spro thread SAP Netweaver / business intelligence / settings for reporting and analysis / BEx Web / set standard web templates and read the accompanying documentation) you don't have to create individual templates.
    Simply create an iview of type Bex Web Application iView (sap netweaver 7 format) and specify "query=technical_name_of_query" as property value for the iview-property "Query-String Bex Web Application".
    If you want to use individual templates the property value would be at least "template=yourtemplate" (if queryname is provided as dataprovider in the wad-template) or "template=yourtemplate&query=yourquery".
    hth
    Klaus

  • SAP BW Bex Queries as Data source WIS 10901 Error while refreshing

    Hi,
       I have created a Web Intelligence report based on Universe upon SAP BEx queries.
      When I refresh the report, I get the following error:
      A database error occured. The database error text is: the supplied XML is not valid. [Measures].[4ASYKV5XU5T].(WIS 10901)
      Report was fine for a day. I started showing error from today.
    This is my first report and Universe based on SAP BEx queries. I do not have knowledge of SAP system as well.
    Please help.
    Nanda Kishore B

    Hey Nanda kishore B,
    It is because that Measure object definition changed @BEx.  Measures.4ASYKV5XU5T
    Can you check @BEx query for any latest changes??
    OR
    Go to Universe Designer:
    1. Open Universe
    2. View == Refresh Structure
    3. Can you see any updates now?? OK
    4. Save Universe
    5. Export it
    Now open the Report. It will work now, if all Objects are there at Bex query & Universe level.
    Along with this Do integrity check @Universe also before exporting.
    Gracias...!!
    Let's play with Aurora (BO XI 4.0)

  • How Many SAP BW BEx Queries can be embedded in a Universe

    Hi,
       I need to create 5 reports based on five different SAP BW BEx Queries. These are charts with 3- axes i.e. X,Y,Z.
       The example requirement is to create Line charts (Vertical Mixed Line Charts) and deatils are as follows: The chart should show CPU Utilization % for different servers (eg. Servers1,2,3,4,5) for each day in a particular month.
    Axes details:
    X- Axis - Date eg: 01 /09/2010 to 30/09/2010
    Y-Axis - CPU Utilisation Percent
    Z-Axis - Servers from 1 to 5
    The above detailed chart comes from a BEx Query . In this way there are four more BEx queries which should give four other charts.
    My query is: Is this possible to have five different BEx queries in a single Universe and Create 5 different charts(one chart from each BEx Query) in a single tab as in the current manual report.
    (All the five Line charts should be downloadable to a single sheet in Excel)
    One more, should I use Web intelligence only? Is any other tool that helps for this requirement.
    Please advise.
    Nanda Kishore.
    Edited by: Nanda Kishore B on Oct 13, 2010 4:17 PM

    Answers for your qns:
    Is this possible to have five different BEx queries in a single Universe ?? NO
    Create 5 different charts(one chart from each BEx Query) in a single tab as in the current manual report. ?? YES
    All the five Line charts should be downloadable to a single sheet in Excel ?? Possible- YES
    should I use Web intelligence only? *WebI * or  Data Federator
    Nanda Kishore,
    As you are in SAP BI, I suggest you to go with BO Universe==>>WebI or DataFederator.
    Solution for your problem:
    Sol1 : Why you are creating 5 BEx queries?? Is there any calculations or restrictions??
    YES, then Design 5 Universes for each BEx query.
    @ WebI Report: Develop report/chart based on Universe-1 and in BO query panel click on Add Query and do it for 4 other Universes.
    Save all Charts in single report. (After running second time query, it will prompt for 3 opt's: 1. Insert new report  2. Insert data with in the existing report 3. Indulge objects without creating new report )
    Here, go with Opt:2 or Opt3 or opt:1, no problem. And develop all Charts in single report by just dragging & dropping chart type and objects to it.
    Now your problem solved.
    Sol2: If no need of 5 BEx queries: Just drag all the Characteristics, Keyfigures and other what you want for Charting.
    @Designer: Design Universe on top of this BEx master query.
    @ Report : use this Universe and drag objects to 5 diff charts.
    Hope you got it.
    Thank You!!
    Sent from iPhone

  • Display combined results of 2 queries in 1 BEx Web Report.

    Dear Experts
    I tried to achieve this in just 1 BEx Query and found it difficult.
    Then I ended up creating 2 BEx Queries getting partial result and then amalgamating both in WAD. Still I think there should be a way to achieve what I need from just 1 BEx Query. Below is what I am trying to achieve:
    Query 1:
    Overall Result is the Total Number of Invoices restricted by 2 values.
    Credit Invoices is the Total Number of Invoices restricted by 1 value.
    % of Credits over Total Invoices = Credit Invoices / Overall Result
    Query 2:
    I have created a Condition on 'Reason Codes' to pick on the Top N (3 in this case) to display the values in %.
    All the CHARs and KEYFs are in the Rows Column only for both the Queries at the moment. When I am trying to amalgamate both into 1 BEx Query, the Query is throwing up errors and Execution is falling over. Another issue here is, there are 3 Reason Codes in the Third Place when I checked in ListCube and don't know what needs to be done. I am planning to discuss this with the Business Users if this should be extended to Top 5 instead of Top 3. Any ideas..!
    Users want to see the final report only in Web Analyzer as they do currently (so BEx Analyzer & Workbook are out of question). But I will be using Web Templates eventually to bring together 8 (it will be 9 if this report can't be done in 1 BEx Query) BEx Reports.
    How can I achieve this in just 1 BEx Query?
    Thanks for your time in advance.
    Kind regards,
    Chandu

    Hi Suman
    Thanks for your reply. When I am having both the parts of Query 1 & Query 2, the BEx Report is falling over when executed pointing to Condition.
    The second Query will pick the Top 3 Reason Codes for a particular Customer and then the individual Document Count for these 3 Reason Codes is divided by the Overall Result (Document Count) to give the individual Result across each row as %.
    Hope this is clear now. I tried Cell Definitions but didn't find it useful in this scenario, or I might be missing something. Can you please explain me in detail of how this can be done in 1 BEx Query using Cell Def?
    Please let me know if this can be achieved in Single BEx Query.
    Thanks,
    Chandu

  • How to combine  two user prompts into 1 single prompt from two Webi Queries

    Hi All,
    I developed a single webi report from two different queries on top of 2 BW OLAP universe .
    Here I have one user input prompt for each query so I want to combine them into one single user input promt which  should pass the user input value to both the Webi queries feeding data to the  single webi report.
    I found that the webi doc has auto checked merge dimensions enabled but it is not providing combined resluts from both the queries .
    Any inputs are greatlt appreciated.
    Thanks

    Stratos
    Firstly ,I appreciate your responses for my two questions.
    Both the prompts I am using are from the masterdata and they are similar.data types.I think the transactional data is not available in BW for one of the prompt ,hence I am not getting consistent data.
    Anyway will do further investigation in finding similarities and let you know.
    Thanks a lot

  • Need to improve performance for bex queries

    Dear Experts,
    Here we have bex queries buit on BW infoset, further infoset is buit on 2 dsos and 4 infoobjects.
    we have built secondary indices to the two dso assuming will improve performance, but still query execution time is very long.
    Could you suggest me on this.
    Thanks in advance,
    Mannu

    HI,
    Thanks for the repsonse.
    But as I have mentioned the infoset is based on DSOs and Infoobjects. So we could not perform on aggregates.
    in RSRT
    I have tried look in read mode of the query i.e. in 'x', which is also valid as qurey needs to fetch huge data.
    Could you pls look into other possible areas, in order to improve this.
    Thanks in advance,
    Mannu

  • Should I combine two 1Tb drives into one logical 2Tb drive or use one 1Tb drive for system/apps and move /users to the other 1Tb drive?  (I'd like ease of b/u too.)

    Hello,
    I have two 1Tb drives in my Mini, the first is full and the second one empty.  (I've been using the 2nd for Time Machine but the full source from dirve 1 soon has Time Machine complaining.)  I am contemplating whether to form one 2Tb logical drive from the two 1Tb drives or segregate their use, i.e. use the first 1Tb drive to hold the system and applications while moving the /users directory tree to the second 1Tb drive?
    I'm assuming both are straight forward to do accomplish but have nagging doubts about segregating drive usage, will moving the /users directory tree to the second 1Tb drive:
    impact apps which might otherwise expect to see particulat fies and directories in specific user related locations on the system drive;
    hinder backing up (by having to setup two separate Time Machine activities)?
    Finally, is there a better 3rt option?
    Thanks,

    Thanks and sorry Allan,
    The supplementary questions would arise should I NOT chose to combine the separate drives into a larger logical one but to keep one of the two drives for system/apps and the other for users data...  I assumed that segregating drive usagel like this might reult in issues with apps which might expect to see some user directories/files on the same drive as the system/apps.  similarly, with two physical drives, I'd be looking to managing separate Time Mchines.  (I have a few 2Tb pocket drives for backups.)
    Final question - if I do combine into a single logical drive (for system, apps, /users ... the whole lot), would I have any problem getting this logical one working from a Time Machine backup?  I ask that this backup was taken from the 1Tb physical drive and now I'd be looking to put it back onto a 2Tb logicl drive.
    Thanks,

  • Create a VC Model for BEx queries with Cell Editor

    Hello All,
    I am trying to create a VC Model for BEx queries with Cell Editor.
    BW Development Team has created a BEX query with complex restrictions and calculations using Cell Editor feature of BI-BEX.
    The query output in BEx analyzer is correct where all values are being calculated at each Cell level and being displayed.
    But, while creating VC model, system is not displaying the Cells.Thus, no VC Model can be created.
    I have executed below steps:
    1. Created a VC Model for BEx Query - ZQRY_XYZ
    2. Create Iview -> Create a dataService -> Provide a Table from the Output
    In the Column field system is not showing any of the Cells (present in Cell Editor)
    Please help me to solve this issue.
    Thanks,
    Siva

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

  • No. of Connections needed for creating universes from SAP BEx Queries

    Hello,
    I have 8 SAP BEx queries, my task to create to universe for all of these queries. I have created a datasource connection, my question here is can I use the same connection for all the queries by changing datasource connection and selecting the new query or is it suggestable to create 8 datasource connections in universe designer??
    please let me know if you need any more info.
    Your reply is highly appreciated.
    Thanks,
    Naresh

    HI,
    You need to create 8 connection for 8 BW queries.There is  one to one mapping in the universe.If you change the existing connection source then it will not work for earlier query.
    Other thing you can check like you have 8 queries then instead of creating 8 universe if possible then merge some queries in the single bw query and then create universe.
    Thanks,
    Amit

Maybe you are looking for

  • LOGIC EXPRESS 7 vs MOUNTAIN LION

    I've upgraded to Mountain Lion. My copy of Logic Express 7 will not open saying that Power pc apps are not supported. Fine with me, I just want to  update or upgrade to a version that runs under Mountain Lion. Impossible to find this information in t

  • Need Help: Identifying RBAC Job Roles

    Hi, My company has developed a solution that helps the deployment of RBAC in Enterprise User Administation systems, i.e., the kind of software that would allow you to centally control, and automate the provisioning of privileges to users across the e

  • BB10 Updates - What's the latest version now released?

    It's been 1 month since I used my Q10 With so many bugs & problems, my OS is still 10.1.0.2309 I keep checking for updates almost everynight. Is there any new updates than the one I currently have?

  • 10.4.8 - CPU usage

    This was noted on another Forum on another site and its only then I noticed it, so for what its worth - Anyone experiencing (on a plugged in unit) that since the upgrade, your MacBook is running its CPU at max? I have a base MacBook and pre-upgrade -

  • Can i still get the 10.5.8 upgrade from 10.3.9

    Can i still get the 10.5.8 upgrade from 10.3.9 and will this help preformance