Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Error Message 1:
I keep getting the following error on app.powerbi.com:
"Error in pivot_wider(data, names_from=names,values_from=values): could not find function "pivot_wider""
I load the 'tidyr' package as a required library.
I get the same error when using "spread" instead of pivot_wider.
Error Message 2:
When I specify the function using:
tidyr::pivot_wider(data, names_from=names, values_from=values)
I get a different error: "Error in loadNamespace(name): there is no package called 'tidyr'".
PowerBI Desktop everything works perfectly fine. It's only on the published PowerBI report that I get the error.
Question:
What can I do to resolve this issue? Alternative library / function to 'pivot_wider' or 'spread'?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.