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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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