RE: Searching for "Status reason" in opportunity table in Power Query
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.