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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Finding a match between 2 unrelated tables

Hi All,

 

Running into a few road blocks here. Normally I'm a lookupvalue pro, but for some reason I am struggling.

 

I have two unrelated tables: Hires and Terms

 

On the hires table I want to create a lookup logic/measure to see if the new hire also shows up on the term table because they could have been a "no start" and if so, return a value of "Termed", otherwise "Active".  The reason why I need this is we only pull hires once a week and terms daily (I know, stupid) and we want to get a hold on who already termed. 

 

Sample data:

 

Active Table 

EE IDNameTitle
1234Claus, StantaCheery Man
2345Snowman, FrostyWintery Dude

 

Term Table

EE IDNameTitleTerm Date
1234Claus, StantaCheery Man12/26/2018
4564Hog, GroundWinter Screwup2/3/2019

 

End Result (Would want to show on Active table)

EE IDNameTitleStatus
1234Claus, StantaCheery ManTermed
2345Snowman, FrostyWintery DudeActive

 

Many thanks!!

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous you can use lookupvalue function to see if value exists in term table or not and based on that you can create status column



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous you can use lookupvalue function to see if value exists in term table or not and based on that you can create status column



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k That's what I was trying to do, but could not get anything to work properly because the tables are not related and cannot be related.

@Anonymous lookupvalue function doesn't need related table, it can work without related tables.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

I figured it out. It was a punctuation problem. Oops.

@Anonymous great so you used lookupvalue function, correct?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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