This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am trying to use a text parameter to set the key of a key: value pair within an Options record that gets used in Web.Contents(). The use case aside, the key of the key: value pair will not accept the parameter value but instead comes through as the parameter name. The value, however, comes through as the parameter value.
Here's a look at the variable set as the parameter value, getting passed into the Options record. Then, in the next image, the output parsed as Text.
Can anyone explain why this is happening or confirm that this is a bug?
Solved! Go to Solution.
Hi @Anonymous ,
you cannot use that syntax to define a record field with a variable name.
Instead, simply leave that field out when defining the record and add that variable named field using the Record.AddField-function.
There, in the 2nd parameter you can reference another paramter or query step.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @Anonymous ,
you cannot use that syntax to define a record field with a variable name.
Instead, simply leave that field out when defining the record and add that variable named field using the Record.AddField-function.
There, in the 2nd parameter you can reference another paramter or query step.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.