Forum Discussion
How to Perform Power Query (M) Drill down on all Rows
I have found that using the Function.Invoke clause, I was able to get a list of errors. Does anybody know how to solve the blow error that is resulting from the Applied Step = Table.AddColumn(table,"newcol", each Function.Invoke(each [ID],[Accounts]))?
The error is "Expression.Error: Cannot convert the value "Dixon Projects" to type List." The thing is, i just want the returned value to be "Dixon Projects" in the specific record for [newcol]. Each error recognizes the string text specifically that I want returned in that row.
How can this last step be done?
Hi gj-bizguy ,
Please see the parameters explaination of Function.Invoke():
Function.Invoke( function as function, args as list) as any
The second parameter requires a list parameter while you have used a column in it so it would remind the convertion error.
In addition, you have said that [ID] is a function type, perhaps you can consider sharing a sample query about it and the expected output.
Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.