1) from the link "https://docs.microsoft.com/en-us/power-bi/service-r-packages-support " ->"For security and privacy reasons, R packages that provide client-server queries over the World-Wide Web (such as RgoogleMaps) in the service, are not supported. Networking is blocked for such attempts. See the following section for a list of supported and unsupported R packages. "
However, the package that I use to connect to the DB is supported by Service("DBI" package). And the package was basically made to connect to databases, so it would be weird to support it but to not allow most of the stuff to work.
This might be another problem but they don't explain what the consider as not required. My connection is required but maybe they don't think it is.
After testing for a bit I managed to put all my code, including dbconnection and fetching of the query, inside a barplot function. So i don't believe that much that this is the problem as it would be super weird that he would consider something as not required for the visual when it is inside the funcion that creates the visual
Are the limitations incomplete or are the supported packages wrong?
Am I doing something wrong or is it a powerBi problem?