Forum Discussion
perpor
Helper V
9 years agoPower 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
Resident Rockstar
9 years agoYes, just add the named variable in a previous step, for example:
let
myVar = "66",
Source = "myUrl" & myVar
in
Source
This returns "myUrl66"
- perpor9 years ago
Helper V
thanks, it works... (the best would be to have global variables, for all the report, but this is already helpful..)
- deldersveld9 years ago
Resident Rockstar
Try looking into parameters. They can be used across queries.
- v-huizhn-msft9 years ago
Microsoft 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