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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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