Month Sorting at Universe Level

Hi All,
We have created a Universe on BEx query to develope an BO Explorer.
We are having Sorting problem with Fiscal Period values, which is in Character type.
So need some clarification on below queries..
Q: Can we change the Fiscal Period datatype from Character to Number?
I think it will give an error if we change the datatype
Q: Can we add preceding zeros for 1 to 9 months?
I used below MDX expression for testing purpose,
<EXPRESSION>IIF([0FISCPER3].[LEVEL01]="1",1,2)</EXPRESSION>
But it is always giving me the else part only.
If I replace the dimension with Measure then the above expression is working fine.
Q: Can we use Concatination Operator for adding preceeding zeros for periods 1 to 9?
Q: Can we apply any transformations on Dimenstion fields?
Environment details:
BO 4.1 SP3
UDT 4.1 SP3
Please advise me.
--Praveen G

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]

Similar Messages

  • 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]

  • 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

  • Select Sorting in prompt level

    I have below requirement from user.
    Prompts:     Loan Id
              Loan Type
              Sort by Account Number/Sale Type
    Basically when user run the report, it should prompt below three fields.
    Loan Id
    Loan Type
    Sort order with a drop down list which has values Account Number/ Sale Type.
    i.e., user should be able to select sort order he wants for both Account Number/ Sale Type before running the report at
    prompt level.
    Does anyone know the best way to accomplish this?.
    Thanks,
    ven
    Edited by: Ven Men on Jan 21, 2009 8:32 PM

    Hi Deb,
    Thanks for your reply. I need little more clarification from you regarding Ascending/Descending and group by.
    Please see my comments below.
    1) Created a prompt at the universe level where users can choose their sorting option, ie. Ascending or Descending.
        How did you create this. What I did is I created a derived table in Universe with below code.
       "Select distinct table.Account_Number from table order by 1". It just does only Ascending.
       Then I created a prompt, called Sort_Order, in designer as 
       '1'!=@Prompt('Sort_Order','A',{'Account_Number'},mono,Not_Persistent))
      It is not parsed with a Parsing Result as Parse failed: Exception: DBD, ORA-00903: invalid table     name   State: N/A
    Since I am not taking this value from database table, I went ahead and created this prompt and exported universe.
      What I understood from your point is I need to create two different prompts, once for Ascending and one for Descending. Please
      let me know if I am going wrong.
    2) In the WebI report, create two variables, one for Ascending and Descending. The formulas would be something like:
       cv_Ascending: if(userresponse("Sort order prompt text here")="Ascending";MyField)
       cv_Descending: if(userresponse("Sort order prompt text here")="Descending";MyField)
       I created variable as Sort_Act_Num =if(UserResponse("Sort_Order") = "Account_Number"; [Account Number]; 0).  This just sorts in Ascending order only and when I want to change it to descending, it is not working.
    3) Put the cv_Ascending variable in column one set to sort ascending and put cv_Descending variable in column two set to sort descending. (The column with the value that isn't selected is always null so it's sorted on nothing)
    4) Since you can't really "hide" columns in WebI, you have to fake it. Set the font color to white (or whatever color your background is) and the width to zero (0) - unfortunately, it won't let you set it to 0, it will default to .02. Turn off the borders. The columns will in effect be "hidden" and disappear.
    I've done the same thing with grouping, by creating a variable and using it as a section break. Works like a charm.
    For grouping, do I need to create any prompts or variables in designer level? Also in report level, is the code same as above to create variable for grouping.
    Please let me know..
    Thanks,
    Ven Men

  • 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

  • OpenDocument syntax with UserResponse  at universe level

    HI,
    Can any one tell me what is missing or wrong in the following syntax of Open Document. I am using this at the universe level with user response and two parameters.
    '<a href="../../opendoc/openDocument.jsp?sDocName=abc&sType=wid&sWindow=New&sRefresh=Y&lsSName:="UserResponse("Select Name:")l"&lsSID:='+dbo.EMPLOYEE ' ">'@Select(Employee Working days view\Employee_Name_ID)+'</a>'
    Thanks!!!!
    Bernard.

    Hi Bernard,
      UserResponse is for WEBI reports, in universe the formula is prompt.
      Where clause = <FILTER KEY=u201D[MyVar]u201D>
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT NAME="@Prompt('Hierarchy node values','A','Sales
    employee\LovHierNodeL03 Sales employeeBase',multi,constrained)"/>
    </CONDITION>
    </FILTER>
    I replace in your syntax the UserResponse for @Prompt
    '<a href="../../opendoc/openDocument.jsp?sDocName=abc&sType=wid&sWindow=New&sRefresh=Y&lsSName:="@Prompt('Select Name:','A',{'NAME1','NAME2','NAME3','NAMEn'},mono,constrained)]l"&lsSID:='+dbo.EMPLOYEE ' ">'@Select(Employee Working days view\Employee_Name_ID)+''
      This is an exaple of MDX for SAP BI, Choose a dimension among the different u201Ctimeu201D dimensions available in a SAP Netweaver infocube.
    0CAL@Prompt('CalendarLevel?','N',{'YEAR','QUARTER','MONTH','DAY'},mono,constrained).[[LEVEL01]]
    I hope this help you.
      Federico.
    Edited by: Federico Sperling on May 11, 2009 4:39 PM
    Edited by: Federico Sperling on May 11, 2009 4:39 PM

  • Select Sorting at prompt level

    Hi,
       How to select sorting parameter from prompt level?  I have followed the thread [Select Sorting in prompt level  |Re: Select Sorting in prompt level;. I got struck while creating " Prompt - Sort Order" object. How to do this?
    Regards,
    Malini.V

    Hi folks,
    I am a report designer and I use BOXI r2 sp4. After researching the boards, I asked my design team to create the Sort-Order prompt object at the universe level.
    From what I understood, they created it in an independent dervived table. I need to have it joined to another table that contains the "measures" but I don't know what kind of joins should be constructed.
    In the report, I'd like to use it for something like the following:
    >if(Prompt - Sort Order="Descending";cost of service)...
    I would greatly appreciate the advice of the SMEs on how to complete this requirement.
    Wannetta
    Edited by: Wannetta Thomas on May 18, 2009 7: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

  • 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

  • Need idea on how to implement this - repeating monthly data on day level

    Hi all, i had run into the following thing, this may soung easy, but i'm searching for the best solution:
    i have a dataset per the stores of the customer, the dataset is an asset count on the end of the specific month. I must not sum the data between two/N months.
    We they need to do several querries like
    sales/assets/day
    Sales/itemgroup/asset/day
    sales/salesperson/asset/day
    etc.
    My problem is that i have this data on a month&store level, but i need to provide a solution, so it could be handled as a "global" value on that, so they can query it "almost any ways".
    I don't really want to generate day/other level data based on this, so any tricks, how to repeat the data in all lines for that specific month on presentation/Business level?
    All ideas are welcome.
    Thanks&Regards,
    D
    Edited by: user8113564 on 2012.09.11. 4:52

    Sorry if I took this wrong but are you try to do level based measured
    Take the same physical column in the fact and have one aggregated at a month level and the other at a day level.
    If yes, make sure you build a date dimension hierarchy and mapped at the correct level to the fact. Then take your measure and correctly define them at the correct level, day, month etc
    This should sort it out

  • Universe level Prompts

    Hi,
    I was created Universe level Prompts like below.
    Example: Date Between @Prompt(Sysdate) and @Prompt(Sysdate-60)
    I was created one report by using Date object which is having prompts and in the report properties i have checked REFRESH ON OPEN.
    when i tried to open report, report is refreshing fine and giving data correctly when i click on refresh in prompt window by selecting the values.
    But i want the report to be opened and refreshed without asking prompt window to select the values. Because always iam selecting Current date (28-06-2010) and Current Date-60 (EX: 28-04-2010) values.
    Please help me out.
    Thanks in Advance
    SureshBabu

    Although there is always more than one way to skin a cat , I do not recommend to allow user to input the value. There will be format error or typo error that keep the report from returning data, or worse, return an error message.
    In the software development world, you should always have code to handle all possible situation. This is true in the report development world as well. You want to control every situation as much as possible. To avoid user error, the date prompt should always be an LOV (list of value). You can create LOV for daily dates, or weekly dates, or monthly dates, and so on.
    If your prompt should always start with today's date as the report ending date, you can still create an LOV that defaults to today's date. But this gives the user the flexibility to choose yesterday's date or last week's date as report ending date, just in case they want to. Then you can calculate a rolling 60 days (backward) without the unnecessary second prompt for the report starting date. That is the best way to handle date prompt.
    Hope this helps.

  • Current Month - Last 12 Months in OLAP Universe

    I need to create a conditional objects at OLAP Universe and use it in WEBI report to run for last 12 months from Current Month.
    We have exit variable for CM (Current Month). Can any one advise how to create the conditional object at Universe level to restrict always 12 months worth of data. I need to schedule the report and when ever it runs, it shouls pull only last 12months.
    Can I implement like  [0CALMONTH].CurrentMember - 12  , I need to get last 12 months. I need to do this only with Time dimension, I dont want to have any measure assosiated with just like in regular RDBMS definitions in Universe. 
    Thanks
    Pat
    Edited by: patnaik24 on Apr 12, 2010 10:50 PM

    Hi
    I would recommend to modify the existing customer exit variable so that it will restrict the data for the last 12 months. You can then create a prompt in your web intelligence report that limits additionally the data to the current month when necessary.
    Regards,
    Stratos

  • How to apply sorting for each level of a hierarchy?

    I'm using SSAS OLAP and I want to apply sorting of the levels of a hierarchy.
    I know that I can sort the whole hierarchy via ORDER function (I have some issues when I'm trying to apply DESC sorting
    on the whole hierarchy), but what I really want to achieve is sorting of a specific level. For example in the [Date].[Calendar] hierarchy (Adventure Works Cube), I want to have ASC sorting
    of years, DESC sorting of Quarter, ASC sorting
    of Months, etc. I do not want to break the hierarchy (using BASC or BDESC), I just need them sorted on the same level. Do you have an idea if this is possible at all?
    My idea is to sort the levels based on their key, not by the measure. For example if we have the following structure:
    -2009
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    -2010
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    I would like to be able to sort the data in the following order (DESC for years, ASC for Quarters, DESC for months):
    -2010
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May
    -2009
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May 
    Thanks in advance for your help!

    Hi Rosen,
    According to your description, you want to sort the different hierarchy members in different order, right? Generally SQL Server Analysis Services doesn't provide a way to sort dimension members in Descending order. SSAS provides only Ascending order. We
    can achieve this sort functionality by using a simple trick. However, the order is used for all the members of different hierarchy under this dimension. So I'm afraid that your requirement cannot be achieved. 
    Reference:Sort Dimension Members in DESCending order
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • 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

  • 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

Maybe you are looking for

  • App shows in Updates tab in App Store, but app page reports installed

    I've only noticed this since iOS 5, so I'm going to assume there is a bug around here somewhere. First noticed it when using the Store button from news stand. So the problem is. I load up app store, tap the Updates button in the tab bar. Up comes app

  • Get the data from a dbase file - .dbf.

    Hello all - good morning working on Sunday :(. I am needing to get the data from old application which run the dbase program. Need to automatique the data getting. If you have any idea, please tell to me. Thanks to you, Nóra.

  • Importing projects into iMovie '11

    Hi. I've been trying the last couple of days to get my old projects, wich i made on my iMac in iMovie '08, inro iMovie '11 on my MacBook Pro. I've tried to use the "Import iMovie HD-Project" function, but i can't mark the files. I've tried to jut ope

  • Can't send mail with WiFi on-ok with only 3G running

    Using AT&T 3G network, Time Warner RoadRunner via Airport Express. I can download ok with both wifi and 3G running. But when I try to send, the msg just sits in th Outbox. IPhone 4 with latest OS. I'm using MS Entourage on my iMac as POP server.  I c

  • I have lost my Outlook contacts. How do I get them back.

    I have lost my contacts on my PC in Outlook. I can see them on my iPad. I would like to get them back on my PC. I think I may have removed iCloud from the PC and I can't see anything on the iCloud from the PC. Please help.