Power Query Parameters - Dynamically Change the Output of Your Queries Depending on Their Value

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Power Query Parameters give you the flexibility to dynamically change the output of your queries depending on their value. As Power Query records the transformation steps, it includes many hardcoded values within the M code.
    What if we want to change these values? We could edit the query each time, which would be very time-consuming. Or we could create parameters!
    Parameters in Power Query are really easy. In this video you will learn how to create a Parameter in Power Query as well as create a parameter in an Excel Cell.
    You can download the practice example here: buymeacoffee.com/missmicrosof...
    00:00 Introduction to Parameters
    01:15 Creating the Query
    02:31 Creating the Parameter
    03:43 Assigning the Parameter to the Query
    05:42 Creating More than One Parameter
    07:43 Creating a Power Query Parameter in an Excel Cell
    ✅ Please see link to video mentioned in this video:
    🎦 Power Query Advanced Editor: • Getting Started with t...
    🎦 Create a Dynamic File Path - Change the Power Query Source Based on a Cell Value: • Create a Dynamic File ...
    🎦 Power Query Custom Functions: • Power Query Custom Fun...
    ✅ If you would like to subscribe to The Query Editor Newsletter for more Power Query content:
    🗞️ thequeryeditor.beehiiv.com/
    ✅ If you would like to connect on LinkedIn:
    🤝 www.linkedin.com/in/missmicrosoft
    ✅ If you would like to buy me a coffee, so I can get my caffeine in to keep creating as many videos as possible for you :). It's really quick and easy, please use this link:
    ☕www.buymeacoffee.com/missmicr...
    ✅ For more videos please subscribe:
    🔔 / @missmicrosoft
    ✅ For more Power Query videos please use the links below:
    🎦 Power Query in Excel Beginners Tutorial: Combine Multiple Excel Sheets, Automate & Transform Data: • Excel's Power Query: T...
    🎦 Power Query Age Analysis - Create an Excel Age Analysis Report Using Power Query: • Power Query Age Analys...
    🎦 Power Query Error Handling - How to Deal with Power Query Errors Part 1: • Power Query Error Hand...
    ✅ Please also check out my Excel course on Udemy, please use this link:
    📖 www.udemy.com/course/excel-fo...

ความคิดเห็น • 62

  • @MissMicrosoft
    @MissMicrosoft  8 หลายเดือนก่อน +1

    Be among the first 100 to jump on board "The Query Editor" newsletter 🚀. It's packed with super-actionable tips and insights. Why should you be excited? 🌟 Because the first 100 subscribers will receive an exclusive 50% discount on my upcoming mini-course, set to drop early next year (or perhaps even sooner)! 🤞Just hit this link to subscribe thequeryeditor.beehiiv.com/subscribe
    🚀🔥

  • @iankr
    @iankr 2 ปีที่แล้ว +1

    Excellent! Thank you. You always explain things clearly.

    • @MissMicrosoft
      @MissMicrosoft  2 ปีที่แล้ว +1

      You’re most welcome Ian, glad I could help!

  • @venkyr81
    @venkyr81 5 หลายเดือนก่อน

    Thanks for creating this vedio and adding multiple scenarios into it. This one vedio cover parameter well. Appreciate your effort.

  • @MosheAtkins393
    @MosheAtkins393 5 หลายเดือนก่อน

    Thanks, that was a great video, really helpfull

  • @wayneedmondson1065
    @wayneedmondson1065 2 ปีที่แล้ว +1

    Very nice! Well explained and useful information. Thanks for demonstrating. Thumbs up!!

    • @MissMicrosoft
      @MissMicrosoft  2 ปีที่แล้ว +1

      Hi Wayne, thank you so much!!! And I took your suggestion and added the workbook in the description :)

    • @wayneedmondson1065
      @wayneedmondson1065 2 ปีที่แล้ว

      @@MissMicrosoft Great! Always helps to be able to follow along and practice :)) Thanks!!

  • @charliechaplin2716
    @charliechaplin2716 ปีที่แล้ว +1

    Your channel is underrated! Good job. 👏 I shall recommend your channel in my network!

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Thank you so much for the support Charlie Chaplin! It’s highly appreciated :)

  • @ThGrum
    @ThGrum 10 หลายเดือนก่อน

    Excellent, there's nothing more to say. Thank you for that professional tutorial. Greetings from Bavaria.

    • @MissMicrosoft
      @MissMicrosoft  10 หลายเดือนก่อน

      Thank you very much! Glad you liked it.

  • @user-ii8xg2nb9v
    @user-ii8xg2nb9v หลายเดือนก่อน

    thank you for video

  • @julie_chen
    @julie_chen 4 หลายเดือนก่อน

    👍👍👍👍

  • @kebincui
    @kebincui 2 ปีที่แล้ว

    Excellent 👍🏻 thanks

    • @MissMicrosoft
      @MissMicrosoft  2 ปีที่แล้ว

      Thank you Kebin :) you’re most welcome

  • @heeren.9
    @heeren.9 ปีที่แล้ว

    Medam, Nice Teaching.. Clear speech.. 👍🏻👍🏻

  • @RyanLeishman
    @RyanLeishman ปีที่แล้ว

    Really useful. I haven’t used parameters before.
    For the product table, instead of pulling in a table you could pull in a named range to power query.

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว +1

      Glad the video was helpful. Yes you could definitely use a named range instead.

  • @mirekkryskapriv7445
    @mirekkryskapriv7445 ปีที่แล้ว

    Great! Thanx!

  • @mehrdadazimi2298
    @mehrdadazimi2298 6 หลายเดือนก่อน

    Great! Thank you

    • @MissMicrosoft
      @MissMicrosoft  6 หลายเดือนก่อน

      You are welcome!

  • @sudiptaghosh5855
    @sudiptaghosh5855 2 ปีที่แล้ว

    Hello Miss 🙂nicely expained...thanks a lot...keep uploading such videos...love from India

    • @MissMicrosoft
      @MissMicrosoft  2 ปีที่แล้ว +1

      Thank you Sudipta for your kind words! I'm so glad the videos are helpful! If you haven't yet subscribed please subscribe as it really helps the channel grow, thank you so much for your support!

  • @Faisal63045
    @Faisal63045 2 ปีที่แล้ว

    Awesome thank you

    • @MissMicrosoft
      @MissMicrosoft  2 ปีที่แล้ว

      It's a pleasure Faisal, glad it was helpful :)

  • @gregbernard7861
    @gregbernard7861 ปีที่แล้ว

    Great video / just subscribed!

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Glad you enjoyed the video Greg. Thanks for subscribing!

  • @luigisir6893
    @luigisir6893 8 หลายเดือนก่อน +1

    Excuse me, one question! But if instead of the month we had taken the day as a dynamic variable, would it have worked the same? Or does this dynamic filter only apply to text variables? Thank you for the great video and your answer!

  • @FRANKWHITE1996
    @FRANKWHITE1996 ปีที่แล้ว

    Thanks for sharing ❤

  • @maysarrose6649
    @maysarrose6649 9 หลายเดือนก่อน

    Thank you so much. 7:45 saved me from dying in an assignment 😭

    • @MissMicrosoft
      @MissMicrosoft  9 หลายเดือนก่อน

      I’m so glad I could help!!!

  • @Anything_Interesting
    @Anything_Interesting 11 หลายเดือนก่อน +1

    how to query more than one value dynamically? for example I want jan and feb data to appear

  • @ankitsaxena5966
    @ankitsaxena5966 26 วันที่ผ่านมา

    What if I want to see two months data....

  • @cassielemke5217
    @cassielemke5217 ปีที่แล้ว

    Does this work in PowerBI?

  • @icyyp5866
    @icyyp5866 7 หลายเดือนก่อน

    cant seem to do this with date values any tips?

  • @prakashpatil426
    @prakashpatil426 2 หลายเดือนก่อน

    How to use create parameter in version 2016

  • @republikadugave420
    @republikadugave420 ปีที่แล้ว

    Can this be a multiple selection?

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Yes it can, please see 05:44 of this video for the second parameter created in the same query, so you can follow the same method to create as many parameters as you require in the same query.

  • @eslamfahmy87
    @eslamfahmy87 ปีที่แล้ว +1

    Hi 👋..actually, very nice but could you distribute ur video into 2 or 3 videos with shortage muints and each video explain one point in order to understand for immediate levels 😀
    Thanks 😊

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Hi 👋 thanks for the suggestion 😊

  • @dineshzoomyt8879
    @dineshzoomyt8879 ปีที่แล้ว

    i want this concept from sql server. plz explain

  • @edwinruizcolon5707
    @edwinruizcolon5707 ปีที่แล้ว

    Can I use the dynamic parameter for 6 different sheets in the same workbook? I am building a workbook with 6 tables and I want to do the dynamic parameter in another sheet and set it to connection only.

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว +1

      Yes you can most definitely do that.

    • @edwinruizcolon5707
      @edwinruizcolon5707 ปีที่แล้ว

      @@MissMicrosoft Thanks. I was able to do it. I thought it was not possible at first because the filter was not applying to all sheets. The problem was in the data type configuration of some sheets .

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      @@edwinruizcolon5707 Glad to hear you were able to do it :) thanks for letting me know!

    • @edwinruizcolon5707
      @edwinruizcolon5707 ปีที่แล้ว

      @@MissMicrosoft I am having the following issue. Not related to original question but hopefully you can help me. I developed an excel file with power query reading files from a folder on a shared folder of my organization. I, creator of the file, can refresh the file and query steps run without issue. However others members of my team cannot do it. They see the following error
      “Query references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.”

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว +1

      @@edwinruizcolon5707 this can definitely be fixed, you can either ignore the error or fix it, fixing it is definitely the safer option, please watch this video here for the fix: th-cam.com/video/SLn5sAL3WnQ/w-d-xo.html but if you want to ignore the error, please check out this video here: th-cam.com/video/T5aWvqf9SnM/w-d-xo.html. I hope it helps!

  • @MunasibSpace
    @MunasibSpace ปีที่แล้ว

    10/10 on choosing timestamps of referrals. Liked. Subscribed. What's your twitter handle?

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Thank you for the support, it’s much appreciated! I’m not yet on Twitter, I’ll share it when I get an account.

    • @MunasibSpace
      @MunasibSpace ปีที่แล้ว

      @@MissMicrosoft I have a small power query assignment to outsource and you seem a potential candidate. Please DM or connect.

    • @MissMicrosoft
      @MissMicrosoft  ปีที่แล้ว

      Hi Danish, let's chat, please email me at missmicrosoft@ignite-work.com