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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Link two data tables to get column value from two different length part numbers

Hi All

I have two tables as seen below, with one table call Catalog # and the second table call Catalog Table. For the Catalog # table I need the Category Name pulled from the second table. Any help is welcome. Thanks

 

bu965_0-1626980541158.png

 

1 ACCEPTED SOLUTION

Hi,

Here's a solution using measures only.  Download the PBI file from here.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

Thanks this works. I appreciate your help

v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to the information you provide, you can create a one-to-one relationship between the two tables, and then add the catalong field to the slicer. I did a test for reference as follows:

vhenrykmstf_0-1627289492066.png

vhenrykmstf_1-1627289524575.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

Anonymous
Not applicable

Thanks for the reply . So the first table Catelog # could have a short or long number and yes I can do the 1 to 1 relationship.

 

If the Catalog # is a long  or short number (can't control)  but I need to look up to the Catelog table and have power bi determine if the catalog # is short and long and pull the category name. Let me know if this provides clarity.

 

bu965_0-1627471331336.png

 

selimovd
Super User
Super User

Hey @Anonymous ,

 

would be easier when you show the details in Power BI. Now I can just guess they are connected in a 1:1 relationship.

In this case you can just use the RELATED function as calculated column:

Category Name = RELATED( 'Catalog Table'[Category Name] )

 

Otherwise you could also use LOOKUPVALUE to find the value.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

Hi Denis

I have the relationship 1:1 setup from Catalog # to the to the catalog table to the short item number but struggle with the measure to pull the informaton of the Catelong table fields when the Catalong # is either a short or long number.

 

bu965_0-1628890957121.png

Thanks for your support

Hi,

Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish

Let me know if this helps. I dont have the ability to attach an excel file.

 

Catalog #
2166243
2834884
2835380
283559600
2836639
283708200
283717700
283840900

 

Long Item NumberShort Item NumberCategory Name
2166243002166243ES
2834884002834884MM
2837177002837177MM
2835380002835380FA
2836639002836639MM
2835596002835596MS
2837082002837082FA
2838409002838409SP

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish 

Thanks for the help and this does work. Just one more question. Is there is a way i can do this also without going into the query but doing this as a measure in a report?

Hi,

Here's a solution using measures only.  Download the PBI file from here.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.