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 Generic I...
Sorting Pivot Table...
 
Notifications
Clear all

Questions Sorting Pivot Table by Month

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by danielbyrum 3 years ago
3 Posts
2 Users
3 Reactions
1,219 Views
RSS
danielbyrum
Posts: 27
 danielbyrum
Topic starter
June 29, 2022 11:20 am
(@danielbyrum)
Trusted Member
Joined: 6 years ago

I have an interesting problem. I am trying to build a pivot table that recaps sales by Inventory Item broken down by year and month. We have a customer that has a new 'theme' every year, and we offer similar products year over year that are catered to the new theme. I have built the GI that shows the data. I can filter and sort it by the month value (1-12), but when I open the pivot, it starts with 1 then goes to 10, 11, 12, 2, 3, etc. If I try the month name, it is alphabetically sorted. I can export the GI results to Excel and sort manually there, but I would like to be able to push the pivot link to our product development team and have it sorted in a chronological way.

One other thing I tried was adding a formula to the GI that IF the month value was 10 return 9.1(hoping to put it after month 9), but I got a conversion data type error.

My question is how can I sort the pivot table to be Jan-Dec instead of Jan, Oct, Nov, Dec, Feb, etc.

Pivot Sort

Any ideas?


2 Replies
Dianne A
Posts: 23
 Dianne A
June 29, 2022 4:16 pm
(@dianne-a)
Eminent Member
Joined: 6 years ago

Hi Daniel,

If you force the month to be 2 digits (characters, actually), then the pivot will sort them the way you want. This expression to set the Month of IncurDate as 2 digits works in a GI I tested, though there may be a simpler expression that works:

=iif(Len(Month([JPMJobCostTran.IncurDate]))=1,concat('0',CStr(Month([JPMJobCostTran.IncurDate]))),CStr(Month([JPMJobCostTran.IncurDate])))

Using that field as a column variable in a pivot table provides this result sorted the way you want:

image

Dianne


Reply
danielbyrum reacted
danielbyrum
 danielbyrum
(@danielbyrum)
Joined: 6 years ago

Trusted Member
Posts: 27
June 30, 2022 11:19 am
Reply toDianne ADianne A

@dianne-a, that worked! Thanks for your help!


Reply
Tim Rodman and Dianne A reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 16 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
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.

‹›×

    ‹›×