Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamic M Query Parameter

Hello All,

 

I want to pass my Slicer filter directly to SQL source in power BI using Dynamic Parameter.I created two parameter but the Binding to paramter option is not showing in the Modelling tab. Could you please help on this how to modify the M query and how to get the Parameter binding option .Below is the sample SQL query and i used direct query mode only

SELECT * FROM Table
WHERE
"Application_ID" = 'PIC' AND
"BuName" = 'BU' 

  • Anonymous's avatar
    Anonymous
    3 years ago

     my requirement i need to use Direct query mode only and the above SQL is sample only i have huge millions of data in my DB.Thats the reason I am planning to use dynamic M query Parameter

3 Replies

  • ppm1's avatar
    ppm1
    Solution Sage

    This is possible but why not just connect with Direct Query with no native query, and use slicers for those two columns on your page. The selected values will be passed back as filters to your source.

     

    Pat

  • Anonymous's avatar
    Anonymous
    Not applicable

     my requirement i need to use Direct query mode only and the above SQL is sample only i have huge millions of data in my DB.Thats the reason I am planning to use dynamic M query Parameter