Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Use of custom calculated field in Goal Rollup Query

(1) ShareShare
ReportReport
Posted on by 93
Hi All,
 
I have scenario where I have had to calculate the actual qty of an order line depending on the description of the product.
 
For example if my order have three lines and each line has a qty of 2:
  • If the product description contains ‘one unit’ my Calculated Qty is the line Qty * 1 = 2
  • If the product description contains ‘two units’ my Calculated Qty is the line Qty * 2 = 4
  • If the product description contains ‘six units’ my Calculated Qty is the line Qty * 6 = 12
This issue I have is that I would then like to use this ‘Calculated Qty’ in my Goal Rollup Query, so that when the goal is looking for the total qty for these three lines, it it returning 18 and not the actual qty of 6.
Can this be done?
  • VaHiX Profile Picture
    VaHiX 3,119 on at
    Use of custom calculated field in Goal Rollup Query
     

    ** Please don't forget to close up the thread here by Like and verify it as an answer if it was solved **

  • MichaelTorres Profile Picture
    MichaelTorres 58 on at
    Use of custom calculated field in Goal Rollup Query
    Hi there,
     
    You’ll need to create a custom-calculated field in Dynamics 365. Navigate to the customizations area in Dynamics 365. Create a new field for your order line entity and set it as a calculated field.
     
    In the field’s properties, use a formula to evaluate the product description. You can use conditional logic (like an IF statement) to set the calculated quantity based on whether the description contains one unit, two units, or six units
     
    Once your custom-calculated field is set up, you can incorporate it into your goal rollup query. This way, when the query runs, it will use the calculated quantity instead of the actual quantity, giving you the desired total
     
    Hope it will help
  • Suggested answer
    Muhammad.Affan Profile Picture
    Muhammad.Affan 4,449 on at
  • VaHiX Profile Picture
    VaHiX 3,119 on at
    Use of custom calculated field in Goal Rollup Query

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans