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

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])

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.