Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
Some Background:
I have to work on figuring out the movement of opportunities within our Salesforce along the sales stages setup in the system (negotiation, PO, Business Lost...). The thing is that some of these accounts have multiple opportunities running simaltaneously. I want a view in which I can see the stages and the total amount of money in each opportunity. The easy fix was creating a Matrix view in Salesforce and have tried to export this report to Power BI. The issue with that however is when I bring it into Power BI, it brings the whole list and takes it out of the Matrix setup I have in SF.
Below is what my data looks like in Power BI Query Editor:
What I need this to look like in Power BI taken from an Excel PivotTable:
Questions:
1. Is there a way to bring it into Power BI in Matrix format?
1. Is there a way to build a Matrix in the Query Editor of Power BI?
2, Similar to Excel when you use PivotTables you can display "values" using "sum of amount", can this be done in Power BI?
Solved! Go to Solution.
You can use "GROUPBY" operation before doing pivoting to achieve waht you are looking for.
The solution provided by BhaveshPatel should be right, please try it and post back if you still have questions.
There is a Matrix visual in Power BI. We can shape and transform the data firstly in Query Editor and then drag the values into Matrix visual. In Query Editor, we can use Group By function to get sum of amount.
Best Regards,
Herbert
In response to the answers given.
I did go back into the query editor in order to begin setting up the table. If you look at the first picture I posted, it was not setup in the matrix form which Bhavesh showed in his pictures. In order to mimic his format, I created a conditional column for each stage which brought the amount of money in each stage per opportunity. Once I did this I used a group by in order to bring the data together.
You can use pivot columns feature to achieve the desired matrix format result. However, there is already a inbuilt matrix visualization in powerbi (next to the table visual) that can be used as well.
For the transformation in Query Editor, Select the stage column and choose pivot column. As shown in the screenshot, Values section should be amount and aggrgation must be SUM to achieve expected output.
If account name was the same lets say there is "A" and the amount is 1000 in Value Validation and another time "A" and the amount 4000 in Value Validation how do you connect both of them?
or in the case where an account has one opportunity at Value Validation and another at Business Lost, how do you connect them?
You can use "GROUPBY" operation before doing pivoting to achieve waht you are looking for.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
217 | |
89 | |
82 | |
66 | |
57 |