Universe on Bex Query with Condition

Hi,
I'm working on creating a WebI version of a Bex Report. I've created a universe on top of the Bex Query and then a WebI report based on the Universe. The Bex Query contains 4 conditions. They allow optional filtering of two measures, Less Then or Equal and Greater Then or Equal. The conditions are applied at the employee level of the results set, so for example, if an employee's total sales is greater than 50 and the user enters 50 for the condition then none of that employee's rows of data will appear.
A single filter was created in teh Universe containing all four conditions. I had to update the syntax as they were all brought in using Equals instead of the GreaterorEqual and LessOrEqual. I also updated the filter key to use the @Select and the correct dimension.
In the WebI report, only the two using LessOrEqual are functional. The two conditions that utilize GreaterOrEqual will only remove individual rows, not the enter set of rows for that employee. I've set the aggregation to sum instead of Database Delegated for the two affected measures.
If anyone has any input on how to get the GreaterOrEqual conditions functioning properly, or a workaround that will remove all rows for an employee when their sales are not above a cert number, it would be greatly appreciated.
Thanks,
Jeff

Also here is the syntax for one of the filters that is not functioning properly.
<OPTIONAL><FILTER KEY="@Select(Total Quantity of Adjustments\Total Quantity of Adjustments)"><CONDITION OPERATORCONDITION="GreaterOrEqual"><CONSTANT CAPTION="@Prompt('Minimum Quantity of Adjustments','N',,mono,free)"/></CONDITION></FILTER></OPTIONAL>

Similar Messages

  • SubStr function in Universe on BEx Query

    Hi SAP BO experts,
    We have a universe based on SAP BEx Query with an object  "WBS Element",  a 24 Character field from which we need to resolve certain sections as different objects for reporting purpose.  One of the objects required is first 8 chars (WBS Project No.)  Following code is used in object definition. 
    <EXPRESSION>Substr(@Select(WBS Element\WBS Element), 1, 8)</EXPRESSION>
    Parsing is OK at universe level.
    Webi query without "WBS Project No" is running OK but when "WBS Project No" is used, I get an error - invalid MDX command (WIS 10901).
    What is the correct syntax?  Any input will be appreciated.
    Thanks in advance.
    Venkat

    You can-not return characteristics via <EXPRESSION> tag.
    In fact right now it is not possible to do substring and similar operations. You can only create objects which returns numeric
    value.
    Regards,
    Rohit

  • Performance of APD with source as 'Query with conditions'

    Hi,
    I have a question regarding the performance of an APD query with conditions when it is run in the background.
    I have an infocube with 80 million records.I have a query to find Top 15 (Condition In query) Customers per territory.
    With the help of an APD Query (Source) i wanted to populate the details (customer category , etc) of the Top 15 Customers into a DSO (Target)
    Right now it takes 6 minutes to run the query in web.
    I wanted to know how feasible it is to use an APD (run in backgrnd) to dump the results of the BEx query (which has conditions Top 15) into DSO.
    Also , what other options do i have ?
    Appreciate your answers.
    Regards

    Thomas thanks for the response.  I have checked the file on the app server and found that the lines with more than 512 characters are being truncated after 512 characters.  Basis team is not aware of any such limits on the app server.  I am sure few on the forum would have extracted data to a file on the application server using APD.  Please note that the file extraction to the client workstation is working as expected (posts lines more than 512 characters).

  • Report on BEx query with 2 structures (one in rows and one in columns)

    Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
    Ok, I found samr problem in another thread. Sorry.
    Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PM

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • Sql query with conditions and calculations???

    Hi,
    how I can build a query with conditions and calculations?
    E.g. I've got this table
    Start          | End     |     Working Place     |     Mandatory
    01-JAN-13 | 11-JAN-13 |     Office           |          1
    14-JAN-13 | 25-JAN-13 |     Home Office      |     0
    04-MRZ-13| 15-MRZ-13 |     Office           |          0
    11-FEB-13 | 22-FEB-13 |     Office           |          1
    Now if column working place=Office and column mandatory=0
    the new column "price" has to calculate: (End-Start)* $25.00
    and if working place=Office and column mandatory=1
    the "price" column has to calculate: (End-Start)* $20.60
    else $0.00
    I tried it with the case statement but I didn't know how
    to calculate my values and display it to the virtual column "price".
    Something like
    case
    when Working_Place = 'Office' and Mandatory=1
         then ...
    else '0.00'
    end as PRICE
    Or is it not possible?
    Edited by: DB2000 on 12.03.2013 05:09

    Use CASE:
    select  start_dt,
            end_dt,
            working_place,
            mandatory,
            case
              when working_place = 'Office' and mandatory = 0 then (end_dt - start_dt) * 25
              when working_place = 'Office' and mandatory = 1 then (end_dt - start_dt) * 20.60
              else 0
            end price
      from  tbl
    START_DT  END_DT    WORKING_PLA  MANDATORY      PRICE
    01-JAN-13 11-JAN-13 Office               1        206
    14-JAN-13 25-JAN-13 Home Office          0          0
    04-MAR-13 15-MAR-13 Office               0        275
    11-FEB-13 22-FEB-13 Office               1      226.6
    SQL> SY.

  • Universe on BEX query - Measures Question !!

    Hello All,
    I am building a Universe on BEx Query.
    We have the following environment:
    SAP BOE XI 3.1 SP2 FIX Pack 2.5
    Integration KIT SP2 FIX PACK 2.5
    SAP BW 701 Level 6
    I see that in the BEX query the KF have technical names as "ZZRKF_Amount".
    But, when this query is brought into Universe, I see the tech names as
    [[4J922TWKO24NHTROOEY3WXK72]].[[4J922URARWJHKBXHBR7H15F26]]
    I would like to see this as [[MEASURE]].[[ZZRKF_Amount]].
    Does anyone know how to do it?
    Your help & time is appreciated.
    Thanks

    Hi,
    In the Universe Designer, select Tools ->options. In the OLAP tab, there is option to select as generate technical names as details.
    I guess this may help you.
    If still facing the same issue, then follow the user guide from the below link:
    http://help.sap.com/
    -Noor.

  • Refreshing Hierarchy node variable in BEx query with change in hierarchy

    Hi all,
    We have used a hierarchy node variable on Characteristic ZECCSAC (user-defined) and used it in a BEx query with default value set to a particular node value. Upto this, it is working fine.
    The hierarchy used in the query, with the hierarchy node variable, was later changed ( and in future it can undergo changes ). Since the number of records in the hierarchy are changing, the nodenames of the hierarchy nodes are changing. But the hier node variable default value is still set to the earlier nodename for that node description. So at runtime it is giving an error "ECCS Account Number is invalid"!
    Can anyone suggest how to refresh a hierarchy node variable default value each time a query is run so that the latest nodename is always taken ?
    Quick reply will be appreciated.
    Thanks

    Hi,
    You get this with User exits.
    Thnaks

  • Drill Down BeX Query with hierarchy in WEBI

    Hi,
    I am using a Bex Query with Hierarchy in my WEBI report. Is it possible to drill down ? I am not able to use Scope of Analysis because it is disabled. I am very new to WEBI. Please help me out.
    Thanks in Advance.
    Lakshmi Mohan

    http://www.google.co.in/url?sa=t&rct=j&q=drill%20down%20bex%20query%20with%20hierarchy%20in%20webi%20%20%20&source=web&cd=2&ved=0CDQQFjAB&url=https%3A%2F%2Fcw.sdn.sap.com%2Fcw%2Fservlet%2FJiveServlet%2FpreviewBody%2F137316-102-1-277519%2FWeb%2520Intelligence%2520on%2520SAP%2520implementation%2520best%2520practices.pdf&ei=xofcTpSgF5DJrAeaxpiIBw&usg=AFQjCNHuwDIpvxciPKJyEdoz3GiVjRKgqA
    http://www.scribd.com/doc/62293080/40/Query-Drill-for-hierarchies

  • BO Universe on BeX Query in Lumira

    Hi All,
    I have a requirement of accessing a BeX query in Lumira and do visualizations on it. As Lumira is not capable of accessing BeX query directly, I think, I would need to create a universe on InfoCube, for that BeX query, and then consume that universe in Lumira. Thereafter, I would need to create different datasets for different queries.
    Now, I have two questions:
    1. Is this approach correct? Is there any other more efficient methos than this?
    2. Can I create a universe on BeX query directly? Is it possible?
    When I'm following first approach (universe on InfoCube using IDT) and trying to consume that universe in Lumira, I am getting below error:
    And when I'm following 2nd approach (universe on BeX query using UDT), I am not able to view that .unv in List of Available universes in Lumira.
    Please help.
    Thanks Much,
    Purnima

    Explanation on the error you faced:
    The data acquisition of medium-large, large, and very large datasets from UNV or UNX universes is not supported on default installations of both SAP BusinessObjects Business Intelligence platforms 4.0 and 4.1.
    It is recommended for customers that want to acquire such datasets to install a SAP BusinessObjects Business Intelligence platform (SAP BIP) server dedicated to SAP Lumira and significantly increase the value of the Maximum Character Stream Size of the Web Intelligence Processing Server on that particular server. Note that increasing this value on a running SAP BIP server can impact the memory consumption and performance of any BI clients tool running on that installation, particularly Web Intelligence. While this practice is not formally discouraged, we advise customers implementing this solution that they might face memory consumption increases and longer document data refreshes so they will need to monitor the SAP BIP server's behavior adequately to control the impacts.
    Can you try to place some filters to limit the data volume retrieved?
    Best regards
    Antoine

  • BEx query with variant from ABAP

    Hello,
    I'm looking for possibility to start BEx query with variant (variant is created with tx RSRT) from ABAP. There are some funktion modules, which start queries (launch excel), for example RSAH_LAUNCH_EXCEL or RSSEM_QUERY_LAUNCH, but they are ending with short dump, when there are variables in the query. Is there any standard FM, which starts the query with variant or accepts parameters?
    regards,
    Krzysztof

    Hi,
    the short dump was my fault, I've passed query name instead of genuniid to the RSAH_LAUNCH_EXCEL.
    What I'm trying to do is to I'll start BEx query with parameters (I don't want to get selection-screen from the query, I need to fill it from ABAP).
    Here is my example, which is not working.
    DATA:
      lv_query(30) TYPE c,
      lv_genuniid  TYPE rsrrepdir-genuniid,
      ls_var       TYPE rrx_var,
      lt_var       TYPE TABLE OF rrx_var.
    lv_query = 'YB_MAKLER_DETAIL'.
    CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
      EXPORTING
        input  = lv_query
      IMPORTING
        output = lv_genuniid.
    IF lv_genuniid = ''.
      WRITE: / 'There is no Query', lv_query.
    ELSE.
      ls_var-vnam = 'YS_MKLE'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '0000005100'.
      APPEND ls_var TO lt_var.
      ls_var-vnam = 'YS_VTGJ'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '1999'.
      APPEND ls_var TO lt_var.
      CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
        EXPORTING
          i_genuniid                       = lv_genuniid
          I_OBJVERS                        = 'A'
          i_hide_sapgui                    = 'X'
        TABLES
          I_T_VAR                          = lt_var.
    ENDIF.
    If parameter 'i_hide_sapgui' is empty, I'm getting empty selection-screen,
    If parameter 'i_hide_sapgui' equals 'X' I'm getting selection-screen filled with values, which were used last time manualy, not with values from the internal table 'lt_var'.
    Do you have any idea how to pass parameters to the query with this function module?
    Regards,
    Krzysztof

  • BEx query with keyfigure rank in row, chars and other keyfigures in columns

    Hi All,
        I have a BEx query with Plant and Region in rows and two keyfigures(% and rank calculation) in the column. Now my requirement is to display rank in the first column, plant and % cal. in the next columns in query output.
    Query ouput should look like :
    rank plant  %
    1     XYZ    63.00
      2    ABC   76.94 and soon.
    Is any way possible to achieve this and if yes can anyone explain in detail with steps, I apprecaite your help with points.
    Thanks
    Eric.

    Hi  Jerome,
       Thanks for quick response, is there any alternate way like customer exits or etc. This is my requirement and I need to provide the users the solution. I appreciate your valuable time.
    Regards
    Eric

  • Refresh BEx-Query with variant

    Dear all,
    i have a question about refreshing Queries with variants.
    To refresh a BEx-Query (BW3.5) in a Workbook with VBA is no problem.
    For example:
    Run "SAPBEX.XLA!SAPBEXrefresh", False, myRange
    But is there a possibilty to refresh a BEx-Query with a variant (also with VBA)?
    My target is to create a VBA-Tool:
    1 which user can select a single Query and the available variant.
    2 Then push a VBA-Button
    3 After the selection no Variable-Screen will pop-up
       and the refreshing is completed.
    Thanks all

    Hi Ashok,
    refreshing Queries automatically on Workbook open is standard...
    What i need is to refresh a Query with variant (saved variable-values for a query e.g. the name of the variant is "ZMYVARIABLES").
    The user should not select an existing variant (ZMYVARIABLES)
    manually with Shift+F5 (Get Variant) on the Query-Variable POPUP-Screen.
    What i need is a codefragment which implement that all.
    Pseudo code:
    Sub RefreshQuery(QueryID As String, Variantname As String)
    End Sub
    Thanks,
    Erol

  • MDX for a BEx query with a characteristic structure

    Hi,
    I have a BEx query with a characteristic structure in the rows.
    Material     Structure     Measure1
    a-Material     a-Structure     ....
    a-Material     b-Structure     ....
    b-Material     a-Structure     ....
    b-Material     b-Structure     ....
    I am looking to run the query via MDX. Is that possible? If yes, how should be the mdx statement.
    Thank you in advance for your help.
    Regards,
    McGreen

    Hi,
    it will work, so long as you also include the Structure object in the WebI Query panel as a results objects.
    the SELECT syntax is much the same as a 'normal' MDX statement.
    the quickest way to tell them appart is how the Measures are called. normally, it starts:   SELECT [MEASURE.ABC123] NONEMPTY(CROSSJOIN( ...   ) )
    however, when you have a Structure, all the declarations from the start of the statement looks like : SELECT [ABC123.ABC123] NONEMPTY(CROSSJOIN( ...   ) )
    i hope this helps.
    Regards,
    H

  • Sub query with conditions

    Hi,
    Is it possible to run a sub query with conditions? I keep receiving an error 'Registration Data' -2006.
    For example, here is a simplified query which gives the error...
    SELECT T1.CardCode FROM
    SELECT T0.CardCode FROM OCRD T0 WHERE T0.CardCode = '[%0]'
    ) T1
    FOR BROWSE
    Thanks for any help,
    Robin

    SBO SQL-parser sometimes kidding. My solution is to use temptables/views/storedprocedures.
    It's faster then "unbugging" parser <b>:)</b>
    in your case that can be like the following:
    SELECT T0.CardCode INTO #temp FROM OCRD T0 WHERE T0.CardCode = N'[%0]'
    SELECT qq.CardCode FROM #temp qq FOR BROWSE
    BTW: registration data error is usially says us about %-argument reason

  • SAP BEx query's Conditions and Exceptions on BO Universe

    We are planning to create Conditions and Exception on SAP BEx Query. And provide this query to BO team for their development
    Could anyone tell me in what form will these BEx objects be visible in BO-Universe ....as detail objects...or query filters and a.s.o?
    Will they be Invisible? If invisible will they be atleast applied to BO-Universe.
    For e,g: I know that, BEx Query filter will be applied to the underlying query but are not visible in OLAP universe.
    - Anil

    Hi,
    Conditions and Excpetions are not supported by OLAP BAPI tehrefore they are not generated in universes or consumed at query level.
    You have to create conditions on measures in universes (except top end bottom exceptions that are not supported).
    Exceptions need to be done at cliient level (Webi, XCelsius, etc).
    I BOE CI 4.0 conditions will be supporte by the Semantic Layer direct acces with BICS but exceptions will continue to be created at client level.
    Didier

Maybe you are looking for

  • My phone is in recovery mode but its not recognized by my computer

    I could not get in to my phone because I forgot my Passcode. I was finally able to get my iPhone in recovery mode but it is not recognize my device. I know the USB cord works because I also have an iTouch and it connects. I've also tried to connect o

  • Moving extra content to another hard drive

    Hi, Not sure if this is the right area to ask this, but here goes. I recently upgraded to FCS2, and I could have sworn that I had selected an external HDD I had attached and switched on. When I look at the directory where I said for the files to go i

  • Firefox crashes when I try to print

    When I press the print key (Ctrl+P) and ask the printer to print, Firefox crashes. I am told "crash reporter is unable to submit a crash report. DETAILS: could not move crash dump." This is my sixth request. Each and every time I am hobbled by demand

  • Can't access my old emails

    Dear Madam or Sir, I can't access my old emails anymore. I use to have Outlook Express and contacted Microsoft. The old emails are still there but I can't access them. Microsoft support couldn't help me to get them back and told me to contact you. Ca

  • Oracle 11g - Network Configuration check

    Hi All, This is my first time here and I am a newbie to Linux and Oracle installation. I just finished installing Linux Enterprise version 5 ( provided by Oracle corp). At the time of installation I did not do any type of network configuration and le