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
Acumatica Forums

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

Forums
AUG Forums
Everything Else
How to sum using da...
 
Notifications
Clear all

Questions How to sum using datediff in GI

 
Everything Else
Last Post by Dennis Easter 7 years ago
6 Posts
3 Users
1 Reactions
2,912 Views
RSS
Posts: 8
 Paola Hernandez
Topic starter
January 9, 2019 11:27 pm
(@paola-hernandez)
Member
Joined: 7 years ago

My goal is to get the following result in my GI, i am trying to do an Aging Inventory report but I have a field that is 0-30 Days (DETAIL): and I have the following 

=IIf( DateDiff( 'd', [POReceiptLine.ReceiptDate], Today() )>0 and DateDiff( 'd', [POReceiptLine.ReceiptDate], Today() )<31,SUM(IIf( [POReceiptLine.POType]='RO', -[POReceiptLine.ExtCost], [POReceiptLine.ExtCost]), 0))

But the problem that I have is that I need the Sum for this [POReceiptLine.ExtCost], I tried to use the following sentence but It show me and error , Could please some one help me to see how I can get the Sum ?

=IIf( DateDiff( 'd', [POReceiptLine.ReceiptDate], Today() )>0 and DateDiff( 'd', [POReceiptLine.ReceiptDate], Today() )<31,SUM(IIf( [POReceiptLine.POType]='RO', -[POReceiptLine.ExtCost], [POReceiptLine.ExtCost]), 0))

 


Topic Tags
Datediff
5 Replies
Ellie
Posts: 129
 Ellie
January 13, 2019 9:05 pm
(@ellie)
Estimable Member
Joined: 6 years ago

what error are you getting ? what version are you on? i believe the ExtCost field was removed in 2018R2.

 

 


Reply
 Paola Hernandez
(@paola-hernandez)
Joined: 7 years ago

Member
Posts: 8
January 18, 2019 12:05 am
Reply toEllieEllie

Thank you for your answer, I will verify if the ExtCost was removed. The other question that I have is, In the Generic Inquiry I need to + and - in order to get my formula

I wrote the below formula 

IIf([POReceiptLine.POType]='RO',(SUM([POReceiptLine.ReceiptQty],[INsiteStatus.QtyOnHand])-[SOLine.ShippedQty]),0)

and I am getting the error

 

How I could resolve this problem?

 

Thank you

 

 

 


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
January 18, 2019 1:22 pm
Reply toPaola Hernandez
Ellie

Looks like a grouping issue.

If you attach a screen shot of each tab in the GI setting or the xml file there is more chance that people can help you.


Reply
Posts: 8
 Paola Hernandez
Topic starter
January 23, 2019 5:45 pm
(@paola-hernandez)
Member
Joined: 7 years ago

Thank you for help me 

here is the screen shot of my group field 

But I dont know why in my formula when I added the Sum is showed me that messaje, I am using this formula because I am doing an Aging Inventory report, and the field that I am calling Quantity is the calculation of the QOH + (Sum All receipts from todays date) - (Sum of all sales from todays) but I dont know or How I can modify it in order to get that Result

=iif( [POReceiptLine.POType]<>'RO',0,(([POReceiptLine.ReceiptQty] + [INsiteStatus.QtyOnHand]) - (SUM([SOLine.ShippedQty]))))

 

 

 

Thank you 

 


Reply
Dennis Easter
Posts: 15
 Dennis Easter
February 4, 2019 4:25 pm
(@deaster)
Eminent Member
Joined: 6 years ago

Paola,

Based on the error, you have the POReceiptLine.POType  and SOLine.ShippedQty in your results Grid, you need to include them in the grouping  list as well.   However, I am not sure you will get the results you want if you are including the SOLine.ShippedQty.

Dennis


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Topic Tags:  Datediff (3) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,530 Topics
  • 11 K Posts
  • 24 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Negative/Credit Inventory Value?
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

  • Johnny Tang
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×