Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Formula field on oppor...
Sales forum
Answered

Formula field on opportunity_salesstage

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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans