Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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
    Community member Profile Picture
    7 on at
    Formula field on opportunity_salesstage
    Thanks. I created a business rule proposed below and it works fine.
     
    Anders
  • Suggested answer
    RudyZhang Profile Picture
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans