cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NXD210907
Frequent Visitor

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/

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors