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.
Hi Guys,
this is the asnwer which i got from microsoft to use python query approach in power bi:
2. If you still prefer to use Python to retrieve the value of the environment variable, please create a shared query for each environment variable and then reference this shared query in all other queries.
Step1: Create a shared query (e.g. SyntheticBasePath)
let
path = fnGetPath(ParamCostMgmtSyntheticPath)
in
path
Step2: Reference SyntheticBasePath in other queries
let
Source = Csv.Document(
File.Contents(SyntheticBasePath & "BudgetFact.csv"),
[Delimiter = ",", Columns = 12, Encoding = 1252, QuoteStyle = QuoteStyle.None]
)
in
Source
cam anybody explain how this is working and why this is better approach?
Best,
Jacek
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.
User | Count |
---|---|
14 | |
13 | |
12 | |
8 | |
8 |
User | Count |
---|---|
17 | |
10 | |
8 | |
7 | |
7 |