cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

comparing column values to get the related field value as output

Hi Team,

In column "Output", I want to get the "Function" value of "Related Task".

Example : For TASK ID "TASK-1151", RELATED TASK ID is "TASK-1151".

So, the output value is "Others".

need help.jpg

Kindly help me , how to acheive this. ?

Best Regards,
Mahesh

2 ACCEPTED SOLUTIONS
Ani1991
Resolver III
Resolver III

Hi @Anonymous,

 

If I understood your question correctly, I have the below solution.
I prepared the sample data similar to that of yours as below. 
image.png
Once you have this data click on Edit Queries and select Merge Queries. You will get a pop up window like below. Select the same table name in the second drop down. Now select Related Task Id column for the above table and Task ID for the below table and select Left Outer Join and click on OK.
image.png

Now click on expand table and select the new column as below.Change its name to Output.
image.pngimage.png
The final output is as below. Click on Close and Apply and use the results in a table visual.

image.png

Hope this helps!!

 

Thanks,

Ani

View solution in original post

Anonymous
Not applicable

Hi @Ani1991 ,

 

Thanaks for your answer. Your solution will works fine.

 

But you had given complex process. Myself found another solution, which is simple and easy.

 

DAX : 

Output = LOOKUPVALUE(GetIssues[Function ],GetIssues[Task ID],GetIssues[Related Task ID])

View solution in original post

2 REPLIES 2
Ani1991
Resolver III
Resolver III

Hi @Anonymous,

 

If I understood your question correctly, I have the below solution.
I prepared the sample data similar to that of yours as below. 
image.png
Once you have this data click on Edit Queries and select Merge Queries. You will get a pop up window like below. Select the same table name in the second drop down. Now select Related Task Id column for the above table and Task ID for the below table and select Left Outer Join and click on OK.
image.png

Now click on expand table and select the new column as below.Change its name to Output.
image.pngimage.png
The final output is as below. Click on Close and Apply and use the results in a table visual.

image.png

Hope this helps!!

 

Thanks,

Ani

View solution in original post

Anonymous
Not applicable

Hi @Ani1991 ,

 

Thanaks for your answer. Your solution will works fine.

 

But you had given complex process. Myself found another solution, which is simple and easy.

 

DAX : 

Output = LOOKUPVALUE(GetIssues[Function ],GetIssues[Task ID],GetIssues[Related Task ID])

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors