Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Dynamic M query parameter not working

Hi All,

I'm quite new for Power BI. As first, I have created a report to visualize the queue loads of a UiPath process. The query is working, it is gathering the successful / failed counts of items from the Orchestrator via API. This part is working, I could create a pie chart for that, but now I would like to make some settings - such as date range and queue name selection from a list - with dynamic paramters.

To do this, I have followed the blog-post tutorial (https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters), made all the settings as is written, but unfortunately I am not able to see the bind to parameters property in the Model tab.

After this, I have created a new, empty report, and did there all the blog-steps, and for M-query, I have just given back the date as a text. Here also no success, still did not see the bind to property in the Advanced part of the properties

Do you have any idea? May that be, that somehow PowerBI was not updated after the preview option change? (many restart happened, also laptop-restart.)

Would be great to get some help, since I'm struggling with this issue for days already, and without this I cannot move forward. Thanks in advance!

 

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Are you suing direct query source. Because this option is only for Direct Query Sources.

 

Also, check limitations

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters#considerations-and-limitations

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  now I read a bit more after the directquery, but could not find if it is direct or import... but when I have created the blank query as data source. and there I'm using queries like this:

let
    Path = "/odata/QueueDefinitions?$filter=Name eq '" & in_QueueName & "'",

    Auth = Json.Document(Web.Contents(BaseUrl, [Headers=[#"Content-Type"="application/json"], Content=Json.FromValue(Credentials), RelativePath="/api/account/authenticate"])),
    Token = Auth[result],

    Source = Json.Document(Web.Contents(BaseUrl, [Headers=[Accept="application/json", #"Authorization"="Bearer " & Token], RelativePath=Path])),
    value = Source[value],
    ResultRecord = value{0},
    ResultId = ResultRecord[Id]
in
    ResultId

 

So really not sure, but for me it seems to be direct query.

Anonymous
Not applicable

@amitchandak I'm absolutely not sure, but as far I know, direct query is that query type, which does not store the data in the Power BI model, but always querying for it with any load - as I know, the API is directly for that. Isn't it? I'm using the OData Version 4.0 model API for the query, and I'm getting the data always (with authentication, token, etc.) in application/json (in case this is an important information)

And I could not see anything in the limitation which would be fit for my report.

For the "filter" or parameter data, I'm generating a table, - as written in the blog as well - with this command:

StartDateTable = CALENDAR (DATE(2021,1,1), TODAY())

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.