Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Formula field on opportunity_salesstage

(0) ShareShare
ReportReport
Posted on by 7
I'm trying to create a formula field base on the values(0,1,2,3) in the opportunity_salesstage which is a val data type.
My formula field is called Weighted revenue and wonder which function to use for this.
Trying to achieve this:
weighted revenue = if (opportunity_salesstage = 0, (0,1 * expected revenue))
weighted revenue = if (opportunity_salesstage = 2, (0,3 * expected revenue))
weighted revenue = if (opportunity_salesstage = 3, (0,95 * expected revenue))
 
Thx
Anders
  • Suggested answer
    Formula field on opportunity_salesstage
    Thanks. I created a business rule proposed below and it works fine.
     
    Anders
  • Suggested answer
    RudyZhang Profile Picture
    RudyZhang Microsoft Employee on at
    Formula field on opportunity_salesstage
    Hi,
     
    We analyzed your requirements, but according to the official documentation the description/option set/is not supported by the formula columns, and we have encountered this problem during our testing.

    Please refer to the documentation in the link below
    Work with Dataverse formula columns - Power Apps | Microsoft Learn
     
     
    Here is another solution we propose.
    1. You can /expected income/ and /weighted income/ set to /number/ type
    2. Use Business Rules to set the conditions.

    3.Active this rule

     
    In addition, we have looked for a possible solution in the Power Platform forum, please refer to the thread in the link below.
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Invalid-argument-type-OptionSetValue-Expecting-an-OptionSet/td-p/1467179
     
     
     
     
    I hope my answer is helpful to you! If you have any other questions, please feel free to contact me.
     
    Best Regards,
    Rudy Zhang

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans