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

date sorting with format in webi

Hi All,

I have date object in my report and I have to show date in 'MMM-YY' format with descending order.

If date is 01-07-2016 then it should show 'Jul-16' and when there are more dates that time it should show in descending order as follows:

Jul-16

Jun-16

May-16

Apr-16.......

waiting for your inputs...........

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 29, 2016 at 11:03 AM

    right click on the date column->Format Number->Custom->define the format Mmm-yy

    right click and sort->desending

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2016 at 11:11 AM

    Hi Mack,

    Yes that is possible.

    You just need to drag date object two times in a single table.

    One object definition will be normal date i.e. like 01-07-2016.

    The second object's definition will be like FormatDate([Date Object];"Mmm-yy") which will output date as "Jul-16".

    Now, sort in descending the normal date object (The one having values like 01-07-2016).

    After doing that, use the 'Hide Dimension' functionality for hiding the same object.

    Ultimately, the object values will be displayed in the form of "Jul-16", but the sorting will be based on "01-07-2016".

    Another alternative is to create a variable with definition FormatDate([Date];"Mmm-yy").

    Then use Custom sort when you drag this variable in your block/report

    Thanks and Regards,

    Rohan

    Add a comment
    10|10000 characters needed characters exceeded

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.