Forum Discussion
Invoke Function: Reference Query using Query name as parameter
- 6 years ago
Hi paulvans182
Sorry, probably misunderstood the original requirement.
try this
= ( strQueryName as table ) => let Source = strQueryName in SourceBest Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Hi paulvans182
Sorry, probably misunderstood the original requirement.
try this
= ( strQueryName as table ) =>
let
Source = strQueryName
in
Source
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- paulvans1826 years ago
Helper III
- Mariusz6 years ago
Community Champion
Hi paulvans182
No problem at all.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
- nfuids4 years agoNew Member
I have a very similar situation, but instead of trying to reference a query/table, I want to reference a Parameter defined in my PowerBI file (not a function parameter).
So I basically have a parameter that
TrainA = "ID OF TRAIN A"
TrainB = "ID OF TRAIN B"
and I would like to be able to tell which of the 2 parameters should my function use.
like
myTable = CallMyFunction("TrainA"). Inside my function, I do NOT want the text "TrainA" but rather the ID of train A.
I dont see a parameter type of "parameter" as you proposed with the table type. Any way around this?