Forum Discussion
perpor
9 years agoHelper V
Power BI advaced query Editor
good morning I am searching if it possible to use variables, in the advanced query editor, something like this: instead of: ------------ let Origine = Sql.Database("99.99.99.99", "Mydb"...
- 9 years ago
Yes, just add the named variable in a previous step, for example:
let
myVar = "66",
Source = "myUrl" & myVar
in
SourceThis returns "myUrl66"
deldersveld
9 years agoResident Rockstar
Yes, just add the named variable in a previous step, for example:
let
myVar = "66",
Source = "myUrl" & myVar
in
Source
This returns "myUrl66"
- perpor9 years agoHelper V
thanks, it works... (the best would be to have global variables, for all the report, but this is already helpful..)
- deldersveld9 years agoResident Rockstar
Try looking into parameters. They can be used across queries.
- v-huizhn-msft9 years agoMicrosoft Employee
Hi perpor,
If you have resolved your issue according the helpful reply, please mark it as answer, so other people can find workaround clearly.
Thanks,
Angelia