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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sum few Rows based on condition

Hi,

I have two tables, FirstTable has January month targets for each Branch. 

In the SecondTable, I have Branch, LoanAmount, LoanStatus, Loan_Officer. I created few measures by adding loan amount by filtering LoanStatus and Loan_Officer.

I have one to many relation from FirstTable to SecondTable based on Branch, but the problem is that the FirstTable has a combined row for two branches.

How do I add these two rows of data to get as one record?

At the end I should be able to create a Bar chart which uses Branch,TargetLoanAmount, and Measures created from SecondTable.

 

BranchTargetLoanAmount
101500,000
102550,000
103600,000
104/105900,000

 

 

Thank you very much for your time and help.

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Would the target loan amount of each branch (104 and 105) be 900,000 in Table1?  If yes, then in the Query Editor, you should simply split the Branch column in Table1 by rows.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you for the reply!
It would be sum of 104 and 105

Hi,

That information does not help.  I want to know the individual amount which should be attributable to branch 104 and 105.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.