cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PbiCeo
Helper II
Helper II

How to get product names based on IDs across two tables which have one to many relationship

Hello everyone,

 

I want to get product names related to the same IDs between tables createing a measure or calculated column on the TableA and display them on a slicer.

TableA:

Date IDaProductName
2021/6/1 1book
2021/6/2 2note
2021/6/3 3pen


 

TableB:

Date IDbKW
2021/6/4 4123565
2021/6/5 2467234
2021/6/6 53423

 

The relationship between the tables is IDa (many) to IDb (one).
I try a measure and calculated column to do this, but I can't get correct values due to error.
Any idea, please?

Thanks,

Vladi

1 ACCEPTED SOLUTION
Fowmy
Super User IV
Super User IV

@PbiCeo 

You can add a Calculated Column in Table B with the following formula:

Name = RELATED( TableA[Product name] )




Did I answer your question? Mark my post as a solution! and hit thumbs up


Blog - Data Visualization

Website   YouTube    LinkedIn   PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User IV
Super User IV

@PbiCeo 

You can add a Calculated Column in Table B with the following formula:

Name = RELATED( TableA[Product name] )




Did I answer your question? Mark my post as a solution! and hit thumbs up


Blog - Data Visualization

Website   YouTube    LinkedIn   PBI User Group

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors