How to use Topcount in an OLAP universe

Hi,
I want to create an object who gives me the best 10 Values back.
I try to use topcount with the following code:
<EXPRESSION>
TOPCOUNT([Measures].[OINV INVOICE NET VALUE], 10,)
</EXPRESSION>
But i get no data back.
The help in the universe designer says the following:
TOPCOUNT("Set", "Count"[, "Numeric Expression"] )
returns a specified number of items from the topmost members of a set
Which function has the "Numeric Expression", and what are possible expressions?
Thanks for helping.
Kind Regards
Jens

Hi Jens,
take a look at this document, which has several examples:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
Ingo

Similar Messages

  • Can we Implement YTD using MDX syntax in olap universe.

    Hi,
    I am trying to implement YTD prompt from universe level. Can any one suggest how can i implement it using MDX syntax in olap universe.
    Regards,
    Anil Kumar.

    Hi,
    In MDX, you need to generate the technical name to have you expression valid.
    Moreover the correct syntax is: SUM(MTD(member),measure)
    So in your case the prompt must be constrained on the technical name and cannot be free, the correct syntax is:
    <EXPRESSION> SUM(MTD(@Prompt('YYYYMM','A','Cal. year / month\L01 Cal. year / month',mono,primary_key)),
    @(Select(Key Figures\Total Variance)) </EXPRESSION>
    Last, the result will be not really significant because you are asking for a MTD with a Year-Month as time member: the result will be the measure value for the selected month.
    In your case you need to have a time series function for an upper level like YTD or QTD. If you want to use MTD, the the time member selected would be at a lowest level, such as week or day.
    Regards
    Didier

  • BO XI 3.1 Sp2 OLAP Universe - MDX Function

    Hi all,
    How i tuse MDX Functions in OLAP Universe ?
    Iam getting parse ok in Universe . getting error in while creating webi report

    Hi... i´ve seen that this is a typical question but i think it´s still not solved... I need to use the sentence showed but despite using measures using another dimension. I mean i want to create a new dimension which tell me if it has values or not so i want to create another one and use the function IIF and the sentence more or less like that:
    IIF(ISEMPTY(.[D7LE0EX5IUP5U83WHERK13M48]), 1, 0)</EXPRESSION> - it works
    May i use this sentence with dimension/characteristic values or it only works for measures ? Some idea of how to achieve what i´m looking for ?
    Thanks in advance.
    SAP BW 7.02 SP06
    BO XI 3.1 FP 3.5
    J.Casas

  • How to use string functions (substr or ltrim or replace)  in OLAP universe.

    cost element (0COSTELMNT) - 10 CHAR
    Controlling area (0CO_AREA) - 4 CHAR
    [0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value]
    cOST ELEMENT is compounded/prefixed with Controlling Area. I just want to see cost element without conrolling area in the BO report.
    Currenlty BO unierse is build based on bex query. I am able to suppress the compounding object in bex query by chaning controlling area to 'No display'. But still BO Webi report displaying compounded values in the report. (Bex report works as expected)
    eg: Current display in reort.
    controlling area/cost element.
    AB00/2222
    AB00/2223
    AB00/2224
    Wanted like  below:
    2222
    2223
    2224
    I think by using string fucntions (substring, ltrim or  replace etc.), I can get the required result. But I am having issues with syntax. I have used like below.
    substr(0COSTELMNT ; 5 ; 10)
    substr(0COSTELMNT; 5 ; Length(0COSTELMNT)-5)
    substr(0COSTELMNT; Pos(0COSTELMNT;"/")+1;10)
    ltrim(0COSTELMNT,'AB00/')
    What is the syntax for substring/replace functions in OLAP universe. Technical name of cost element in OLAP  universe is [0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value].
    I want to fix this at universe level not at report level as  i am using cost element in filter/variable section of the report. Please provide me syntax for above example.

    Hi,
    In fact SAP BW MDX supports limited string manipulation and only with NAME and UNIQUENAME attributes.
    Here are some samples that you can use in universes:
    MID([0COSTELMNT].currentmember.NAME,1,4)
    LEFT([0COSTELMNT].currentmember.NAME,2)
    RIGHT([0COSTELMNT].currentmember.NAME,3)
    MID([0COSTELMNT].currentmember.UNIQUENAME ,1,4)
    LEFT([0COSTELMNT].currentmember.UNIQUENAME ,2)
    RIGHT([0COSTELMNT].currentmember.UNIQUENAME ,3)
    Didier

  • How to use parallel period function in olap universe?

    Hi all
    I want to create a ratio with the measure of the last year with the function parallel period in a universe olap. What is the syntaxis for do this ? Thanks

    Hi Didier.
    Thanks for reply
    I have a olap universe and i create a new object with this sentence:
    <EXPRESSION>ParallelPeriod([0CALMONTH].[LEVEL01],1,[0CALMONTH].CurrentMember,(@Select(Ratios\Salidas stk tot caj)))</EXPRESSION>
    When run a query with Rich Client this error appears: (spanish)
    Se produjo un error en la base de datos. El texto de error de la base de datos es: La consulta MDX WITH MEMBER [Measures].[D29E6BC1-5AC0-4245-86,DA,DB,41,D6,CF,B3,52] AS ' ParallelPeriod([0CALMONTH].[LEVEL01],1,[0CALMONTH].CurrentMember,([Measures].[4GPT8D1S01T3MR5EZ57C98LJC])) '  SELECT  { [Measures].[D29E6BC1-5AC0-4245-86,DA,DB,41,D6,CF,B3,52] }  ON COLUMNS , NON EMPTY CROSSJOIN(  { [0PLANT].[0021] } ,  { [0CALMONTH].[201002] }  ) ON ROWS FROM [ZIC_MP01/ZIC_Q01]  no pudo ejecutarse con el error Error desconocido. (WIS 10901)
    What is wrong ??
    Thanks

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • How create filter in olap universe with MDX LIKE Function

    Hi all
    I need to create a filter in a olap universe with the LIKE MDX function.
    Problem:
    There is a dimension with account numbers whit 10 digits like this: 5683492703 and i need to create a filter whit all account numbers whit the number 7 in the sixth position in a olap universe.
    How to do this?
    Thanks all

    Try like this :
    <FILTER KEY="[Level Object Definition]">
         <CONDITION OPERATORCONDITION="Like">
              <CONSTANT CAPTION="_____7*"/>
         </CONDITION>
    </FILTER>
    Not sure if it is _ or ? to represent a single character. Try ? in place of _ if the above code doesn't work.
    Regards

  • How to use @variable(bouser) in Universe to get BOE userid in Xcelsius

    Dear Expert,
    I have request that need to display BOE userid to displayed in Dashboard using Xcelsius,
    after searching in Internet, i found that it can be done by using @variable(bouser) in an object in the Universe, and use the object in Qaaws, but i don't how to use it.
    already tried insert /* @variable('BOUSER') */ in END_SQL universe parameter, but still no luck.
    my question is :
    how to use @variable(bouser) in universe? and then my Xcelsius can display the BOE userid?
    thanks in advance for any answer.
    I Using SAP Integration KIT to create universe from Query BEX
    Luqman
    Edited by: luqman hakim on Jun 29, 2010 4:03 PM

    >
    Didier Mazoue wrote:
    > Hi,
    >
    > You are mentioning that you are using SAP Integration Kit.
    > Does it mean that the source you are targeting is SAP BW?
    >
    > If it is the case, this is unfortunately not supported.
    > SAP BW MDX does not support calculated expressions that return string or date: this is a limitation of SAP BW engine.
    > This is one of the reason why a lot of user exit are used to address these needs.
    >
    > Regards
    > Didier
    Didier Mazoue 
    yes, my Data source is SAP BW, and connected to BOE via SAP INT KIT.
    It's too bad that SAP doesn't support so simple requirement.
    you said : user exit 
    are used to address these needs.
    so there are possibility to solve my problem.
    would you give me the logic of user exit?  which part I should create the user exit
    I'm quiet familiar with user exit in BW
    thanks

  • How to use Relational OLAP?

    How to use and/or create Relational OLAP (ROLAP)? Any information will help... Thanks

    There are three ways to create OLAP metadata on a relational schema.
    1) OEM - You can use the Dimension and Cube wizards in Enterprise Manager (Administration Tab -> BI & OLAP link) to create the required additional metadata to enable OLAP queries against an existing relational schema. However, you cannot save the steps or resulting script to a SQL file for re-use. This is more a one-off method for quickly and easily creating OLAP metadata.
    2) OWB - A more scalable solution is to use Warehouse Builder. Even if you have an existing schema you can import the tables/views and then create new dimensions and cubes and map those tables to those objects. The deployment information can be saved to a script
    3) You can refer to the OLAP developers guide to help you manually create the SQL scripts to generate the CWM OLAP metadata against existing tables.
    Make sure you have all the required database patches in place:
    9i - at least 9.2.0.7
    10gR1 - at least 10.1.0.4
    10gR2 - at least 10.2.0.3
    Hope this helps
    Keith

  • OLAP universe cannot use SSO after Fix Pack 2.3

    hi
    our dev box can use OLAP universe with SSO authenticantion, after I apply FP2.3 this does not work any more
    and I get the following error: DBD UNABLE TO CONNECT SAP BW SERVER INCOMPLETE LOGON DATA,
    anyone encounter same issue
    thanks

    Hi Andreas Madsen
    I log a case with SAP, and they point me to the same SAP note.
    Basically what they trying to say is, once you install Xcelisius on the server, and applied SP2 and FP2.X you are stuffed.
    Since your error is only on your client, then you should consider removing all the BO software on your client and reinstall it agian from scratch.
    For me, I need to rebuild the whole server from ground up.
    I asked for a special fix, but was rejected
    I was advised to install Xcelsius and CR on server for troubleshooting purposes, but seem like this is really a bad idea now.

  • Diff Ways to Create OLAP Universe using BI/BW DataSource?

    Hi Experts,
    I konw there are two diff ways to create olap universe using BI/BW datasource.
    1. Uisng InfoCube
    2. Using BEx Query..
    so.. I need you help to know when we use InfoCube and When We use BEx Query.
    Can you please explain me  in details and give me some pros and cons using each connection ..if there is any documentations please provide me ...
    Thanks

    Hi sap mdm1980,
    The characteristic InfoProvider (0TCTIFPROV) refers to the technical name
    of an InfoProvider. In BI, queries can be created on an InfoProvider or an
    InfoProvider can be used for reporting.
    An InfoProvider is generic term for all the DataTargets and Virtual Providers
    (VirtualProvider or MultiProvider). An InfoProvider may or may not contain data.
    Infocube is type of an infoprovider
    An InfoCube describes (from an analysis point of view) a self-contained dataset,
    for example, for a business-orientated area. You analyze this dataset in a BEx query.
    An InfoCube is a set of relational tables arranged according to the star schema:
    A large fact table in the middle surrounded by several dimension tables.
    InfoCubes are filled with data from one or more InfoSources or other InfoProviders.
    They are available as InfoProviders for analysis and reporting purposes.
    The data is stored physically in an InfoCube
    Regards
    Praveen

  • Setting a Prompt value for KeyDate in WebI on SAP OLAP universe

    I have a webi report which has as its dataprovider a query against an SAP olap universe against a BEx query which has the KeyDate parameter exposed.
    Iu2019d like to get at this prompt from the SDK.
    In infoview if I run the report it pulls up the keydate prompt (a special dialogue which seems to be implemented as part of the connection definition) - this prior to pulling up the full prompts dialogue and showing all universe based @prompt filters.  In WebI I can see the prompt value entered using =UserResponse("dp.kd.value") .   So it does seem to see the keydate as a prompt of some sorts.
    I've got a little jsp that allows me to set prompts very nicely (and packeaged as a jar in the CMC that schedules ok as well) but when I put it against a report with a key date u201Cpromptu201D it just wonu2019t see it.  When I call a getCount() as below it returns 0.
    oDocumentInstance.getDataProviders().generateQueries();     
    Prompts oPrompts = oDocumentInstance.getPrompts();
    out.print(oPrompts.getCount());
    This is all in an attempt to get around the scheduler limitations of key date which would give me two queries, two universes and two reportsu2026 one report for scheduling (using a customer exit to set key date) and a second for user refresh  (with a prompted key date)  which would all be rather messey to say the least!
    So any cunning ideas on how I can get hold of this key date thingymebob in the SDK?
    (ps. "Fixed in V4" would be nice to hear as an aside to thisu2026 In playing with the ramp up Iu2019ve got the same issues however so Iu2019m not to hopefull )
    Thanks!
    Jeremy.

    Hi,
    First I think you have to create a support ticket because normally the object in the universe must be generated with data data type nad it is not the case.
    We are awere of some limitations with data types.
    Secondly, if you want to have users entering date you have to specify date in the prompt data type like this:
    <OPTIONAL><FILTER KEY="[PERIOD SD].[DB Full Date].[DB Full Date]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="@Prompt('Enter Date ','D',,mono,free)"></CONSTANT></CONDITION></FILTER></OPTIONAL>
    Regards
    Didier

  • OLAP Universes - Based on BEx Query - Month and Previous Month Functions

    Hi,
      I created a Universe based on SAP BEx queries and I like to create a filter so that I use in Web Intelligence report to run for "Previous Month" data always. There are "Date" filelds in BEx Query(No Month info only date data). I have no knowledge of SAP BEx Queries and new to OLAP universes. Could you help.
    How to create filter that show Previous Month.
    Nanda Kishore
    Edited by: Nanda Kishore B on Dec 26, 2010 6:15 AM

    The easiest way  (but NOT the most efficient one) is to create a local variable (Dimension) in your report with the following code:
    =if (Month(CurrentDate())=1 AND Month([[MyDate]])=12 AND Year([[MyDate]])=(Year(CurrentDate())-1)) OR (Month(CurrentDate())>1 AND   Month([[MyDate]])=(Month(CurrentDate())-1)) then 1 else 0
    where MyDate is the field from your query containing the data information
    Activate the report filter area in your report design panel by pressing the Report filter icon and drag and drop your variable there and apply it to the entire report. Filter value 1 and you will get the data for the previous month.
    Keep in mind that this approach is not optimal especially if you do have many rows of data delivered to your WebI report because filtering takes place only AFTER the data is retrieved. The Best practice here is to work with BEx variables.
    How many rows of data does your WebI report normally fetches?
    Regards,
    Stratos

  • Edit an object's select statement of OLAP universe SAP BW

    Hi everybody
    I am new at working with Olap Universes BW, and I have to edit one universe SAP BW, I don't know if I can to use substring function on a select statement, for example  substring([0D_DIV].[LEVEL01],5,5), I try to use this function but I have a error,
    Could you help me? I need to returns part of a string, is correct to do it on a universe or is better to do at BW.

    Hi,
    First of all I recommend you read the documentation that gives you information about OLAP universes and especially SAP BW universes.
    I also recommend to download documents related to SAP universes deployment, administration and customization:
    [OLAP Universes - how to samples and recommendations |https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPUniverses-howtosamplesand+recommendations]
    [SAP Integration |https://wiki.wdf.sap.corp/wiki/display/globalregions/SAP+Integration]
    Now you can customize expression using MDX in OLAP universes. MDX expressions must be enclosed with <EXPRESSION></EXPRESSION> XML tags.
    Unfortunately SAP BW MDX does not support calculations that return string or date values.
    The onlyway to return string is to use NAME or UNOIQUENAME attribute.
    See answers I already in the forum: [Forum answer |Re: Create new dimension on top of SAP BW data]
    Regards
    Didier

  • Behavior of BEx Query Attributes for webi on OLAP universe: Including 1 attr to Query!

    My webi report is based on an OLAP universe (.unv) which is based on a BEx Query.   I need an attribute field from an info object.  But when I include that attribute in my BEx query in free characteristics pane……   Every single attribute in that info object comes over to the universe.
    Is this the expected behavior?
    How can I ensure only the attribute wanted comes over and not all the attributes of the info-object.
    I am using BO 4.0SP4.

    Attribute level restriction of an InfoObject is not possible in BEX Query and the same reflects in the Universe.
    You can use attributes of an infoObject which you wanted on WEBI Report Level.
    ---Raji. S

Maybe you are looking for

  • Why do all the windows open when i start my mac book pro up

    After closing all the windows on my macbook pro , i shut the computer down, on re-starting the computer it opens all the wuindows up again any ideas why ?

  • Table for Delivery number & Quality inspection lot number.

    Hi Gurus, In which table, Delivery Number & Quality inspection lot number  are related? Reg. Amol

  • QM & MRP table

    hi all,           for some process problem. we remove 01 MIC from material master. that time purchase time department alrady rasied PO against the manterial. now when we are doing gr. material is showing in quality inspection lotin MMBE but in QA32 i

  • Adding field in Old Jsp based self registration application

    Hi, I have a requirement of addition of some fields and link in Self registartion on the login page. As we could not add any link in the self registartion field so i have deactivated the Web dynpro application.Now the Login page displays the old jsp

  • Cannot download JDev  10g (10.1.3) - Developer Preview

    I go through all the pages : login / privacy / yara...yara...yara and on: http://www.oracle.com/technology/software/products/jdev/htdocs/soft1013java.html I try to click on http://download.oracle.com/otn/java/jdeveloper/1013/jdevjavabase1013.zip but