Skip to Content
author's profile photo Former Member
Former Member

Showing Text for months using LOV

hi guys

I want to see month and month number in my lov togther is it possible if so how? For example my LOV should show JAN and "1" when i refresh my LOV for a month dimension.

I have 2 dimensions in my universe (Month Code and Month TXT). One shows the number "1" the other shows the text "JAN". How do i combine the 2 into on LOV for one dimension Month.

Regards

Adnan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2013 at 02:42 PM

    Go into the properties of the object and on the second tab, choose to edit the list of values. You will be greeted with a query panel where you can add an extra item as you require.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2013 at 02:56 PM

    Hi Adnan,

    You can create an object with following SQL Script in Business Layer and use it in LOV

    {fn concat({fn concat(LEFT(@Select(Month-Number),2),{fn char(32)})},left(@Select(Month Name),3))}

    hope it helps you

    Ambreen

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi AZH,

      If you done have month names than write case statement in sql of object properties.

      for eg. Case when month number = 1 THEN 'JAN' etc...

      Note:- You have to select the check box 'do not generate sql'

      This code you have to write in:

      month number object-->properties-->edit list of values-->sql.

      Thanks

      Gaurav

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.