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...
Sales vs Returns GI
 
Notifications
Clear all

Questions [Solved] Sales vs Returns GI

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 6 years ago
7 Posts
4 Users
0 Reactions
2,853 Views
RSS
Casey Hope
Posts: 25
 Casey Hope
Topic starter
April 17, 2019 2:32 pm
(@casey-hope)
Member
Joined: 7 years ago

I have been working on trying to create a GI that shows Return on sales. I am not really sure how do make this happen. I am pretty sure I have the tables I need, but in the results grid is where I run into a problem. I have to be able to total sales and returns for each customer and then divide them in the results grid correct? 


Topic Tags
Generic Inquiry
6 Replies
Shawn P Slavin
Posts: 196
 Shawn P Slavin
April 17, 2019 4:02 pm
(@shawn-p-slavin)
Estimable Member
Joined: 5 years ago

Casey,

Can you mock up what you are trying to accomplish in an Excel spreadsheet so we can make sure the answer we provide is on point?

I'm sure you know exactly what you are looking for. I'm just not sure what you want in the result grid.

Thanks!


Reply
Casey Hope
Posts: 25
 Casey Hope
Topic starter
April 18, 2019 9:05 am
(@casey-hope)
Member
Joined: 7 years ago

I have created a mock-up using excel. I took a chance again with the GI and seems to be a lot more difficult than previously thought. I was trying to only use the Customers and AR Tran tables. I have attached an example of what I am looking for. I just don't think you can accomplish this in 2017 R2. Any Suggestions would be a big help. 


Reply
Shawn P Slavin
Posts: 196
 Shawn P Slavin
April 18, 2019 11:40 am
(@shawn-p-slavin)
Estimable Member
Joined: 5 years ago

Hey Casey,

I don't know that you are going to be able to get everything you are looking for above within a Generic Inquiry without creating a custom view in SQL.  Doug Johnson wrote an article on how to do that once if you want to pursue that path.

Alternatively, you can do this in an Excel workbook or Power BI using a GI and OData.

You can create a GI that summarized sales by Item and shows total Sales and Total Returns. I just don't think you can get the percentage calculation in the GI since it relies on a calculation of totals of aggregated values. I don't think you can do that in a GI.  (I'm sure someone will step in here and educate us both if there is.)

I have attached an XML file for a Summary AR Aged Trial Balance for your review. This is to provide an example of how to accomplish a couple of things you need to get most of the results you are looking for. The differences I can see that will need to be made are as follows:

1) You will need to use ARTran or SOLines instead of ARHistory to get your sales data. Use ARTran if you want to analyze actual revenue realized. Use SOLines if you want to analyze sales booked.

2) Group by Item ID or Item Name.

3) Use OrderType in the IIF statement on each Result row to determine if the line is associated with a sales (SO, IN, etc) or a return (RC, RM, etc)

I hope this helps. 

 

Right-click to Download


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
April 23, 2019 8:42 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Cannot do calculations on aggregates in GI. Also be careful when calculating multiple aggregates on joined tables that you don't get partial cartesian products in your aggregations. 

I would use Power BI for this. IMHO, Power BI is an essential tool if you want to maximise your ROI with Acumatica. I am amazed at some of the reports I've built with Power BI. Learning curve is steep however. 


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
May 8, 2019 9:02 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I agree with Shawn, to do all this in Acumatica, you'll need a SQL View.

Or, as Royce pointed out, you could use Power BI. You could even just do it in Excel, but use the Power BI functionality by bringing in multiple Generic Inquiries and combining them in Excel. Excel Pivot Tables (with the new Power BI functionality) handle aggregate calculations really well.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
February 23, 2020 8:35 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Hey Casey,

I learned this really cool technique from @wyatt-erp:
https://www.augforums.com/forums/acumatica-generic-inquiries/gi-with-2-or-more-different-values

It uses an Attribute to allow you to combine multiple disparate data sets. I think the technique would work for your desired report screenshot above.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Unable to Add Field "Unapplied Balance" to Generic Inquiry "Payments and Applications"
    6 months ago
  • Equivalent to Excel Post-Special, "transpose"
    1 year ago
  • Generic Inquiry - Last Modified On Date Change
    1 year ago
  • Generic Inquiry, pulling data from two unrelated sources
    1 year ago
  • Adding Override Contact Info to GI Results
    1 year ago
Topic Tags:  Generic Inquiry (41) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 49 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
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

  • Tim Rodman Julian Schrenzel David Edmonson Michael Ricke
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.

‹›×

    ‹›×