Forum Discussion
Anonymous
5 years agoNot applicable
Expression.Error: We cannot convert the value "[Function]" to type Function
I have a report that I'm converting to a PBIT and then moving to another location to create a PBIX. This will involve changing some parameters to connect to other data sources. I'm getting a prob...
rohit1991
1 year agoSuper User
hi Anonymous ,
This happens when Power Query loses the function reference after exporting to .PBIT.
Solutions:
- Revalidate PriorVisitIEN in Power Query.
- Reapply "Invoke Custom Function" manually.
- Ensure the function is defined before usage in applied steps.
- Use explicit reference: = Table.AddColumn(#"Changed Type", "Prior Visit", each @PriorVisitIEN([EPI], [IEN]))
- Check parameter types to match function inputs.