AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
Forums
AUG Forums
Acumatica Dashboard...
Sort by Period
 
Notifications
Clear all

Questions Sort by Period

 
Acumatica Dashboards
Last Post by Tim Rodman 8 years ago
4 Posts
3 Users
0 Reactions
3,667 Views
RSS
Brian Rowerdink
Posts: 18
 Brian Rowerdink
Topic starter
August 13, 2018 12:24 pm
(@browerdink)
Eminent Member
Joined: 6 years ago

I am trying to display a chart showing values over time by month. I'm using the period field which is formatted 01-2018, 02-2018, etc. I want them to sort chronologically, but instead they are sorting like this. 01-2017, 01-2018, 02-2o17, 02-2018. Is there any quick ways via the generic inquiry to get this to sort correctly?


3 Replies
Shawn P Slavin
Posts: 196
 Shawn P Slavin
August 13, 2018 12:58 pm
(@shawn-p-slavin)
Estimable Member
Joined: 6 years ago

Brian, we have made it a standard practice to add two columns to any GI whose result set may need sorting, grouping, or filtering by year or month.  You can use the functions =Year(PostingDate) and =Month({PostingDate}) to get the data you need.  This greatly eases sorting and filtering by date component.


Reply
Brian Rowerdink
 Brian Rowerdink
(@browerdink)
Joined: 6 years ago

Eminent Member
Posts: 18
August 13, 2018 12:59 pm
Reply toShawn P SlavinShawn P Slavin

Thanks


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
August 15, 2018 6:47 am
(@timrodman)
Famed Member
Joined: 11 years ago

If you want to use the 2018-01 format so things will sort correctly, you could use the following formula (just replace [SOOrder.OrderDate] with your table/column):

=CStr(Year([SOOrder.OrderDate]))+'-'+Right('0'+CStr(Month([SOOrder.OrderDate])),2)

The reason for the Right portion of the formula is to get the leading zero in front of the month.

I really wish that the Format formula which is available in Report Designer was also available in Generic Inquiry, but, alas, it's not. If you think it's a good idea, go ahead and vote on the Make Format formula from Report Designer also available in Generic Inquiry idea (click here) that I just created.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 11 Online
  • 2,437 Members
Our newest member: Matt Butler
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

By using this website, you agree to our Terms of Use (click here)

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×