Jump to content
We've recently updated our Privacy Statement, available here ×

Sort on Month name in crosstab report


Omorak_Taybeh

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

thank you for your reply.

what i do is edit the query to be (TO_CHAR(REQUEST_TIMESTAMP, 'MM') "REQUESTDATE") to return the date just like 01,02,03,.... then i put in the expression for requestdate header

(
    $V{REQUESTDATE}.intern() == "01" ? "Jan" :
    $V{REQUESTDATE}.intern() == "02" ? "Feb" :
    $V{REQUESTDATE}.intern() == "03" ? "Mar" :
    $V{REQUESTDATE}.intern() == "04" ? "Apr" :
    $V{REQUESTDATE}.intern() == "05" ? "May" :
    $V{REQUESTDATE}.intern() == "06" ? "Jun" :
    $V{REQUESTDATE}.intern() == "07" ? "Jul" :
    $V{REQUESTDATE}.intern() == "08" ? "Aug" :
    $V{REQUESTDATE}.intern() == "09" ? "Sep" :
    $V{REQUESTDATE}.intern() == "10" ? "Oct" :
    $V{REQUESTDATE}.intern() == "11" ? "Nov" : "Dec" )

and now the report is sorted.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...