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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I have a report where I need to change quickly the data source from Onedrive to the server for several queries.
I use a parameter to indicate the path, but then I also need to change the function (Web.Contents to File.Contents and viceversa).
I have tried to set it as a parameter (File_Type being either Web.Contents or File.Contents), but PowerBI does not let me do that:
Expression.Error: We cannot convert the value "Web.Contents" to type Function.
Details:
Value=Web.Contents
Type=[Type]
Is there another way to do this?
Thanks!
Kind regards
Valeria
Hi, @ValeriaBreve ;
You can check if these related post can is useful to you.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 35 | |
| 23 | |
| 22 |
| User | Count |
|---|---|
| 134 | |
| 103 | |
| 57 | |
| 43 | |
| 38 |