AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

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

Forums
AUG Forums
Acumatica Dashboard...
Sort by Period
 
Notifications
Clear all

Questions Sort by Period

 
Acumatica Dashboards
Last Post by Tim Rodman 7 years ago
4 Posts
3 Users
0 Reactions
3,393 Views
RSS
Brian Rowerdink
Posts: 18
 Brian Rowerdink
Topic starter
August 13, 2018 12:24 pm
(@browerdink)
Eminent Member
Joined: 5 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: 5 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: 5 years ago

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

Thanks


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
August 15, 2018 6:47 am
(@timrodman)
Famed Member
Joined: 10 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,526 Topics
  • 10.9 K Posts
  • 6 Online
  • 2,324 Members
Our newest member: Michael Kiley
Latest Post: Pick List report suddenly not splitting on Shipment
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×