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
AGo
Post Patron
Post Patron

Replicate DAX function in Power Query M

Is there a way of replicate dax function PATH() , also PATHLENGTH() if possible, in Power Query M, in the query editor?

 

Thank you

2 REPLIES 2
v-caliao-msft
Employee
Employee

@AGo,

 

There is no such a function in Power Query. What we can do is create a custom function in it, and achieve similar feature in Power Query, please refer to the link below to see the details.
https://bondarenkoivan.wordpress.com/2016/09/09/unfold-child-parent-hierarchy-in-power-query/

 

Regards,

Charlie Liao

This solution goes in stack overflow for me.

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.