Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Look Up not working as expected

I have table AllWorkItems which has an ID  (ID can be in there multiple times)  and a title

 

Table WorkItemLink  has 2  Ids.   source ID and Target Id.

 

If I do this lookup   

IDTitle = LOOKUPVALUE(AllWorkItems[Title], AllWorkItems[Work Item Id], WorkItemLinks[SourceWorkItemId], AllWorkItems[Is Current], TRUE)
I get the Title from the Table.
 
If I do this and try to search AllWorkItems by Target ID i get a blank
TargetIDTitle = LOOKUPVALUE(AllWorkItems[Title], AllWorkItems[Work Item Id], WorkItemLinks[TargetWorkItemId], AllWorkItems[Is Current], TRUE)
 
I know the Target Id is in the AllWorkItems.   but it is not listed as a source Id in WorkItems links.. is that possibly the problem?
 
Cant figure out why this is not working
 
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

    I can't reproduce your problem, you can find the details in the attachment. Could you please check if there is any space in the field WorkItemLinks[TargetWorkItemId] to cause that there is no matched Work Item Id in the table AllWorkItems and  get the title?

    If it is convenient, could you please provide some sample data in these two tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    I can't reproduce your problem, you can find the details in the attachment. Could you please check if there is any space in the field WorkItemLinks[TargetWorkItemId] to cause that there is no matched Work Item Id in the table AllWorkItems and  get the title?

    If it is convenient, could you please provide some sample data in these two tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  Anonymous ,

    Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

    Best Regards