Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Guys,
I want to use this DAX formule in Power Query.
Path = IF(Medewerkers[Active] = "true", PATH(Medewerkers[Email],Medewerkers[Manager Email]),BLANK())
So I tried the following codes in Power Query. But I am getting error about Stackoverloop. I realy dont know what does it means.
let
myfunction=(myvalue)=>
let
mylist=Table.SelectRows(Timestamp,each [Email]=myvalue)[Manager Email],
result=Text.Combine(mylist)
in
if result= null or result ="" then "" else if @myfunction(result)=null or @myfunction(result)="" then result else result & "|" & @ myfunction(result)
in
Text.Combine(List.Reverse(List.RemoveItems({[Email]}&{[Manager Email]}&Text.Split(myfunction([Manager Email]),"|"),{"",null})),"|")
Thanks in advance!
Solved! Go to Solution.
Please see this article. It provides a way to do PATH equivalent with M in your query. One of the selectable outputs matches the output by the PATH function. It also has fewer limitations that the PATH function (see article).
Guest Post: Using List.Accumulate for Input/Output Genealogy – The BIccountant
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Anonymous, I am facing very similar situation as you - I have both condition and path function in DAX that I need to translate to M. I have been trying to write it according to the enclosed webpage but it is still not working. The condition is just always wrong. Can you maybe share how you combined IF and PATH and it worked? Thank you very much for any guidance!
Please see this article. It provides a way to do PATH equivalent with M in your query. One of the selectable outputs matches the output by the PATH function. It also has fewer limitations that the PATH function (see article).
Guest Post: Using List.Accumulate for Input/Output Genealogy – The BIccountant
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |