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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.