COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: DvlprDc on 03 Jan 2006 09:41:37 AM

Title: Change month order in prompt value display
Post by: DvlprDc on 03 Jan 2006 09:41:37 AM
Hi there -

I tried to find info on this in the forum, but had no luck. I'm hoping someone can please tell me how, with a value prompt (listing months January - December), one can change the listing of values to not be alphabetical.Ã,  Right now April is my first month listing & September my last.Ã,  I want it to start with January and end with December. I looked in the properties of the value prompt but didn't see anything there that could help me. Any ideas ?


Much thanks -
Title: Re: Change month order in prompt value display
Post by: bdybldr on 03 Jan 2006 09:58:43 AM
What data are you using to populate the value prompt?  Static choice or database table?
Title: Re: Change month order in prompt value display
Post by: DvlprDc on 03 Jan 2006 10:02:47 AM
I am using the database table.
Title: Re: Change month order in prompt value display
Post by: Draoued on 03 Jan 2006 10:09:00 AM
I suppose you have a dedicated query to populate the Prompt .

This query is most probably containing only 1 field , like Month_Name ( Jan -> Dec )
Then of course this is sorted in Alpha order.

What you can do it s adding a Month Number field ( 1 -> 12 ) and do the sort on this field.
Mark the Month_Name as no Sort

Then this field is not used in the prompt , nor visible to end-user.
Title: Re: Change month order in prompt value display
Post by: Boris-A on 03 Jan 2006 12:05:27 PM
Adding to what was suggested by Draoued, you can even use this "sort Key" to be used in your prompt, but display the month names.
Title: Re: Change month order in prompt value display
Post by: DvlprDc on 03 Jan 2006 12:13:39 PM
That worked Draoued.

THANKS !!
Title: Re: Change month order in prompt value display
Post by: bdybldr on 03 Jan 2006 01:16:43 PM
DvlprDc,
Please close this thread according to the board rules.Ã,  Thanks.