web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Searching for "Status reason" in opportunity table in Power Query

(0) ShareShare
ReportReport
Posted on by 176

Hello CRM community,

I am looking to find the "Status reason" in the opportunity table in Power Query. I imported the opportunities table, but nowhere I find the status reasons. Is it in another table? I looked up other tables, but not able to find it. Is the field name different?

Thank you for your help.

Cat

I have the same question (0)
  • Suggested answer
    Eiken Profile Picture
    on at

    Hi,

    Please note the logical name and Schema name of the Status Reason are as follows.

    pastedimage1681092476977v1.png

  • Suggested answer
    Shawnsauve Profile Picture
    1,093 on at

    In Power Query, the "Status Reason" field for opportunities in Dynamics 365 is actually stored in a separate table called "OpportunityClose." This table contains information about the different reasons why an opportunity was closed, including the status reason.

    To access this information, you will need to perform a join between the "Opportunity" and "OpportunityClose" tables based on the "Opportunity ID" field. Here are the steps to do this:

    1. Open the Power Query Editor and select the "Opportunity" table.

    2. Click on the "Home" tab and select "Merge Queries" from the "Combine" group.

    3. In the "Merge" dialog box, select "OpportunityClose" as the second table to merge with.

    4. Select "Opportunity ID" as the common column between the two tables.

    5. Choose the type of join you want to perform (inner, left outer, right outer, or full outer).

    6. Click "OK" to merge the two tables.

    7. Expand the columns of the merged table to include the "Status Reason" field from the "OpportunityClose" table.

    Once you have completed these steps, you should be able to see the "Status Reason" field in your Power Query table for opportunities.

  • Cat_Car Profile Picture
    176 on at

    Hello,

    Thank you for the steps. I imported the "opportunitycloses" table, but I do not find the data for the status reason. Here is what I have for the key word status in this table...opportunitystatuscode and statuscode, so I do not see data but only numbers (codes). I have passed through the 251 columns and there are columns with "records" or "tables" related, but cannot find anything related to status reason. Could the statuscode be related to another table that I would need to link?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 48 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans