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! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |