Forum Discussion
pbinewdev
3 years agoNew Member
Is it possible to programmatically set the data panel name for a web data source that is a CSV?
If I add a web data source and set it as an api I am developing for my app e.g. https://www.myapp.com/api?key=12345&data=AppStats (which returns a CSV), then once it's connected it shows as ?key=123...
- 3 years ago
Unfortunately the example didn't work, but the concept is sound! Changing the URL to https://www.myapp.com/api/AppStats.csv?key=12345&data=AppStats did work.
Thanks 🙂
Adamboer
3 years agoResponsive Resident
It is possible to set the data panel name for a web data source that is a CSV by specifying the name of the file in the URL. For example, if the URL is https://www.myapp.com/api?key=12345&data=AppStats.csv, the data panel name will be "AppStats". Alternatively, you can also rename the data source in Power BI after it has been imported. There is no header that can be set to communicate the name to Power BI.
- pbinewdev3 years agoNew Member
Unfortunately the example didn't work, but the concept is sound! Changing the URL to https://www.myapp.com/api/AppStats.csv?key=12345&data=AppStats did work.
Thanks 🙂