Power BI Quick Tip: Using Dynamic M Query Parameters with SQL​​

Power BI Quick Tip: Using Dynamic M Query Parameters with SQL​​

Data Platform Central

2 года назад

31,099 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@pauf.9111
@pauf.9111 - 31.10.2023 13:07

Thank you very much !!

Ответить
@arunkoshyg
@arunkoshyg - 15.10.2023 16:50

Nice presentation. Its a dynamic report isn't it. I mean values changing on real time basis.

Ответить
@13akanksha
@13akanksha - 13.10.2023 05:46

I cannot find the option on bind to parameter, why so ??

Ответить
@user-ye2jh9of1x
@user-ye2jh9of1x - 12.10.2023 10:29

Thank you very much my friend!

Ответить
@user-pi2rp7tk4u
@user-pi2rp7tk4u - 05.10.2023 06:01

Does it work if the datasource is Oracle SQL?

Ответить
@tatsianastarastsenka6251
@tatsianastarastsenka6251 - 13.09.2023 04:06

Hi,
Thank you for the video. It's great. Have you tried with multi-selection for parameters of date type? I really need this.

Ответить
@hadialmumayez999
@hadialmumayez999 - 05.09.2023 11:43

does it work on power bi server?

Ответить
@cosminmoga3037
@cosminmoga3037 - 04.09.2023 18:14

Great video sir!. What if I need a 4th parameter that is let's say an item form that store? How can I make the store slicer, filter the 4th parameter? Right now I am stuck at this for more than 2 months and I cannot find a way to do it. THX! Basicaly I need the 4th slicer to be filtered by the store name and only after that to send the query

Ответить
@shreekantgosavi4726
@shreekantgosavi4726 - 30.06.2023 22:12

This is one of most underated video when it comes to advanced power bi
Great work sir

Ответить
@aryansena7290
@aryansena7290 - 21.06.2023 13:07

Is not possible for import mode? I have the same requirement in import mode.

Ответить
@tanaytupe5029
@tanaytupe5029 - 25.05.2023 18:00

Is there a reason I don't see "Bind to parameter" in the "Advanced" section.

Ответить
@dineshzoomyt8879
@dineshzoomyt8879 - 24.05.2023 09:10

little complexity in the concept explained.

Ответить
@boo-ke6wr
@boo-ke6wr - 14.04.2023 01:09

It looks like you are using Power BI desktop as I am as well but I do not have the 'Bind to parameter' feature. I looked at documentation and I believe its only for the cloud version. My settings do not have even have the ability to enable Preview Features. Please verify as to whether this is the case as I saw another article posted by Microsoft using the 'Bind to parameter' and never mention if this feature is not on Desktop (onprem) and just on cloud.

Video is great though! Thanks.

Ответить
@muhammadsuleman7824
@muhammadsuleman7824 - 18.03.2023 09:40

im facing Message=Conversion failed when converting date and/or time from character string.

Ответить
@anandkumarmadireddi7515
@anandkumarmadireddi7515 - 14.03.2023 17:44

Great video and awesome explinations. But when I check the backend SQL, both Dynamic M Query and normal filter with in report are having similar query profiles (query execution plan) for database. (in this case Snowflake is the database). Even if we create the report with out dynamic M query, the filters are being pushed down to database query, so that it only return the specific filtered data back to PBI. So can you please explain if there is any specific reason to go for dynamic M query?

Ответить
@ritzky100
@ritzky100 - 28.02.2023 10:41

Hi i am using a posgreSQL database. The creation of the parameters works fine but i cant create new tables for the StartDateValues as long as i am in Direct Query Mode.
This seems only to be possible in Import Mode. Do you have any suggestions how to avoid this problem?

Ответить
@srlabhe
@srlabhe - 20.02.2023 23:19

Nice info, How would I add date flgs as dynamic , my Date Dim has many date flags and I wanted to change M query in such a way that If I use any of date flags it should filter data accordingly

Ответить
@tharanya
@tharanya - 15.02.2023 02:34

Hi sir will RLS work for these type of reports

Ответить
@robertosiga
@robertosiga - 04.02.2023 04:30

Very good! Thank you and greetings from the friend of Brazil

Ответить
@gauthamn1603
@gauthamn1603 - 19.11.2022 09:29

Hi sir video looks good. I have a stored procedure, i need to pass two parameters dynamically to get the output. Will this solution work ?

Ответить
@DHARMYOGCOM
@DHARMYOGCOM - 16.11.2022 10:31

dhunyawad

Ответить
@aoraveed7896
@aoraveed7896 - 15.11.2022 13:50

Good explanation, Thank you so much. BTW, how I add another Multi-select M Query Filter in the same query?

Ответить
@bensalazar5763
@bensalazar5763 - 08.11.2022 19:11

great video, i was able to set up the parameter and include in my quey as well as bind a table and create a slocer with it. The issue im having is that when i select the value in the slicer it does not refresh my data with the new value. I know that my parameter is working because when i change it on the back end in the power query editor it refreshed the data correctly, any one have this same issue ?

Ответить
@NikitaSharma-ds4eu
@NikitaSharma-ds4eu - 26.10.2022 15:29

Hello, I am trying to create two parameters and pass them as date range in a sql function query that returns the output of the view based on date range. I have followed the video, but when selecting start date and end date from slicer the matrix does not interact, it adjusts data according to the startDate & EndDate entered in parameter manually. It would be really helpful if gotten some advice. Thanks :)

Ответить
@ajitverma6047
@ajitverma6047 - 14.10.2022 13:42

Hello , this very helpful , can we use the same thing for RLS in direct query mode?

Ответить
@Patiencelad
@Patiencelad - 11.10.2022 14:46

Very clear explanation! Thank you!

Unfortunately, I still can't get this to work. Bind to Parameter on my slicer dim is selected, but it's not binding. Any ideas? I have the latest PBI version. No syntax errors. (single) Parameter is text and &'d with single quotes in the SQL (Server).

Ответить
@sreejithdas1766
@sreejithdas1766 - 03.10.2022 19:56

Very useful sir

Ответить
@irmdev595
@irmdev595 - 01.09.2022 23:12

25 MINUTES is definitely not a quick tip

Ответить
@akashragi2347
@akashragi2347 - 01.09.2022 18:04

Can I Use this functionality for changing the database names ? I need to allow users to change the database names using parameters in Power BI

Ответить
@anuragbawankar685
@anuragbawankar685 - 22.08.2022 10:36

Thanks a lot Sir !

Ответить
@oghdgy1552
@oghdgy1552 - 12.08.2022 17:57

Hi so I have been trying to do this for work but I coming across the issue where “Bind to Parameters” is not available. I am using direct query to a SQL server and have the preview features set properly. I keep seeing online that you aren’t able to do this with SQL server however you just did it. Any ideas?

Ответить
@kevinmarti2099
@kevinmarti2099 - 11.08.2022 10:16

Hi there

Is there a way to dynamically assign a value to the parameter like using a meassure which returns a value? I know thats currently not available because you cannot bind a meassure but would absolutelly change my game.

Ответить
@rajeshkumar-qx5bx
@rajeshkumar-qx5bx - 09.08.2022 12:09

Hello sir, thanks for the video. I have tried the same but I'm seeing the interaction not happening with date slicer and the data available on the grid. Though I bind the parameter, the interaction is not happening. I could see only the data only showing for the default value. I'm not sure where I made the mistake. Can you please assist me. Thanks

Ответить
@deborahhaagenson549
@deborahhaagenson549 - 04.08.2022 02:46

Hello - I am not able to create a table to store the calendar dates to select from and bind to the parameters. Do you know if Power Query added the feature to create a table or removed it at some point. If so do you happen to know about when that might have happened. I really need this to work. We need to limit our SQL data. If I use Import mode I don't have the option to bind the data. I am assuming I'm missing that option in Relationships when in Import Mode. In Direct Query Mode I can't create the tables to bind. Any suggestions or information would be appreciated. Thanks!

Ответить
@shreyansjain9276
@shreyansjain9276 - 31.07.2022 20:12

Hello. Can you please tell me that if the data is fetched as a direct query into power BI is not a table but a view created in the source.. In my case it is Snowflake tool... Still does Dynamic M query parameter can be applied on the same with the help of slicers?

Ответить
@shrt50
@shrt50 - 17.07.2022 16:00

Great explanation i was actually looking for this ...

Ответить
@sahuanalogchannel
@sahuanalogchannel - 29.06.2022 17:48

@Sir, How will the page level filter will work here. Can we use page level filter above this.

Ответить
@Akshay-Mishra
@Akshay-Mishra - 20.06.2022 15:48

Hi, Thanks for the video.

I have a case where let's say User doesnot want to select any value from the slicer, and he expects to see all values in the result. But in my case I see that if no value is selected in the slicer, the result shows only those rows which corresponds to initial parameter single value that was set. How can we overcome this?

Ответить
@alexzw1686
@alexzw1686 - 24.05.2022 18:55

is this functionality gone? After last powerbi upgrade functionality seems to be not available anymore?

Ответить
@karlaguerra1602
@karlaguerra1602 - 16.05.2022 22:54

Hi! I followed this video step by step but I´m getting the error: "Query (2, 14) The M parameter 'StartDate' not defined in model or M parameter type is not valid."
Do you have any idea what is the problem? Thanks

Ответить
@sohailansari9337
@sohailansari9337 - 23.04.2022 03:03

Can we use this to SQL Store procedure please assist 🙏

Ответить
@huseyincrak8171
@huseyincrak8171 - 03.04.2022 18:39

Hello, thanks for video. I have applied dynamic M query parameter exactly the way you told in the video but I have encountered a problem. I have created a slicer and put my field into it, but when I click on the "Search" on the slicer, it gaves me ORA-00904 error. Any guess related to this error? Thanks in advance.

Ответить
@vinayak_sharma
@vinayak_sharma - 22.03.2022 14:43

Thanks for the info. It worked fine on PowerBi desktop but not after publishing it to power bi service.
Getting error "the connection string used for the mashup data source is invalid or the gateway needs to be upgraded to the latest version"
Gateway is have double checked and it is updated.

Ответить
@earthdigit
@earthdigit - 22.03.2022 02:04

First, I really liked your video. I am using an ODBC SQL query. The error is "Expression.Error: We cannot convert a value of type Record to type Text'. The SQL as displayed gives the string as expected. This is hitting an oracle db. Any ideas? Thank you. I am still new to PBI so lots to learn and will be back to your channel.

Ответить
@amarchandbatwalkar5634
@amarchandbatwalkar5634 - 21.03.2022 08:11

can you please create video for multi select m parameter to data flow of power bi

Ответить
@sharavananp5570
@sharavananp5570 - 19.03.2022 16:16

fantastic, awesome explanations, and great effort !!

Ответить
@KD-ph3vi
@KD-ph3vi - 16.03.2022 10:22

I have followed same steps as per vdo, but at the end data is not filtering as I filter the data

Ответить
@93onepiece93
@93onepiece93 - 11.03.2022 14:00

Hello, Great video. Question: I have a table clientID that based on the user entering the report will see certain results. With this dynamic parameter M can I update from SQL all the data of only a respective cliendID? (For now I always have to load massively on all clientIDs)

Ответить
@patrickbcox
@patrickbcox - 03.03.2022 16:03

Very helpful, Thanks!

Ответить
@jenyura
@jenyura - 02.03.2022 06:32

Very useful. Would be great if you could increase screen when you type. I have small screen and cannot see text

Ответить