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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Comparing Amount Value

Hello All,

 

I have two table i.e Table A , Table B. Table A contains unqiue acct combination while Table B contains duplicate account combination. I'd like to create a new Collumn in Table A summarizing the the account combination row totals in Table B.

 

See below example. Thanks in advance

lmontaos_0-1612609959658.png

 

2 ACCEPTED SOLUTIONS
justinh
Advocate IV
Advocate IV

Just off the top of my head:

Group table B by the Account Combination column, summing up the Total column, then Merge table A and table B, importing the now summarized column.  

View solution in original post

v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Besides using 'Merge' in power query, you can also create a calculated column by DAX to keep Table B:

New Column =
CALCULATE (
    SUM ( 'Table B (2)'[Total] ),
    FILTER (
        ALL ( 'Table B (2)' ),
        'Table B (2)'[Account Combination]
            = EARLIER ( 'Table A (2)'[Account Combination] )
    )
)

column.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Besides using 'Merge' in power query, you can also create a calculated column by DAX to keep Table B:

New Column =
CALCULATE (
    SUM ( 'Table B (2)'[Total] ),
    FILTER (
        ALL ( 'Table B (2)' ),
        'Table B (2)'[Account Combination]
            = EARLIER ( 'Table A (2)'[Account Combination] )
    )
)

column.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

justinh
Advocate IV
Advocate IV

Just off the top of my head:

Group table B by the Account Combination column, summing up the Total column, then Merge table A and table B, importing the now summarized column.  

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors