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...
SOLine - Margin i %
 
Notifications
Clear all

Questions SOLine - Margin i %

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Fosse 4 years ago
3 Posts
2 Users
4 Reactions
1,660 Views
RSS
Fosse
Posts: 16
 Fosse
Topic starter
November 19, 2021 8:34 am
(@fosse)
Eminent Member
Joined: 5 years ago

Hi,

I am making a Generic Inquiry were I want to show the Margin i %.

When I try to ad this code and runs the Generic Inquiry I get Divide by zero error encountered error.

=Round(([SOLine.CuryLineAmt]-[SOLine.CuryUnitCost])/([SOLine.CuryLineAmt])*100,0)

Does anyone has any ideas?

 

/Jonas

2021 11 19 14 32 44 Provision FSG Statistik
2021 11 19 14 32 19 Generell förfrågan

 


2 Replies
Wyatt.ERP
Posts: 128
 Wyatt.ERP
November 19, 2021 1:27 pm
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

You'll need to check for 0s when you do division.  Also, you'll probably want to use [SOLine.CuryExtCost] instead of [SOLine.CuryLineCost].

=IIF([SOLine.CuryLineAmt]=0,0,Round((([SOLine.CuryLineAmt]-[SOLine.CuryExtCost])/[SOLine.CuryLineAmt])*100,0))

Reply
Fosse and Tim Rodman reacted
Fosse
 Fosse
(@fosse)
Joined: 5 years ago

Eminent Member
Posts: 16
November 22, 2021 1:43 am
Reply toWyatt.ERPWyatt.ERP

@wyatt-erp Thanks! I owe you one!


Reply
Wyatt.ERP and Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 38 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
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.

‹›×

    ‹›×