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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Match two tables on two columns and populate new column with slicer value (non related field)

I have two tables ('Assets' and 'YrIncrements') example below:

lilSep_27_0-1649149724130.png

I have a slicer based on (YrIncrements['Yrs']). I would like to know if its possible to join the two tables on ['Service'] and ['Range'] and populate the slicer value in a new column within the Assets table.

 

In the Assets table there will be duplicated Service and Range pairs but unique rows due to Age_Yr value. 

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Does this your expected result?

vkalyjmsft_0-1649386540597.png

If it is, here's my solution.

Select Assets table, then click Merge Queries tab under Home ribbon.

vkalyjmsft_2-1649386741693.png

Select Service and Range column at the same time in two tables, select left outer in Join Kind.

vkalyjmsft_1-1649386623682.png

Select the expand button, then select Yrs column.

vkalyjmsft_3-1649386990293.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Does this your expected result?

vkalyjmsft_0-1649386540597.png

If it is, here's my solution.

Select Assets table, then click Merge Queries tab under Home ribbon.

vkalyjmsft_2-1649386741693.png

Select Service and Range column at the same time in two tables, select left outer in Join Kind.

vkalyjmsft_1-1649386623682.png

Select the expand button, then select Yrs column.

vkalyjmsft_3-1649386990293.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Greg_Deckler
Community Champion
Community Champion

@Anonymous Might not be understanding, but seems like you could use a Merge step in your Assets query? Maybe create a combo key column, [Service] & "_" & [Range]?



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...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.