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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Link tables and need additional information to populate new created table

Hi Experts,

I have two tables below and have them link in a relationship by Catelog# and short item number. I can create the Data table below but was trying to find out how to get the addtional short item number listed and Category Name listed in the blank yellow spaces without using query, since i will not be able to meage the two tables together using query it will have to be a Dax measure.

 

bu965_0-1629225876959.png

 

Catalog #
2166243
2834884
2835380
283559600
2836639
283708200
283717700
283840900

 

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

thanks for your reply @Anonymous 

but sorry for not very understanding, do you mean you have solved this question? if yes, could you kindly accept the answer helpful as the solution. so the others can find it more quickly.
really appreciate!

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

5 REPLIES 5
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

if you want to use DAX expressions, try this

Category Name = 
var _length=LEN(MIN('Catalog'[Catalog #]))
return IF(_length=7,CALCULATE(MIN('Catalog Table'[Category Name]),FILTER('Catalog Table','Catalog Table'[Short Item Number]=MIN('Catalog'[Catalog #]))), CALCULATE(MIN('Catalog Table'[Category Name]),FILTER('Catalog Table','Catalog Table'[Long Item Number]=MIN('Catalog'[Catalog #]))))
Short Item Number = 
var _length=LEN(MIN('Catalog'[Catalog #]))
return IF(_length=7,CALCULATE(MIN('Catalog Table'[Short Item Number]),FILTER('Catalog Table','Catalog Table'[Short Item Number]=MIN('Catalog'[Catalog #]))), CALCULATE(MIN('Catalog Table'[Long Item Number]),FILTER('Catalog Table','Catalog Table'[Long Item Number]=MIN('Catalog'[Catalog #]))))

result

vxiaotang_0-1629454416796.png

 

Best Regards,

Community Support Team _Tang

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous You could do it using LOOKUPVALUE or MAXX(FILTER(...),...). However, what I would suggest is to start with your Catalog Table query. Disable load on this query. Right-click and choose Reference. Remove the Long Item Number column and rename the Short Item Number column to just Item Number. Now, right-click the original query again. Remove the Short Item Number column. Rename Long Item Number to Item Number. Disable load on both of the queries. Create an Append query and append them together. At that point, your problem should be solved as you can relate your Catalog table to your Catalog Table table and everything will match.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi Greg

Thanks for the reply. I will try this but was trying to advoid using quieries as my dataset will allow this since its coming from corporate database. I will try the lookup value. Thanks

Anonymous
Not applicable

I think i fogure it out using the Lookup variable and using New Column . I use the measure 

Column = LOOKUPVALUE('Catalog Table'[Short Item Number],'Catalog Table'[Long Item Number],'Catalog'[Catalog #]) and got the following table results, in what I need so I can use the short item number and the Category name.
 
bu965_1-1629576487638.png
 

thanks for your reply @Anonymous 

but sorry for not very understanding, do you mean you have solved this question? if yes, could you kindly accept the answer helpful as the solution. so the others can find it more quickly.
really appreciate!

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors