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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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