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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
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

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

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

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.