Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Margin Calculation in Opportunities

(0) ShareShare
ReportReport
Posted on by 20

I am trying to get a % margin calculation on each opportunity line item.

I have added a new field in the opportunity line entity as a calculated field but can't figure out how to pull in the current cost from the products list in order to do the calculation. 

Is there a way of doing without custom code?

  • Duncan McKenzie Profile Picture
    20 on at
    RE: Margin Calculation in Opportunities

    Thanks for reply, but I am struggling with this. I am creating the business rule in the opportunity line entity and need to access current cost information in the Products list. I can't seem to find  how I do this within a business rule.

  • Esteban Coto Alfaro Profile Picture
    on at
    RE: Margin Calculation in Opportunities

    Hello, I would recommend making a business rule, I attach the link to review the information: docs.microsoft.com/.../create-business-rules-recommendations-apply-logic-form

    The other option would be to do it from JavaScript.

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,289 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,068 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans