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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
luizpansarini
Regular Visitor

Check if columns Exists in other Table

Hi everyone!

 

I need to create a measure that checks how columns (Process and Problem) of my table1 exist in table 2. If it does, return the field's Deployment date in new column, it is not, return blank in that new column

 

How can I do?

Table1Table1Table2Table2

 

 

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

@luizpansarini,

 

Better to add a calculated column instead.

Deployment Date =
LOOKUPVALUE (
    Table2[Deployment Date],
    Table2[Category], Table1[Category],
    Table2[Product], Table1[Product],
    Table2[Process], Table1[Process],
    Table2[Problem], Table1[Problem]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@luizpansarini,

 

Better to add a calculated column instead.

Deployment Date =
LOOKUPVALUE (
    Table2[Deployment Date],
    Table2[Category], Table1[Category],
    Table2[Product], Table1[Product],
    Table2[Process], Table1[Process],
    Table2[Problem], Table1[Problem]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

@luizpansarini  do you need both the problem and process to match?

 

i am not sure if this is the most elegant way but i would probably create a table in the middle

 

i.e a unique list of all the problems + processes as a key

 

and then create that key in either table too, and then join them with bi directional relationships

 

then all you need to do is create a measure a firstdate(date), lastdate(date) sort of thing but i might be oversimplifying this





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




i need both to match.

can u show me some steps for this?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.