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...
Trend weighted aver...
 
Notifications
Clear all

Questions Trend weighted average price for purchases of specific item

 
Acumatica Dashboards
Last Post by Tim Rodman 7 years ago
4 Posts
2 Users
0 Reactions
4,448 Views
RSS
Royce Lithgo
Posts: 557
 Royce Lithgo
Topic starter
August 1, 2018 6:11 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

We have a non-stock item for which we would like a trend of the weighted average weekly purchase price over the last 6 month period (can extend to 1 year if necessary).

The source of the data is (SUM(POLine.ReceivedCost) / SUM(POLine.ReceivedQty)) aggregated by Week (ending Sunday).

I have been able to do bits of this, but not the whole solution. For example, I can convert the OrderDate to a Sunday date in a GI, but I cannot group by that as it is a formula and GI only allows group by data fields (massive limitation). I can return the raw data (1 row per PO line) from the GI and use a Chart widget with an Average over the calculated price (POLine.ReceivedCost / POLine.ReceivedQty) but that would be a statistical average and not a weighted average. Because we have different vendors supplying the same item with price variances per vendor, weighted average is critical.  

Any suggestions?

Is this something that needs a BI solution?


3 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
August 6, 2018 7:55 am
(@timrodman)
Famed Member
Joined: 10 years ago

A BI solution like Power BI would definitely be better at doing this kind of calculation.

But it seems to me like the main thing you are missing is the ability for each row calculation to be aware of the grand total: SUM(POLine.ReceivedQty). Because of that, I can't think of a way to do this in a Generic Inquiry.

What you might try though is Report Designer with a Subreport that calculates the Grand Total and passes it back to the main report in a variable. Then the variable could be used in the calculation to weight the averages. Something like this:

(SUM(POLine.ReceivedCost) / SUM(POLine.ReceivedQty)) * (SUM(POLine.ReceivedQty) / $Subreport_GrandTotal_ReceivedQty)


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
Topic starter
August 6, 2018 5:42 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Thanks Tim. The end user was happy to download the GI data to excel and do the average calc with a formula.

 


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
August 14, 2018 6:45 am
(@timrodman)
Famed Member
Joined: 10 years ago

Good old Excel, the world's most popular Business Intelligence tool 🙂 (I personally love Excel for this reason).

You might try connecting the Generic Inquiry to Excel via OData at some point to make their life a little easier.


Reply
Forum Jump:
  Previous Topic
Next Topic  

Currently viewing this topic 1 guest.

Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 54 Online
  • 2,389 Members
Our newest member: Dan Hunting
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
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

  • Terry Payne Julie Baker
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.

‹›×

    ‹›×