Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Is there a way to use environment variables inside the custom visual that I can access as
Hi @DevForDay,
The default webpack configuration of powerbi-visuals-tools doesn't expose process.env, so if you want to set up something similar, you must create your webpack configuration using the powerbi-visuals-webpack-plugin. In this configuration, you could, for example, use webpack.DefinePlugin to define an object that passes these values from an appropriate .env file.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Remember that Power BI Service has no concept of "environment variable"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.