Cal Month Sorting in BO Explorer

Hi All,
I have created an Information space on an universe which is based on BEx query.
I have a cal month object used in the info space.
My problem here is i am not able to sort it in the standard order (from jan to dec) but it is sorting either based on the value or alphabetically.
is there any way we can sort the month in the format from Apr to Dec ?
Plase help me out.
Thanks in advance,
Ravi.

Hi Alex
I could not see the option to change the facet type. I am creating the information space on top of universe created in UDT with the source as BW. In the universe I gave the Calendar Year as Char. And while creating Information Space I gave the dimension as Months(Jan.. Dec).
But it still did not help me.
Where can I change the type for the facet that I have used.
(Attached is the image of selecting the dimension of the facet, in Configure Informaton Space)

Similar Messages

  • Customer exit in BEx to derive Cal month

    hey all,
    i need to write  a customer exit, to derive  prev Cal Month value from the given Calday. I have written the code but it derives the current cal month instead of previous. any suggestions ?
    case I_VNAM.
      when 'ZCU_CMTH' .
        if i_step = 2.
          loop at i_t_var_range into l_s_var
                  where vnam = 'ZCCCD'.
            CMTH_YR = l_s_var-low.
            l_s_range-low = CMTH_YR(6).
            CMTH = CMTH_YR+4(2).
            CMTH = CMTH - 1.
            L_S_RANGE-LOW+4(2) = CMTH.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'EQ'.
            write :/ l_s_var.
            append l_s_range to e_t_range.
          endloop.
        endif.
           clear l_s_range.
    endcase.
    thanks
    Laura.

    Hi,
    Try the following logic to get the previous year month based on calday:
    data :CMTH_YR (4),
             cmth_mn(2).
    case I_VNAM.
    when 'ZCU_CMTH' .
    if i_step = 2.
    loop at i_t_var_range into l_s_var
    where vnam = 'ZCCCD'.
    if l_s_var-low+4(2) eq '01'.
      CMTH_YR = l_s_var-low+0(4) - 1 .
      concatenate CMTH_YR  '12' into L_S_RANGE-LOW.
    else.
      cmth_mn =  l_s_var-low+4(2) - 1 .
      concatenate l_s_var-low+0(4)  cmth_mn into L_S_RANGE-LOW.
    endif.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endloop.
    endif.
    clear l_s_range.
    endcase.
    hope it works...
    regards,r
    raju

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

  • Bex Query report error in cal month /year column

    Hi Experts,
    We have a bex query on virtual provider with only one column in it i.e 'cal year / month'( This virtual provider ahs been created from planning area). I'm having the problem with this column.
    In the excel output of this report the cal year /month is displaying as follows.
    01/0000 02/0000 03/0000 04/0000 05/0000 06/0000 07/0000 08/0000 09/0000 08/2008 09/2008 10/2008 11/2008 12/2008 01/2009 02/2009 03/2009 04/2009 05/2009 03/2010 04/2010 05/2010 06/2010 07/2010 08/2010 09/2010 10/2010 11/2010 12/2010 01/2011 02/2011 03/2011 04/2011 05/2011 06/2011 07/2011 08/2011 09/2011 10/2011 11/2011 12/2011 01/2012 02/2012 03/2012 04/2012 05/2012 06/2012 07/2012 08/2012
    I'm not getting why the first 9 columns its displaying as 01/0000 02/0000 03/0000 04/0000 05/0000 06/0000 07/0000 08/0000 09/0000 .
    It should display as
    08/2008 09/2008 10/2008 11/2008 12/2008 01/2009 02/2009 03/2009 04/2009 05/2009
    06/2009 07/2009 08/2009 09/2009 10/2009 11/2009 12/2009 01/2010 02/2010 03/2010 04/2010 05/2010 06/2010 07/2010 08/2010 09/2010 10/2010 11/2010 12/2010 01/2011 02/2011 03/2011 04/2011 05/2011 06/2011 07/2011 08/2011 09/2011 10/2011 11/2011 12/2011 01/2012 02/2012 03/2012 04/2012 05/2012 06/2012 07/2012 08/2012
    My data source is fetching the correct data including this cal year/ month.
    Thanks in advance for your help.
    Regards,
    Brahma Reddy

    I assume you are running Crystal for enterprise 4.0 SP02 Patch 08 !!
    According to OSS note 1651521 , This issue has been fixed in FP3 which is planned to be released in first quarter of 2012 !!!!!! ouch !!!!! 
    I am facing same issue , Pls let me know if you already solved it.
    Regards,
    Miraj Desai.
    Edited by: Anne Howard on Nov 29, 2011 6:58 AM

  • Month Sort Order Problem in Time Dimension(Essbase with Obiee)?

    Hi All,
    I am facing issue with month order in answers.
    First I created BSO cube using Essbase Studio. When i exposed cube in answers, months were sorted in alphabetical order. So i used RANK function with evaluate to arrange month members in proper order. But if i use RANK function it pulls all missing records and it is effecting performance.
    Then i created Time dimension(dimension loading) in essbase from FLAT file,initially it was coming in proper order. But after some time again it sorted in alphabetical order!!!
    I have seen in internate few people saying they didn't face this problem. I
    Please advice...
    Essbase: 11.1.1.3
    OBIEE: 10.1.3.4.1
    RS

    Hi user10300020,
    That's a fairly common problem with months that happens regardless of database source.
    In the logical layer of OBIEE you can specify the sort order on the month name column. Just double click on the month name column and look for the option to set sort order based on a different column. I typically sort the month name based on the month number.
    Give that a shot and tell me if it works.
    -Joe

  • Prompt Month sort order

    Hi, I have a prompt which has data values as Mon-YYYY format (example AUG-2010, 'MAY-2010, MAR-2010' etc). Now I would like to sort them in display in prompt when the prompt appears in the report. For example, MAR-2010, MAY-2010, AUG-2010. Currently, it is sorting on alphabetically but i would need to sort based on actual date format. Please advise.

    Hi,
    Create a logical column say MonSort in the BMM layer with the formula as :
    CASE WHEN MONTH = 'MAR - 2010' THEN 1 WHEN MONTH = 'MAY - 2010' THEN 2 WHEN MONTH = 'AUG - 2010' THEN 3 END
    Drag it to the presentation layer and save the rpd.
    In the prompt:
    In the Show section select SQL results:
    SELECT Month FROM ABC order by MonSort asc
    Please check.
    Regards,
    Swati

  • Regarding Month sorting in List Map String, Object

    Dear All,
    i have a list which is- List<Map<String, Object>> results . What i need is i want to sort the 'results ' .The values in results, when i tried to print it are
    RESULTS :{Apr 2009}
    RESULTS :{August 2008}
    RESULTS :{December 2008}
    RESULTS :{Feb 2009}
    RESULTS :{Jan 2009}
    RESULTS :{Jun 2009}
    RESULTS :{Mar 2009}
    RESULTS :{May 2009}
    RESULTS :{Nov 2008}
    RESULTS :{October 2008}
    RESULTS :{Sep 2008}
    i want to sort the values according to the month. like jan 2008,feb 2008 etc .
    Somebody please help .
    Thanks in advanced .

    sha_2008 wrote:
    The output sholud be june 2008,Dec 2008, Mar 2009. ie according to the increase order of monthsThat doesn't make it any clearer, in the example "June 2008" and "Mar 2009" are in the same map. Do you want that map to appear both before and after "Dec 2008" which doesn't make sense or are you expecting to restructure the data. If so, I would suggest you use a SortedMap like;
    List<Map<String,Object>> maps = ...
    SortedMap<String, Object> results = new TreeMap<String, Object>(dateComparator);
    for(Map<String, Object> map: maps)
       results.putAll(map);BTW: is there any good reason your dates are Strings instead of Date objects which are much easier to sort?

  • Cal Month que

    Hi
    I have a requiremet for the current year ,where Calmonth is in rows and Product in columns. Now I have all the 12 months in rows.
    Though now the currnet month is April. Layout should be like this
    Filter: cal year
    Month----P1-p2---total
    Jan10---1-2---3
    Feb10---23----5
    mar10--3-1---4
    Apr10---- -
    May10---   -
    Dec10---- -
    Tot-----66--12
    How the months may,jun..jluy...Dec will apprear in the report.
    Please advise on this..
    Regards
    bipower

    HI
    Its not working..when I restrict the calmonth to 01..it gives the error
    01 is not a number with 0calmoth spaces..
    While restricting calmonth..i seleted the single value and enter 01 and pressed ok
    then i dropped the year and enter the variable..
    Please advise on this..
    Regards

  • Cal Month question

    Hi
    My requirement is to Have Months in the Rows. Jan --- Dec as the fixed format.and i'll put varialble for the Year..Based on the year variable it shoud display the months..
    Year :2010
    month--P1-p2--tot
    Jan--1--1---2
    Feb--2-3----5
    Mar--1-1---1
    Apr--41----5
    May----
    Jun----
    jul----
    aug
    sep
    oct
    nov
    dec
    My question in selection and whle createing variable where will i capture the values of Jan,feb etc.
    Please advise on this..
    Any updates on this
    Regards
    Edited by: Bi power on Apr 15, 2010 6:17 AM
    Edited by: Bi power on Apr 15, 2010 8:27 AM

    Hi ,
    I can not provide you the code, but I can give you steps.
    1. Create one Variable on 0CALYEAR, set its processing type to User Entry. Set its property for ready to input. So whenever you will run a query which uses this variable ,a screen willl appear where you can enter the year for which you want results.
    2. Create variable on 0CALMONTH with type Customer Exit. go to CMOD and write a code for this. Which will have the following logic.
    -> i_Step = 2 // Post Processing.
    -> Read the value of the variable which you have created on 0CALYEAR.
    -> Get the first month of the year and set it as a lower range of the variable which you have created on 0CALMONTH.
    -> Get the last month of the year and set it as a higher range. Thus you will get the all the months of the year which you have entered in the selection screen.
    -> use this variable in the query as per the output required.
    Hope this will help.
    -Jaimin

  • Sort variable values in selection box in BEx web report.

    Hello friends,
    In my BEx web report I have cal/month selection. When I do dropdown to select values it starts with 01/1960 and I have to click 10 times to get to 01/2006, 02/2006 and so forth.
    Is there a way to sort these values so I can get most current cal/month in first list?
    Thanks in advance.
    Regards,
    BJ

    I would consider changing the read mode for the dropdown box.  Are all of those dates actually relevant?  Check out the properties of the dropdown box in WAD. 
    Thanks,
    Jeff

  • Sorting on a Formula field

    Everytime I try to do a sort on the formula field below, I can't sort on the field.  It doesn't even show the field in the explorer window to sort on.  The formula is below.
    Sum ({fct_CurrentSales.Cases}, {@upc}) /
        (tonumber(Maximum ({vw_dim_Product.CA_MPN_JMelBoxesPerPallet}, {@upc}))) / {Command.Previous Fiscal Month}

    Sorting is done at record level and you're using a sum in your formula as well as a maximum value.  Not sure about what is being done in the {@upc} formula but it may be affecting it as well.
    Look at your user guide and look up the multiple passes CR makes and what is done in each pass.
    (I used to keep a copy of the multiple pass flowchart on the wall above my computer as it contains good information on what can be done and when during the report generation.)
    Sum ({fct_CurrentSales.Cases}, {@upc}) /
    (tonumber(Maximum ({vw_dim_Product.CA_MPN_JMelBoxesPerPallet}, {@upc}))) / {Command.Previous Fiscal Month}

  • How to get current month from BI 7

    Dear Expert,
    I am working on a BI 7 report and I need to restrict a key figure using the current month and previous month.
    Could you help me to find out how to do so?
    Thank you very much!
    Arthur

    if you want to make  2 diff rest key figures.
    check if you have current month variable under cal.month ,  if not create a variable( single, not range ) for current month
    and make a new selection take key fig and rest with current month. 
    and make a new selection and take the key fig and restrict with  current month variable keep off set as -1
    if you want to make only one restricted key fig  which shows both current and previous then.
    create a variable as range and write a exit code from  sy-datum ( take month and year ) as the high value and substract one and make it as low value.
    Hope this helps

  • Help with Setting Previous Month Date Parameter for SSAS via SSRS

    Hi All,
    Firstly, any assitance is greatly appreciated.
    Now, I am working on developing a report for a business area that will be sent on the first of every month. The report will contain data for all records created in the previous month, current year.
    I have been able to successfully implement a default year parameter, which will default to current year-
    ="[REFERRAL LODGEMENT DATE].[CAL YEAR].&["+CSTR(Year(Today))+"]". However, when I attempt to set a previous month paramater it is not setting when the report is generated. The code I have used
    is as follows: 
    ="[REFERRAL LODGEMENT DATE].[CAL MONTH NAME].&["+CSTR(Month(Today)-1)+"]"
    Cheers

    Before you spend more time trying to fix the parameter, let me suggest that you can write MDX to come up previous month data.
    if you can't go that route, couple of things to consider for your approach:
    1) don't subtract 1 from January that won't work. you'll need to handle it using the ssrs expression.
    2) when you use the month function it's going to return a month index so effectively you are passing something like [REFERRAL LODGEMENT DATE].[CAL MONTH NAME].&[7] to SSAS, is that the current format?
    you can use the MonthName function to get month names but again make sure that the formatting is right.
    to see the parameter value, you can display it on the ssrs report and see if it's the right format.
    Paras Doshi (Blog: ParasDoshi.com | Twitter:
    @Paras_Doshi )

  • Date to Month Conversion at Query Level.

    Hi,
    I have Net due date in the Info provider.
    At query level i have to create a restricted keyfigure based on Net Due Month.
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    Thanks and Regards,
    MuraliManohar.

    Hi,
    Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
    you can calculate , but as he said you can add in cube ,  may be for cal month you are taking som eother date field.
    in this case write one customer exist code .
    create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
    in routine wriet the code as when that varaible .
    l_s_range - high , low and give then take the month form that date
    like netdue date +0(6)-- gives month and year
          netdue date +0(2)-- gives month
    then rtestrict that variable with your keyfigure.
    Thanks & Regards,
    sathish

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

Maybe you are looking for