Dynamic Power BI reports using Parameters

Sdílet
Vložit
  • čas přidán 23. 05. 2017
  • In this video, Patrick shows you how you can use a parameter, within a Power BI report, to dynamically change the data in a report. This uses M Functions within Power Query and a second source that has the key values to pull. Then using a gateway to enable refresh.
    LET'S CONNECT!
    Guy in a Cube
    -- guyinacube.com
    -- / guyinacube
    -- / guyinacube
    -- Snapchat - guyinacube
    -- / guyinacube
    **Gear**
    Check out my Tools page - guyinacube.com/tools/
  • Věda a technologie

Komentáře • 471

  • @davidcarballasreboredo
    @davidcarballasreboredo Před 7 lety +101

    it´s not just that your solutions are great, the way your videos are presented is fantastic!

    • @GuyInACube
      @GuyInACube  Před 7 lety +3

      Thanks for the feedback David! much appreciated!

  • @unionblitz
    @unionblitz Před 6 lety +3

    Patrick, this was wonderful! These explanations are very well thought out and contextual to common issues I personally run into often with Power BI.

  • @espy58
    @espy58 Před 5 lety +1

    I just started with Power BI and this helped me with a solution. Thank you very much. I did notice that parameters now have an option for Query in addition to a list or a value. But I couldn't figure out how to use it. Your solution worked great for me.

  • @srenjensen9235
    @srenjensen9235 Před 7 lety +162

    To avoid the Native Query Edit permissions just go to the Security tab in Options and deselect 'Require user approval for new native database queries' - BAM.

  • @jairovera8065
    @jairovera8065 Před 3 lety

    This was a phenomenal tutorial Patrick. Everything you said was clear and easy to follow.
    I'm currently working on a POC at work where we want to retrieve data using a REST API, which takes in 5 parameters. The users will need to be able to modify the report based on the parameters.
    I was able to modify your example to use a REST API and I created an excel to store different combinations of parameters. I followed along and was able to invoke the API for different combinations of parameters.

  • @alejandrarodriguez3328

    Great video! I did something like this importing the parameter excel table, and establishing a relationship with the main table that limits the report. Probably not the most efficient way as relationships add run time. Did not use parameters. What I like about this video is how it casually introduces ways to use parameters and custom functions. Thanks!

  • @HMZ89
    @HMZ89 Před 5 lety

    Patrick.......I just feel like giving you a hug. This was fantastic

  • @AntonioSantos-ve6zv
    @AntonioSantos-ve6zv Před 5 lety

    You're born for it! Brilliant way to present the solutions, as well!

  • @kimdwill
    @kimdwill Před 6 lety

    Patrick!!! You are about to take me to school! I love the way you present. This video was very helpful. Thank you!

  • @GLayne
    @GLayne Před 6 lety

    This was an amazing tutorial! Love the delivery! You got yourself a new fan!

  • @joshuaoha
    @joshuaoha Před 6 lety +4

    Some of this is above my head but I'm learning a lot and enjoying your videos. Thanks man!

    • @GuyInACube
      @GuyInACube  Před 6 lety +1

      We all started somewhere! Keep learning the clicks! Thanks for watching.

  • @rdongre
    @rdongre Před 6 lety +1

    Being new to Power BI, had been looking for a solution for exactly same problem for days and i stumbled upon this video and solved it within few minutes! Thank you so much!!

    • @GuyInACube
      @GuyInACube  Před 6 lety

      That's awesome! I love hearing stuff like that. Welcome to Power BI and to a new adventure. 👊

  • @TheDistractionStudio
    @TheDistractionStudio Před 7 lety +1

    First time watching your video and paused the video to write this comment before I finish the rest of the video. LOVE your presentation style. I can feel the same frustration sometimes when stakeholders ask random challenging stuff but it's fun and I always accept it. Kudos to your hard work and especially the way you present it. Hollywood next stop maybe?

  • @fangedmenace
    @fangedmenace Před 5 lety

    Brilliant, this was the only comprehensible explanation of parameters I could find! Thank you!

  • @malowalo
    @malowalo Před 5 lety +2

    Great work Patrick! You’re very clear on your explanations and I enjoyed seeing your videos! You have a new subscriber...

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Awesome!!! Thank you so much for the kind words and for watching 👊

  • @pabeader1941
    @pabeader1941 Před 3 lety

    4 years later and you are still helping me!

  • @rabsonlungu
    @rabsonlungu Před 5 lety

    Patrick, Awesome job! You're exceptional at it. Keep sharing.

  • @paul46722
    @paul46722 Před 3 lety +1

    Absolutely love your presentation style. Really informative content and very entertaining too. Cheers.

  • @grateous7993
    @grateous7993 Před 3 lety

    You are awesome man! I actually understood this first time through, unlike the 1 on 1 tutorial I had at work.

  • @joknt438
    @joknt438 Před 5 dny

    You are a legend! Used the same principle on a web query to pass multiple stations to a string. Love it!

  • @thebiccountant
    @thebiccountant Před 7 lety +4

    Very nice vid!
    As you said, you can use for so many purposes: Fill in some URLs in your Excel workbook & you have a web-scraper: Create a query that takes a URL as a parameter and turn that into the function that you call instead.

    • @GuyInACube
      @GuyInACube  Před 7 lety +1

      So many possibilities :) Thanks for watching!

  • @georgian2133
    @georgian2133 Před 5 lety

    Its first time to use parameters in Power BI your video really helped to understand the basic thanks.

  • @renaudmontes7247
    @renaudmontes7247 Před 4 lety

    Loved the form and the function, thanks Patrick!

  • @PauloSilvaBarros
    @PauloSilvaBarros Před 6 lety +1

    Nice video Patrick! It is not a solution to the problem what i'm searching, but takes me to a mind blown about how can i create good reports.

    • @GuyInACube
      @GuyInACube  Před 6 lety

      +Paulo Silva Barros awesome! Glad to hear 👊

  • @vpin3515able
    @vpin3515able Před 4 lety

    This is really Awesome Patrick.
    Kudos to your guys.

  • @romankultajev3660
    @romankultajev3660 Před rokem

    Exactly what I needed. Thanks for growing my knowledge with a smile!

  • @reneebender7789
    @reneebender7789 Před 6 lety +1

    Thank you so much! This video just solved a problem I was having trying to filter down rows of data. I didn't realize I could just use a sql statement. Awesome!

  • @mickaeltaieb733
    @mickaeltaieb733 Před 5 lety

    Awesome content and engaging presentation. Thank you sir!

  • @pipriders
    @pipriders Před 5 lety

    thanks for this amazing video man . its solved a same problem i was struggling from last couple of days api call with with hundreds of parameters

  • @billyrowe0064
    @billyrowe0064 Před 2 lety

    I've used like 10 of your videos to combine all of this magic into one solution. I've subscribed.
    I have an API URL that shows a monthly agreement details for all of my clients. To get more details of what is covered under that agreement, I needed to enter in the agreement # into the API URL.
    "finance/agreements/agreementID/whatscovered"
    I want it so that the report has two tables, the agreements and when you select the agreement ID, the bottom table shows those details.
    Basically, clicking the top table column ID will set a parameter and re-run a query.
    I can't figure out how to do that, but this method allowed me to gather those details right now and create a table with them so that they can be referenced later.

  • @wynhopkins8438
    @wynhopkins8438 Před 7 lety +1

    Really good videos guys. Keep up the great work, this stuff is really useful for people.
    One suggested improvement would be to keep your student list in an Excel Table (Ctrl + t), to avoid accidents if someone inserts a row or column in that Excel file.

  • @kevinjlovell
    @kevinjlovell Před 5 lety

    Great example. Used this basis to connect to an API with a changing variable. Thanks for the help.

  • @armandsn8205
    @armandsn8205 Před 7 lety

    It´s my first time visiting this channel, it´s a ingenius solution to your problem, also the way the video is presented is very fun! Congrats. Have you ever try to make dynamic the report, reciving parameters for the report URL?

  • @Stelios.Posantzis
    @Stelios.Posantzis Před 5 lety

    Great stuff! Nice presentation - very easy to follow : )

  • @justme1810
    @justme1810 Před 4 lety

    This was so helpful! Exactly what I was looking for

  • @mhein5589
    @mhein5589 Před 8 měsíci

    This was awesome, and I was able to pass two parameters in the same table. Thank you!

  • @ramachandravarmamandapati7476

    Great video on calling stored procedure from Power BI. Thank you very much.

    • @GuyInACube
      @GuyInACube  Před 5 lety +1

      Thanks for watching Ramachandra! 👊

  • @tzeyongtee1579
    @tzeyongtee1579 Před 7 lety +1

    Great stuff!! This is exactly what I was looking for the other day!

  • @kalicharankhetwal
    @kalicharankhetwal Před 6 lety +1

    i loved the way you present and make the things very easy. great

  • @luisaquino5556
    @luisaquino5556 Před 5 lety

    Great video! You've helped me a lot. Quick question, if I am making a report that has model numbers and their related data, how could I go about making the report appear with no data until the user uses the filter function to show data for model numbers they choose to filter?

  • @vinayliesure
    @vinayliesure Před 5 lety

    i have tried loading with sql table. it worked well, thank you. Good stuff

  • @siddheshmisale3904
    @siddheshmisale3904 Před 5 lety

    Amazing technique! Thanks for this!

  • @lenac3587
    @lenac3587 Před 5 lety +1

    Inadvertently stumbled upon how to remove prefix for column headers. Was wondering about that and had to remove them in M-code the slow painful way for a dozen queries. So happy to see how to resolve this here. Had to slowdown the speed, back up and pause many times to make sure I didn't miss anything.
    As a constructive feedback, it's kinda distracting and makes it hard to watch when the video switches rapidly snapping us out of the computer screen and watching Patrick's expressions explaining something although it makes it more interesting and less monotonous. It's like a sudden jolt, not complaining. Nevertheless learn a lot from this invaluable training which I have bookmarked for future reference.

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Glad it was helpful for you Lena! Appreciate the feedback as well.

  • @fredt3727
    @fredt3727 Před rokem

    Legend, this revolves some of the issues with not being able to use dynamic M parameters / slicer input with queries (in import mode)
    as you can try to pre-fetch the data using the function and give the user the "slicer" experience too (in a Rest API scenario, where the API is very restrictive in terms of data slice)

  • @rameshkn8203
    @rameshkn8203 Před 6 lety

    Nice way of presentation man!!!!! Keep it up!

  • @mikehawryluk5558
    @mikehawryluk5558 Před 7 lety +2

    Awesome video and clever simple solution!

  • @TheKZA
    @TheKZA Před 7 lety +2

    Great video, thanks. I've been wanting to know how to do this for ages.

  • @Mago_Legend
    @Mago_Legend Před 5 lety

    Excellent job man!!!
    It helped me so much.
    Thank you.

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Awesome! Thanks for watching. Glad it helped.

  • @chrisweis
    @chrisweis Před 5 lety

    Love the Triumph dog impression at 2:33, Patrick :-)

  • @JonathanCHANAL
    @JonathanCHANAL Před 5 lety

    Man... you are just awesome ! that gives me so much possibilities ! Thank you very much ! Excellent !

  • @tcaworf
    @tcaworf Před 5 lety +1

    Nicely done Patrick!

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Appreciate that! Thanks for watching. 👊

  • @joelatino3748
    @joelatino3748 Před 3 lety

    This is so great. You guys are kings.

  • @soy34mb
    @soy34mb Před 4 lety

    Thank you.
    PATRICK, YOU ARE A GENIUS!!!

  • @onlydarkwar
    @onlydarkwar Před 5 lety +1

    You have just blown my mind, I mean the potential of this tool, I just can't stop thinking about the posibilities thanks a lot!!!!

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Awesome! 👊 Also, so much has come to Power BI since this video was published.

  • @TheRehan110592
    @TheRehan110592 Před 5 lety

    I wish all tutorial videos just like "guys in a cube". Thanks !!!

  • @jeffkeryk3550
    @jeffkeryk3550 Před 5 lety +1

    I was looking for this a year ago... Awesome-sauce!

    • @GuyInACube
      @GuyInACube  Před 5 lety

      Perhaps even #WasabiMustardSauce awesome! :)

  • @merkstamde9115
    @merkstamde9115 Před 7 lety

    Hey Cubesters, great video! I'm in awe of your creativity in coming up with solutions that automatize everything so neatly and concise.
    If I may, I have an issue of my own which I simply cannot find the solution to.
    I pass a custom query in advanced editor to a MYSQL server and would like to make it dynamic by passing a parameter inside the query. However, I'm unaware of how I'm supposed to that inside the ""WHERE"" part of the query. For example, I've created a parameter (LUNA) which resembles the month number and would like to pass it to my query in this section ** WHERE MONTH(data)

  • @mijhaelcastrociviero2848
    @mijhaelcastrociviero2848 Před 4 lety +1

    Nice Job! Just what I was looking for! Tks!

  • @ac4613
    @ac4613 Před 6 lety +2

    Loved the video! Is there an advantage to doing this using a stored proc instead of an inner join with the SQL table to the excel file.Also, I noticed your connection imports VS live query. Can you explain why (I am a powerBI newbie)THX

  • @TheJosephDal
    @TheJosephDal Před 6 lety

    Great work, thanks man!!

  • @alexjunk6216
    @alexjunk6216 Před 7 lety +1

    Great stuff, Patrick!

  • @zenbabasha
    @zenbabasha Před 6 lety

    Excellent video with Great Point

  • @Rokkering1
    @Rokkering1 Před 6 lety +1

    Thanks for a great video! Is it possible to use this with DirectQuery or is this only supported by Import Mode? It would be awsome to use the functions and parameters to limit the number of rows returned from large datasets, making PowerBi an effective tool for big data!

  • @inspired7606
    @inspired7606 Před 5 lety

    You are a Super Power BI Expert. Thank you.

  • @danialsamar
    @danialsamar Před 7 lety +1

    Absolutely amazing. Thanks dude!

  • @DavidCubaDrum
    @DavidCubaDrum Před 7 lety +1

    Awesome trick Patrick. Thanks!

  • @hippoborntolocalgirl
    @hippoborntolocalgirl Před 7 lety +1

    Lovely video, great feature!

  • @successfullife7689
    @successfullife7689 Před 2 lety

    Unbelievable !!! Thank you very much, this is very much helping

  • @nikunjvaru896
    @nikunjvaru896 Před 5 lety

    Hi Patrick, this video was really cool, helped me a lot thanks. I hope you can help me out on how to set query parameters from javascript for PowerBI embedded like we do to set report/visual/page level filters, I dont know whether its supported or not.

  • @uniQue_XL
    @uniQue_XL Před 7 lety +4

    wow...that's hot
    great out of the box solution.
    thanks !

  • @llewellynemmanuel9907

    Great video. Great idea

  • @thomasboles4735
    @thomasboles4735 Před 5 lety +1

    Oh and by the way Patrick the videos are great and just the right speed

  • @jonmckenna8732
    @jonmckenna8732 Před 4 lety

    brilliant brilliant presentation awesome....

  • @shashindulakshitha3789
    @shashindulakshitha3789 Před 7 lety +1

    Wow! It is aaaaawesome. Many Thanks !! Great job and please keep it up buddy :)

  • @albertjeremy3956
    @albertjeremy3956 Před rokem

    Finally.. a clear usage of parameter and function.

  • @dkarolak1
    @dkarolak1 Před 6 lety

    Thank you.. was looking for this!

  • @snelaturi
    @snelaturi Před 5 lety

    This is great Patrick, do you have anything that shows how to pass parameters in Direct query mode than in Import?

  • @mshparber
    @mshparber Před 7 lety

    Awesome! Thanks a lot for the explanation! Greetings from Israel!

  • @obohara
    @obohara Před 6 lety +1

    You are a king!!

  • @nikhil1888
    @nikhil1888 Před 4 lety

    I just started learning power hi
    And this video is awesome 😃

  • @nancychow7078
    @nancychow7078 Před 5 lety

    Awesome video, it solves a big part of my project request. On top of parameters, Patrick, my user wanted to supply a date to be inserted to the report as a new column, like something they do in excel. Is it doable in Power BI and if so, how would you do that?

  • @myazigi
    @myazigi Před 7 lety +1

    Patrick...you're awesome man!!! What a clever solution.

    • @GuyInACube
      @GuyInACube  Před 7 lety

      Thank you, Mauricio! And, thanks for watching.

    • @myazigi
      @myazigi Před 7 lety +1

      Thanks to you Patrick, for take the time to teach us

  • @MartinKuzmicz
    @MartinKuzmicz Před 7 lety +1

    Great stuff - well done!

  • @valentinloghin4004
    @valentinloghin4004 Před 3 lety

    Thank you very much Patrick !!! How we should proceed if we call a function from sql and we parsing the parameter from a slicer ?

  • @amitshukla189
    @amitshukla189 Před 7 lety +2

    Hey @patrick you are super genius bro.

    • @GuyInACube
      @GuyInACube  Před 7 lety

      Thanks, Amit! And, thanks for watching.

  • @estebandagobertogarciapere8457

    Awesome Video!. Thanks. Could you pass those parameters from a textbox or dropdown button and call the storedprocedure from a button?

  • @AZGATOR2002
    @AZGATOR2002 Před 6 lety

    Wow, great videos!

  • @rayromych5534
    @rayromych5534 Před 11 měsíci

    Thanks for this great video!
    Would be nice if we could pass parameters via variable in the power bi report link

  • @jornalista4marcos
    @jornalista4marcos Před 4 lety

    Thank you very much by this lesson!

  • @g4life78
    @g4life78 Před 7 lety

    2 Thumbs Up! I have several use cases to apply this to. Thanks

  • @jyotisankarsahoo7937
    @jyotisankarsahoo7937 Před 6 lety +1

    Hi Patrick..Superb video.. I have a requirement in which I need your suggestion. I need to dynamically pass the parameters so that the report automatically filter out with respect to a ChatBOT prediction. Is it possible?

  • @indavisual
    @indavisual Před 5 lety

    Question: Can PowerBI be embedded into a Unity 3d application? And/Or can a Unity 3d application be embedded into a PowerBI tile/report?
    Sorry the question was a little off topic. I'm just having trouble finding out if this is possible and you guys are are PowerBI gurus. By the way, love the videos. Very clear, concise, and engaging.

  • @markusjager5608
    @markusjager5608 Před 3 lety +1

    Hi Patrick, Great video. How would you do the same report but instead of using a spreadsheet, let the user choose Students from a list on the report?

  • @danjartino531
    @danjartino531 Před 7 lety

    Very nice explained! I will adapt this technique to use values from another query and not Excel :)
    Thanks, Patrick!

    • @GuyInACube
      @GuyInACube  Před 7 lety

      Yup, it should work with anything. Not just an excel sheet.

  • @NorbertoVeraReatigaNVR
    @NorbertoVeraReatigaNVR Před 7 lety +1

    Muy buen trabajo! muy útil y fácil de usar... Gracias!!!

  • @CetilLee
    @CetilLee Před 7 lety

    Very nice! Any chance of seeing what that stored procedure looks like?

  • @peterkoel8736
    @peterkoel8736 Před 4 lety +1

    You are a good teacher!

    • @GuyInACube
      @GuyInACube  Před 4 lety

      Thank you Peter! That really means a lot. We are learning every day to do this better. 👊

  • @sau002
    @sau002 Před 3 lety

    Nicely explained. Can I place the Excel document in a shared location such as Azure blob storage or Sharepoint document library or some other better place you could recommend? Thank you

  • @rosswaterston
    @rosswaterston Před 7 lety +1

    Great video, my mind is blown!

  • @arpitvijay1024
    @arpitvijay1024 Před 2 lety

    Hi Patrick, it was great explaination and solved my doubts too, but is there any way I can pass two parameters in the single function, and my parameters are coming from two different SQL tables.
    Thanks