Skip to main content

Power BI

Needs Votes

Function to access environment variables

Vote (3) Share
Steven Fayers's profile image

Steven Fayers on 28 Jun 2020 14:51:33

Be able to read environment variables from the current machine (Power BI Desktop) either through a dedicated data source, or a built-in function that is equivalent to environ () in VBA or getenv () in java.

Comments (2)
Steven Fayers's profile image Profile Picture

Andrew Roger Johnson on 22 Feb 2021 11:17:44

RE: Function to access environment variables

Hello,
I have a situation where we need a lot of data in the data model on the server but when developing the reports locally we don't need all that data. Therefore I need to have access to an environment variable which can be used to help filter the data depending on whether running on the service or the desktop.
Regards.
Andrew.

Steven Fayers's profile image Profile Picture

Lucian C on 02 Sep 2020 07:51:43

RE: Function to access environment variables

Hello,

It would be nice to have access to some environment info. For example I have a situation where I don't have access directly to data source and I need to know if the report is published or in "desktop" to change a data source automatically.

Kind Regards,
Lucian