Тёмный

Power Bi : Setting up Dynamic Parameters 

Dapper Dash
Подписаться 2,9 тыс.
Просмотров 25 тыс.
50% 1

This basic tutorial walks you through the set-up of dynamic parameters against T-SQL data sources. This is available for Direct Query.
UPDATE Use Dynamic Parameters from Row Level Security username() or userprincipalname()
• Power Bi : Using Row L...
0:00 start
1:26 Importing Data
2:33 Filter Values
4:20 Create the Parameter
6:39 Working on Custom Query
10:50 Binding the Parameter
13:10 Closing Thoughts

Наука

Опубликовано:

 

31 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@Patiencelad
@Patiencelad Год назад
Thank you so much! I looked into this about 6 months ago and was convinced it wasn't possible. Your explanation was very clear a d I will try this on a couple of my dashboards to achieve the desired effect and response time. Thank you again!
@sojourner650
@sojourner650 Год назад
Thanks, Mr. Dash! I looked at sites and forums and never found an explanation that worked for me. Your video finally got me over the problem I had! I was about 90% of the way there a couple times, but I just couldn't get it to work without your video. I had some mistakes with the Parameter settings, and I also assumed we would hook up an SQL statement to the Parameter immediately, but no: it happens when we BIND the Parameter at the end. Thanks again!
@QuantumIdeas
@QuantumIdeas Год назад
Wow. Kudos to this video. This is the most useful application of Field Parameterization in Power BI by far. Subscribed and liked. Couldn't thank you more.
@lize2957
@lize2957 10 месяцев назад
This is great! I having a difficult time figuring this out. Thanks for sharing
@shreekantgosavi4726
@shreekantgosavi4726 Год назад
This is so so good video Thanks Dapper Dash
@paulb6442
@paulb6442 2 года назад
Great explanation, definitely interested on further videos incorporating row level security.
@DapperDash
@DapperDash Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vyR0uAbLdTk.html&ab_channel=DapperDash
@uttamthakur2016
@uttamthakur2016 Год назад
Nicely explained I am able to follow and will continue to watch other videos as well
@nataliiaiatsenko7779
@nataliiaiatsenko7779 7 месяцев назад
Thanks a lot for your work!
@dikkhaict
@dikkhaict 11 месяцев назад
Thanks for the tutorial
@ganeshsingampalli3504
@ganeshsingampalli3504 Год назад
Great Explanation, provide more videos on dynamic connections. thank you from India
@anafhulu3369
@anafhulu3369 2 года назад
Thank you for sharing !!!
@prateekjain4308
@prateekjain4308 Год назад
That's Great explanation.
@pudgepudge1548
@pudgepudge1548 Год назад
Great tutorial, Do you know if this will also work for stored procedures that have parameters in them? i.e. the slicer can act as a value to pass through to a stored procedure?
@RajShankar66
@RajShankar66 Год назад
Good one . Cheers!
@moonaj89
@moonaj89 Год назад
I'm trying these steps with a custom query but using a date filter. I'm able to get it to work with a text filter but for some reason and having trouble with dates.
@dmmonera3866
@dmmonera3866 Год назад
Great Video! Can you do a video that pass multiple values into the query.
@IsmaelSilvaHomrich
@IsmaelSilvaHomrich 4 месяца назад
Sensacional!!!!! Muito obrigado.
@user-dn3hv4dd4v
@user-dn3hv4dd4v 6 месяцев назад
Sorry im new to Power BI - For Direct query, the fact table would normally have IDs (Numbers) which you would want to filter, how do you pass the lookup names to filter the fact table IDs?
@DouglasABailey
@DouglasABailey Год назад
Thanks! Very helpful. Now I just need to get it to pass the username to the query.
@nishtharawal2702
@nishtharawal2702 9 месяцев назад
Great Video! Do you have any video where I can multi select values?
@binxthecatnft3359
@binxthecatnft3359 11 месяцев назад
Im importing via an excel doc, I dont see the bind value anywhere. Ive also updated my power bi to the latest version any thoughts?
@sravanpesari1145
@sravanpesari1145 9 месяцев назад
Thanks Dash!, can we implement this with Oracle stored proc
@Alireza-ih5vu
@Alireza-ih5vu 2 года назад
Perfect
@vincentmabutas700
@vincentmabutas700 Год назад
Hi this is very detailed tutorial you create which help me a lot. Would you mind how to retrieve list and put it in direct query?
@surender665
@surender665 Год назад
Hi Please help me, I want update query parameter value based on card visual dynamically. How can i do it.
@n.r.swapna7735
@n.r.swapna7735 9 месяцев назад
Can we implement this for redshift dB
@Mukeshkumar-sl5cz
@Mukeshkumar-sl5cz Год назад
Very Informative Video. How can we insert a dynamic parameter like a dynamic list of individual values with brackets and inverted commas like ('A123','B123',C123') (not a cell reference or do no want to type individual values by creating a list parameter) which can fetch result by running the native SQL query from ODB. Appreciate your help or video on this!! Thanks Again!
@maniarasan10
@maniarasan10 Год назад
How to pass multiple values in the parameter
@rogerwong4036
@rogerwong4036 3 месяца назад
This is an excellent tutorial! Can you please show me how to pass multiple countries to a query?
@musthakhahammed6535
@musthakhahammed6535 2 года назад
Thanks sir for the detailed explanation. I have some doubts to clear. Will this work in aggregations? Can we apply rls on this parameterized model? For example, I have a big dataset to query into my model. Dataset for different clients. I need to apply the dynamic RLS into the model using userprincipalname(). Then, can I use this parameters to query only for the specific client?
@DapperDash
@DapperDash 2 года назад
I have built models with RLS and Dynamic Parameters together. I don't believe you can apply an RLS rule directly on a table that is using a a field as the Dynamic Parameter, but you can build a model where some datasets leverage dynamic parameters and others RLS rules. And yes, you can use userprincipalname() as a way to dynamically filter a query. You cannot pass the DAX function into the M Query, but there are workarounds that allow you to capture the value from userprincipal() and pass it into a dynamic parameter query. I have done this before. It requires a little bit of set up so that your end user doesn't have to select a filter. In fact, they are unaware that dynamic parameters are going on in the background. Maybe we can find some time to chat and go over this.
@musthakhahammed6535
@musthakhahammed6535 2 года назад
@@DapperDash Big thanks for the reply. In my case, I have to parametarize the dataset using client name. And also the userprincipalname () will also configured for each client. Is that possible to use both parameters and rls togather in my case? And could you mention some workarounds to make this work?
@DapperDash
@DapperDash Год назад
Sorry it took me a while to get you the solution: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vyR0uAbLdTk.html
@irmdev595
@irmdev595 Год назад
i made sure i checked matching data types and its a direct query but i cannot see the bind to parameters option in the advanced tab any clue why?
@DapperDash
@DapperDash Год назад
Are you querying against a TSQL data source? (Azure, MSSQL, MYSQL...). I have also seen it bug where I have had to delete the parameter and recreate it.
@chriskeo392
@chriskeo392 Год назад
😎 you are 👑 More content on this content
@DapperDash
@DapperDash Год назад
Thanks for the love Chris. Hope all is well.
@Lemmy_at_home
@Lemmy_at_home 2 года назад
Hi my friend nice explanation but: at position 11:11 you show the setting for "Bind to parameter" but in my May 2022 version the field doesn't exist. Which version did you use that? Or is that not possible with PBI Desktop for Reporting Server?
@irmdev595
@irmdev595 Год назад
no one has this answer
@nyekoKimmy
@nyekoKimmy Год назад
having the same problem. Has anyone found any solutions yet?
@80Huang
@80Huang Год назад
i perform query through oracle database and having the same problem, hope there is solution for this
@kmedreda
@kmedreda Год назад
hello guys did you fond a solution ? i cannot found thé " Bind to parameter"
@Lemmy_at_home
@Lemmy_at_home Год назад
Hello, everyone, it now works in version: 2.112.1161.0 64-bit (December 2022). You only have to wait 5 months, then the solution will come almost by itself. Now I'm happy. If you still have questions, just leave a post.🤩
@wimb909
@wimb909 Год назад
Does changing the filter work with the customerquery? If I change it nothing happens
@DapperDash
@DapperDash Год назад
I am not sure what you mean by changing the filter. But this should work with a custom query. The only reason it could fail is if you are passing multiple values. The example I shared is made for single value parameters
@Zikoago
@Zikoago Год назад
For some reason, it not working as a database source. I have the same tables in different databases and I want to change my source by parameter.
@Zikoago
@Zikoago Год назад
I have a table that contains the name of all the databases on my server and I want to use it as a parameter.
@allardbon1967
@allardbon1967 2 года назад
Great explanation! The next step is using the dynamic parameters for stored procedures instead of tables. Could you show us how you would do that? Thanks in advance.
@DapperDash
@DapperDash 2 года назад
Hey Allard. Good point. I used it recently in a stored procedure at my company. Let me look at putting a tutorial together. It's very similar to the way I set this one up.
@allardbon1967
@allardbon1967 2 года назад
@@DapperDash Ah, that is good news. Because I myself tried it and I cannot find a way to call a parameterized T-SQL stored procedure and bind the parameters to user-controls on the dashboard. So I see forward to your tutorial!
@kmedreda
@kmedreda Год назад
hello all , please there 's some update on it ?
@rogerpanfil877
@rogerpanfil877 Год назад
Game changer if this one can be figured out . . . Dapper Dash can you provide a video on dynamic parameters for Stored Procs????
@matthewdonut
@matthewdonut Год назад
​​@@allardbon1967 did you ever figure out how to do this, or a similar workaroubd? Would love to hear a solution, i'm completely stuck
@sahuanalogchannel
@sahuanalogchannel 2 года назад
Thank you for sharing this. I am able to perform till there but facing some issue with Select all option, can you please make a video on that. Please consider SQL SERVER data base
@DapperDash
@DapperDash 2 года назад
Saddam, There is an example of "Select All" and choosing multiple values here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-vNK4xygN8Xw.html&ab_channel=MicrosoftPowerBI You can see the code at 10:54 into the video.
@DapperDash
@DapperDash 2 года назад
Here is the code you need. You also have to enable "Multi-Select" on the column properties. I can create a tutorial for you if you want: let param = if Type.Is(Value.Type(YOURFILTER),List.Type) then Text.Combine({"'", Text.Combine(YOURFILTER,"','") ,"'"}) else Text.Combine({"'",YOURFILTER,"'"}), selectAll = if Type.Is(Value.Type(YOURFILTER),List.Type) then List.Contains(YOURFILTER,"_SelectAll_") else false, query = "Select * From dbo.YOURTABLE", filter = if selectAll then " " else Text.Combine({" Where COLUMN in (", param, ")"}), finalQuery = Text.Combine({query,filter}), Source = Sql.Database("Server", "Database", [Query=finalQuery]) in Source
@sahuanalogchannel
@sahuanalogchannel 2 года назад
Thanks a lot sir, but select all is not working in my case that's why I am worried about. I will watch this video again
@sahuanalogchannel
@sahuanalogchannel 2 года назад
@@DapperDash I just tried with SQL SERVER and it is working but with snowflake it not giving me the results I am testing it once again thanks
@chriskeo392
@chriskeo392 Год назад
Would this work on date type?
@DapperDash
@DapperDash Год назад
Yup, you can use a date. The Microsoft documentation page on dynamic query parameters uses a date field as an example: learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters
@chriskeo392
@chriskeo392 Год назад
@@DapperDash gtfoh! Man you're the 👑
@chriskeo392
@chriskeo392 Год назад
Ahh there are limitations, Can't use date slicer on it 📅!!!!
@francisjohn6638
@francisjohn6638 Год назад
Really wow :)
Далее
Power Query - Faster & Easier Parameters
13:38
Просмотров 35 тыс.
would you eat this? #shorts
00:23
Просмотров 1,5 млн
Dynamic Power BI reports using Parameters
12:21
Просмотров 395 тыс.
Fields Parameter in Action I Practical Examples
15:14
Просмотров 120 тыс.
Using Parameters in Power BI
10:12
Просмотров 75 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.
Telefonu Parçaladım!😱
0:16
Просмотров 29 млн