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! Request now

Reply
jenani_user
Frequent Visitor

Connect two table with date and common field

Hi Team,

Got an issue while connecting two Tables A and B, the table and outputs are as shown below,

 

Table A

jenani_user_3-1690976776967.png

 

 

 

Table B

jenani_user_1-1690976748821.png

 

Expected Output

jenani_user_4-1690976900609.png

 But the output I got while connecting two table is as shown below

jenani_user_5-1690976951864.png

 

Kindly help to resolve the issue

 

Thanks & Regards,

Jen

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jenani_user ,

I created a sample pbix file(see the attachment), please find the details in it. 

Table = UNION ( VALUES ( 'A'[NAME] ), VALUES ( 'B'[NAME] ) )
NTarget = 
CALCULATE (
    SUM ( 'A'[TARGET] ),
    FILTER ( 'A', 'A'[NAME] = SELECTEDVALUE ( 'Table'[NAME] ) )
)
NAmount = 
CALCULATE (
    SUM ( 'B'[AMOUNT] ),
    FILTER ( 'B', 'B'[NAME] = SELECTEDVALUE ( 'Table'[NAME] ) )
)

vyiruanmsft_0-1691114792286.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jenani_user ,

I created a sample pbix file(see the attachment), please find the details in it. 

Table = UNION ( VALUES ( 'A'[NAME] ), VALUES ( 'B'[NAME] ) )
NTarget = 
CALCULATE (
    SUM ( 'A'[TARGET] ),
    FILTER ( 'A', 'A'[NAME] = SELECTEDVALUE ( 'Table'[NAME] ) )
)
NAmount = 
CALCULATE (
    SUM ( 'B'[AMOUNT] ),
    FILTER ( 'B', 'B'[NAME] = SELECTEDVALUE ( 'Table'[NAME] ) )
)

vyiruanmsft_0-1691114792286.png

Best Regards

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.