Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Best Way to Merge Data?

I have two Salesforce objects that I'm connected to. They are Delta Account which looks like this:

1.PNG

 

And Client Revenue Which looks like this:

2.PNG

Both tables are related by the columns that I've highlighted in each screenshot. What I'm trying to achieve is getting the revenue from Client Revenue into the Delta Account table. Problem is as you can see in the Client Revenue object, rather than having the total for each company it has individual revenue amounts so PBI throws an error saying it can't match them because one of the tables must have unique values.

 

From there I then took the Client Revenue object, and grouped it by the Related_Account_c field and aggregated it by summing the revenue so I got each Related_Account_c ID once with it's corresponding revenue total, which looks like this:

1.PNG

I was then allowed to create a relationship between Delta Account and Client Revenue. I was then able to use fields from both tables and insert them into the same table which came out like this, which was what I was initially looking for:

1.PNG

1.PNG

I then simply wanted to display the total at the bottom of this table and this happens:

1.PNG

What this is doing is giving me the total sum of all lines of revenue from my Client Revenue object. The total even includes revenue from companies not contained within the particular table above. It's giving me everything even though the above is supposed to be a filtered table looking at a certain set of companies. What can I do to fix this? I simply want the total revenue for each company by line and the grand total at the bottom, based upon what's in my table.

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Please create the following column in  your Delta Account table. Then drag the column to your table visual and you will get expected result.

Column = RELATED('Client Revenue'[Revenue])



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Please create the following column in  your Delta Account table. Then drag the column to your table visual and you will get expected result.

Column = RELATED('Client Revenue'[Revenue])



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.