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
mickeydjw
Frequent Visitor

Alternative for LOOKUPVALUE in M

Scenario:  I have a dataset with Work Item ID and Parent Work Item ID.  I'm trying to create a hierarchy within the 2 to build some reports.  When I try to set it up, I receive the error that the Parent Work Item ID doesn't have itself listed in the Work Item ID, to the tune of about 120k items.  I can create a column, Lookupvalue that will give me the work item info, but that doesn't allow me to remove them from the query, so I won't be able to build my Path.

 

How can I remove the cases that don't exist from the query using M?

 

References:

 

New Parent ID = LOOKUPVALUE('Work Items - Today'[Work Item Id],'Work Items - Today'[Work Item Id],'Work Items - Today'[Parent Work Item Id])

 

image.png

1 ACCEPTED SOLUTION
mickeydjw
Frequent Visitor

Thanks to those that helped.  I facepalmed when I figured it out.  Instead of setting the PATH parent as Parent of Work Item, I set it to New Parent ID.  Problem solved.

View solution in original post

10 REPLIES 10

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.