Ascending Order of Objects at universe Level

Hi Techies.
I am working on BO 3.1 Designer SP5.
I have one Period (Month Year) object at universe level and I have arranged the order of object as Descending by editing the properties of the object.
and when I use this object in the Query Filter section and making it as a Mandatory prompt, the values are loading in a different way rather than descending order.
Please help me on this......
thanks in Advance...

Hi
If you want to sort the LOV’s, use the  LOV’s based on custom SQL option.
Please find the below sample code.
Sample Code
SELECT DISTINCT FIELD
FROM
TABLE
ORDER BY 1
And find the below link for more info.
http://scn.sap.com/community/semantic-layer/blog/2014/06/11/how-to-sort-the-list-of-values-in-the-prompts-screen

Similar Messages

  • How to Convert Date Object at Universe Level with out Timestamp

    Hi,
    I have a Object  called "PCREGISTERDATE" at universe where the data type is date .but the dates are coming in the following format:9/26/2007 9:48:40 PM but i want to show the date as with out time stamp.
    how can i create a object by at universelevel which shoul show only date with out Time Stamp.
    please help me on this ASAP.
    Thanks & Regards,
    Kumar

    Please try below date fucntion:
    select convert(varchar(10),getdate(),101)  - this is for sybase
    syntex will change based on your source database.
    Thanks
    Ponnarasu .K

  • Formula's at Universe level

    Hi All,
    I want to create objects at universe level for the following :
    Ver:- BOXIR2, Database is Oracle.
         Monthly averages for the last 12 months u2013 Balances for last 12 months are shown in the report. These are previous 12 months, starting from the month of the report date.
         Variance between last month and previous month u2013 This column will display the variance between two consecutive months. The optional attributes of FX variance can be used by the user in that case.
               Variance between last month and same month from previous year u2013 This is the difference in volume of balances for the last month of the current year and the same month of the previous year.
         Year-to-Date (YTD) average u2013 This is an aggregated average of balances up to the current month in the current year.
         Previous year average - This is an aggregated average of balances up to the current month, but for the previous year.
         Variance between YTD average and Full Year- previous year u2013 This is the difference between the balances YTD and the year ending December 31st of the previous year.
    Please contribute your inputs .
    Thankyou in advance
    Regards,
    Chaitanya

    Little hints to get you started.
    Monthly averages for the last 12 months u2013 Balances for last 12 months are shown in the report. These are previous 12 months, starting from the month of the report date.
    Avg(<columnName>)
    Where
    Date_dim.reportdate between add_months(<reportdate>, -12) and reportdate
    Year-to-Date (YTD) average u2013 This is an aggregated average of balances up to the current month in the current year.
    Avg(balance)
    where
    Date_dim.reportdate between add_months(<reportdate>, - extract(month from sysdate)) and reportdate
    Previous year average - This is an aggregated average of balances up to the current month, but for the previous year.
    Avg(balance)
    Where
    Date_dim.reportdate between add_months(add_months(<reportdate>, -12),-extract(month from add_months(<reportdate>, -12))) and reportdate
    --Kuldeep

  • Changing Prompt Order of Prompts defined at the universe level

    Hi All,
    I need to change the order of the prompts defined at the universe level.By default they appear in alphabetical order.
    Thanks,
    Shweta.

    Hi Shweta,
    If you are on XI R2 then you can try the following extended syntax for the prompt definition:
    @Prompt('Region', 'A', 'Class\Object Name', multi,free,,,User:0)
    @Prompt('Area', 'A', 'Class\Object Name', multi,free,,,User:1) ...etc
    Else there is no other way to sort the prompt in the desired order. Either you have to prefix the prompt text with numbers
    or alphabets.
    Regards,
    Rohit

  • To restrict a object to a particular Group at the Universe level

    Hi,
    I have a object which should be restricted only to a particular group at the universe level.So when i define the universe we have to have explicit security that will restrict access to this object information from reports and from ad-hoc queries.I should restrict the object only to the particular group by a role based security.
    Please help me out in this case.
    Thanks in advance,
    Madan

    Hi Madan,
    Please follow the below steps:
    (In Designer)
    1) Open Island Resort Marketing universe or any universe in Designer.
    2) Goto Tools -> Manage security -> Manage Access Restrictions.
    3) Click on New option - > Give the Restriction name - >click on Rows tab - > Click on Add button (New Row Restriction window comes) -> give table name For example:"Resort_Country" in the Table text box, under the Where Clause "Resort_Country.COUNTRY = @Prompt ('Which country?u2019,u2019 A',, MONO,FREE)"-> Click OK -> Click Ok.
    4) Click on Add user or group - >Select the user ->Ok.
    5) Click on Apply -> Click OK.
    6) Save the universe and export it into the repository.
    7) Cretae the new report (webi/deski) from the user the one who belongs from this group.
    Hope above steps will helps you.
    Regards,
    Deepti Bajpai

  • Ascending Order in Data Level

    Hi Friends,
    I have a table xxx and it has two columns col1 and col2 and below is the data for these columns.
    Col1 Col2
    111 5,6,9,2,1
    211 10,12,8,9
    311 6,7,8,1,2,3,4
    Below is the required output;
    Col1 Col2
    111 1,2,5,6,9
    211 8,9,10,12
    311 1,2,3,4,6,7,8
    I want the column level data in the ascending order. Please help me on this.
    Regards,
    Williams
    Edited by: Williams on Sep 24, 2012 7:11 PM

    Hi, Sankar,
    Here's one way:
    (1) Split each string into multiple rows, one row for each item in the delimited list. (This is how the data should be stored in the frist place.) See {message:id=10095021}
    (2) Use the analytic ROW_NUMEBR (or DENSE_RANK, depending on your requirements) to number the rows 1, 2, 3, ..., using "PARTITION BY col1" to get a separate set of numbers for each value of col1.
    (3) Use String Aggregation to combine the rows into one row per col1. See
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    If you get stuck, post your best attempt, along with a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible. Remove all tables and columns that play no role in this problem.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • Sorting at universe level

    Hello All,
    I would like to do sorting on time peroid objects(year,quarter,month,week)
    i can do it at report level using Ascending ,descending,custom sort
    but i would like do it at universe level only .
    i tried like this:
    List of values>>Year>>edit>>here i have set sorting on Year object as descending>>save n close>>then reexported the universe
    again tried to query in infoview >> but the data was not sorted in descending order
    Please help me in this issue
    Regards,
    Swetha

    Hi Ann, it is always helpful to have a dim_time table in your data mart where you have these 2 fields (among others):
    month_number     month_full_name
         1          January
         2         February
    and so on...
    Then you can put something like the following SQL in your derived table called "MONTH"....
    select distinct month_number, month_full_name
    from dim_time
    order by 1
    Create a dimension object, says, "month_lov". Go the Properties tab, click "Edit", then "SQL". In the query panel, put in something like this...
    select month.month_full_name
    from
    (select distinct month_number, month_full_name
    from dim_time
    order by 1) month
    Make sure you check "Do not generate SQL before running", then click "OK" and "Save and Close". Then create a condition object to point to this LOV. You should be able to get the months listed in the real order.
    Hope this helps.
    If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]

  • How To Capture The Inputs given for a Filter Defined at Universe Level

    Hi ,
    I have a conditional filter defined at Universe level
    Wen this is used for Running Query using web Intelligence, It is asking for a prompt. That is cool and fine
    Now my Question is that , I was unable to capture the prompt value being passed while running the Query .
    For this object I am passing the values at universe Designer(3.1 SP5)
    I would like to capture those prompts, I am not getting the same when I use UserResponse Function
    Please Help me on this
    Thanks in Advance

    Hi
    To capture the prompts values entered at query run time.
    =UserResponse( "Prompt Text") Like ("Enter Values for Sales ID")
    Will give the prompt entered value.
    =PromptSummary()
    Will give the list of prompts entered at Query run time.
    Pleaas find the below link.
    http://bobjblog.wordpress.com/tag/userresponse/
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp5_ffc_en.pdf

  • Order of Object Creation

    I need to know what order various objects are created and processed. An example will be most helpful.
    class A {
    A() { myFunc();    }
    public void myFunc() {}
    class B extends A {
    class innerB {       public void funcInnerB() { ... do some work ...       } }
    public void myFunc() {       someVar.funcInnerB();   }
    innerB someVar = new innerB();
    When class B is instantiated the following happens [assuming I coded my example properly :) ]
    1. The default B constructor is called.
    2. It calls the A constructor.
    3. The method myFunc in class B is called from A constructor.
    4. a NULL Pointer error occurs because someVar has appearantly not yet been assigned to the new innerB object.
    This is my problem, why is someVar not being created immediately? I don't know if this problem is universal, but in my particular application, it is happening this way. (I can't post the actual code, because it is way, way too long.)
    I tried using an initialization block in class B to assign someVar, but the same problem occurs.
    Here's my current workaround:
    in class B:
    public void myFunc() {  if (someVar == null) { someVar = new innerB() }
    someVar.funcInnerB(); }
    But I am hoping there is a better solution and I am worried about when I may run into this situation. So, I am hoping there is a definitive guide to the order everything is created.
    Thanks in advance.

    It's not a good idea to call non-final methods from a non-final class because of exactly what you found. The NullPointerException happens because of the order of processing that you described - by the time you get to B.myFunc(), the B members have not been initialized. First, the superclass is fully initialized. All members are set to their initial values, then the constructor is executed. After the superclass constructor finishes, then the subclass members are initialized, and any further subclass constructor processing occurs.

  • How to Define a Required Prompt at the Universe Level

    Apologies if this has already been covered somewhere... I searched and can't find the topic covered yet.
    I've been under the impression for a long time that one could configure a Universe such that it would require a prompt on a dimension whenever that Universe was run, regardless of the tool or report.  For example, you could configure an eFashion Universe such that any report or analysis built against it (Webi, Crustal, Design Studio, Lumira, PowerQuery... whatever) would trigger a prompt, perhaps on Year or State.  The idea is that at the Universe you could prevent developers and self-service users from building "Select All" reports.
    However, even with the use of LOV flags in the Data Foundation and Business Layer (e.g. "Force users to filter values before use"), I can't figure out how to make it work.
    So, I have two questions...
    Is it possible to include required prompts/filters in the Universe definition?
    If so, how?
    Thanks,
    Josh

    Hi...
    Is it possible to include required prompts/filters in the Universe definition?
    Yes..it’s possible to include prompts at universe level,
    If all the reports are using same prompts, you can create at universe level and use same prompt in all the reports. You can define mandatory or optional prompt.
    Following is the syntax for the function.
    @Prompt('message','type',[lov],Mono|Multi,free|constrained|primary_key,persistent|not_persistent,[default_values])
    The following are simple examples of @Prompt syntax.
    Minimal use of the @Prompt function:
    @Prompt('Displayed text ','A',,,)
    Using the @Prompt with a LOV without default values:
    @Prompt('Displayed text ','A',{'Paris','London','Madrid'},,)
    Using the @Prompt with a LOV and one default value:
    @Prompt('Displayed text ','A',{'Paris','London','Madrid'},,,,{'Paris'})
    2 : If so, how?
    In the condition's SELECT or WHERE field, right-click at the place in the expression where you wantto add a prompt and
              select @Prompt editor from the shortcut menu.
    In the Message box, type the message that you want the user to see.
    Select Keep last value selected if you want the prompt to propose the values used for the previousreport.When the report is run for the first time, the default values (if any) are proposed.
    Select Allow multiple selection if the user can enter or select more than one value.
    Set the Selection mode. For Free selection, the user can enter any allowed value. For Constrainedselection, the user must select a value from a list of values. For Primary key, the user selects theobject name, but the object's primary key is used by the query. You can only use the Primary keysetting if Index Awareness is set.
    Note:
    When the Constrained option is selected and a List of Values is not specified, the corresponding Tab color turns to red, OK button is disabled, and on moving the cursor over the highlighted tab, the contextual tooltip displays a message indicating how to rectify the problem.
    Set the Value type for the selection mode: Alphanumeric, Number, or Date.
    If you have selected Primary key for the selection mode, set the Key type: Alphanumeric, Number,or Date.
    If you are using multiple selection, define the list of values. Do one of the following: you can type orimport a list of values, or you can select a universe object.
    Click the Default Values tab and define any default values. When you allow multiple selection, youcan set more than one default value.
    Click OK.
    The "@Prompt" editor closes and the prompt expression is visible in the condition's statement in the "Edit Properties" pane.
    Validate the prompt and click Parse.When the syntax is
    http://business-objects-xi.blogspot.in/2009/06/prompt.html

  • Controlling data access at universe level

    Hi,
    I had a doubt in universe regarding the implementation of security.
    Existing process: We had a portal called flex (intranet site)which the BO report has been integrated and  for opening the report the name of report was clicked (hyperlink) 
    This report should show the data specific to the user profile logged into the portal.
    Now if we want to restrict the data at universe level for each individual users accessing the report in portal our idea is to create a dervied table (which contains a list of userid's and project id's)in universe so that who ever logged into the portal and clicks on report he will see the data only related to profile
    For example: The scenario would be a manager residing in a region need to see the list of projects which he is assigned to but not all of them.
    Could you please let me know how can implement at universe. Kindly let me know if you need any futher information.
    Thanks,
    Eswar

    Another way to do this is: (a) in your universe create a table that has a list of user names a long with their BOUSER id; (b) associate that list with fact tables or d imensions in the database, either using joins or by using a where clause as a filter or in an object definition using the syntax @variable(bouser); below is an exerpt from BO Designer guide.
    Example:
    @Variable
    In the universe for a human resources database, you have an object called
    Employee name. You want to restrict the returned data for Employee name
    to the values authorized in the database for each user. This would allow
    you to control what employee information each user is allowed to see. This
    information is defined by their database profile.
    You insert the @Variable function in the WHERE clause as follows:
    Employees.Employee_Name = @Variable('BOUSER')
    When the object Employee name is used in a query, the data is returned

  • Group at Universe level

    Hi,
    How do I group on a field at the Universe level?  I created a derived table in the Universe and need to group by a database (SQL) field.  I added ORDER BY clause and the field name at the end of my select and it throws errors when I parse.  Please advise.  Thanks in advance for the help!

    What is the exact error you get?     Exception: DBD, [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.State:42000
    Which kind of database do you fetch data from? SQL DB
    Is it possible to post the SQL statement of the derived table here? I changed the table, database name, and field names as an example, and the select parses ok - it's when I added the Order by clause.
    SELECT TestTable1.number, TestTable1.open_date,
    TestTable1.completed_date,
    TestTable1.level,
    TestTable1.group,
    TestTable1.description,
    TestTable1.region,
    TestTable2.type,
    TestTable2.update_date,
    TestTable2.update_desc,
    TestTable2.ID
    FROM   Test.dbo.TestTable2 TestTable2 INNER JOIN Test.dbo.TestTable1 TestTable1 ON TestTable2.number=TestTable1.number
    WHERE
    (TestTable2.update_date>=DATEADD(mm,DATEDIFF(mm,0,getdate())-1,0))  AND TestTable2.update_date<DATEADD(mm,0,DATEADD(mm,DATEDIFF(mm,0,getdate()),0))

  • Filter at universe level is not working

    Hi all,
    I am using a filter at Universe level to exclude a list of customers and a couple of customers within the date range.
    This works ok for a list of customers, but customers in the date range are not excluded.
    Here is my filter in Universe:
    @Select(Order Items\Customer No) NOT IN ('10114', '10116', '10119', '10178', '11111', '11118', '11119', '11142', '11150', '11152')
    AND
    (@Select(Order Items\Request Date) BETWEEN  to_date('01/10/2011','mm/dd/yyyy') AND to_date('01/15/2011','mm/dd/yyyy') AND @Select(Order Items\Customer No) NOT IN ('11061','11062'))
    Can somebody please let me know ehat am I doing wronng?
    Regards,
    RR

    In this query you are saying the next:
    1. You don't want the users that are in the first list
    2. But you want the users whose date range is between 1/10/2011 and 1/15/2011
    Is this what you want or you really dont want the users between that range?
    Perhaps you should try this:
    AND
    (@Select(Order Items\Request Date) NOT BETWEEN  to_date('01/10/2011','mm/dd/yyyy') AND to_date('01/15/2011','mm/dd/yyyy') AND @Select(Order Items\Customer No) NOT IN ('11061','11062'))
    Edited by: PadawanGirl on Feb 4, 2011 10:48 PM
    Edited by: PadawanGirl on Feb 4, 2011 10:49 PM

  • Parsing Issue at Universe Level

    Dear All,
    I am a BO Consultant, for the past few months we (our report developing team) were trying to create new objects at the Universe level (based on requirement) so that we can use the same in the report level, but unfortunately we failed to do the same.
    Actually we are struggling in this case. Every time when we try to create an object with function specified at the Universe level its coming up with errors like this expression is not parsed etc.
    We are using,
    1. SAP BI 7.0 with DB2
    2. SAP BO XI 3.1 Edge
    3. Universe Version 12.3.0 and Build 601
    Universe on top of BW Cubes have any limitations??????????
    Please help us with a solution.
    Regards,
    Arun Krishnan.G
    SAP BO Consultant

    Hi,
    It all depends what your syntax is, and what you are trying to do.
    Also, I would not trust the Parser too much in OLAP BAPI universes.. 
    Here is an SDN guide about OLAP universes and some examples of XML markup required for predefined filters for MDX scenarios.
    [http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb?quicklink=index&overridelayout=true]
    Regards,
    H

  • DateTime issue at Universe Level

    Hello Experts,
    We have stored date in database as datetime format. In Universe, we have created object on this date. But we have to keep type of this objet as u2018Dateu2019 as there is no datetime  object type available  in universe.
    When we dragged this objet in webi, we found that we are getting only date but no timestamp. We can manually do this using report formatting. However we would like to achive this at universe level.
    My question is : What should be the type of object in universe for getting datetime at report level ?
    We found that, if we keep objet type as char, we may get the desired results. However is there any other alternative?
    Regards,
    Chinmay

    Hi,
    Use the Function Convert to convert into datetime format in the Universe object level.
    Syntax:
    convert(datetime,field_name,101)
    Regards,
    Shiva Kumar G.C

Maybe you are looking for

  • 1600 x 900 resolution

    Hey all- I have a roughly 3 year old black MacBook. I just bought a Dell monitor with a native res of 1600x900, and my MacBook will not give me that option for a resolution. I am connected via VGA, using an adaptor from MonoPrice (non-Apple, but it w

  • Can't find out my iCloud backup

    Hi everyone, Last month I changed my iPhone and I was able to use my iCloud backup to configure the new device. Last week my iPhone was stolen and I activated the option find my iPhone with no results. So i decided to get a new iPhone and while I was

  • Notes Multiply alarmingly - from 10 Notes to 300,000

    Mail has been really problematic foe me recently (refuses to Quit unless ForceQuit, hogs up all CPU, is sluggish in general and clicking on Notes and ToDos crashes Mail.) I have tried various remedies (rebuilt Mailboxes, trashed Preferences, stopped

  • Security issues for Flash cookies, Local Shared Objects, .sol files

    Good day, all I just found out a bit about flash cookies from Wikipedia and http://epic.org/privacy/cookies/flash.html I was wondering if there was a security issue with these (as opposed to privacy issues)? It seems easy enough to prevent them being

  • [N97] How to use Phone Microphone in BT Mode

    Hello all, Does anyone know  if its possible to use the phone microphone while the phone is connected to my bluetooth carkit?