Create A Parameter Table For Your Power Queries

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 70

  • @HowToExcelBlog
    @HowToExcelBlog  4 года назад +1

    Check out my full courses and ebooks here
    👉 www.howtoexcel.org/courses/

  • @GeertDelmulle
    @GeertDelmulle 5 лет назад +8

    I guess that’s one way of doing this.
    I prefer reading the parameters directly from Excel into the appropriate step. No need for additional queries.
    Currently I use this trick to read a folder path and I added another parameter to be used as a keyword to only include those files where their file names include said keyword.
    Super easy and IMO way simpler that your solution.
    Regardless, PQ rocks!

    • @mauriciogamboa4113
      @mauriciogamboa4113 5 лет назад

      Hello Geert! How do you do it directly from Excel? Thanks

    • @HowToExcelBlog
      @HowToExcelBlog  5 лет назад +2

      I think he's referring to the power query editor, home tab, manage parameters.
      The down side is you have to open the editor to update parameters.

    • @GeertDelmulle
      @GeertDelmulle 5 лет назад +3

      Gents,
      I meant it literally the way I wrote it.
      Watch this video right here on how it's done:
      ruclips.net/video/0NX-GctfZuU/видео.html
      You're welcome.

    • @SolidSnake59
      @SolidSnake59 5 лет назад +1

      @@GeertDelmulle Agree that's easier.

    • @paulmartinlife
      @paulmartinlife Год назад

      It's useful to have an alternative, though I prefer the solution here. Thanks Geert for the pointer to an alternative...

  • @kirkyit
    @kirkyit Год назад

    Thanks for such a great demonstration. Very easy to follow and understand, and I was easily able to adapt to my own specifc need.

  • @SonJboy45
    @SonJboy45 Год назад

    Thank you! Finally! I've been trying to search this for 3 hours now. This really helped.

  • @Ryan-zz6hh
    @Ryan-zz6hh 4 года назад +4

    Bless you, sir. This is a good video! I knew there must be a better way to change data sources in PowerQuery... this will help immensely.

  • @Crashdownfully
    @Crashdownfully 2 года назад +2

    Exactly what I was looking for. Thank you so much!

  • @paulmartinlife
    @paulmartinlife Год назад

    Very useful and basic, just what I was looking for. Thank you.

  • @graemegourlay2850
    @graemegourlay2850 3 года назад +1

    Great tutorial. Worked perfectly using a parameter to generate a string for a JSON API call. Used a data validation list into the parameter table and a macro in button to refresh the data. From a user perspective means picking a value from a list and clicking a refresh button. Now...to figure out if I can to the equivalent of this in Power BI.

    • @HowToExcelBlog
      @HowToExcelBlog  3 года назад

      You could use a power app visual to input a value, then refresh via power automate called from power app.
      But since you only have 8 refreshes, you're better to pull all data into Power BI, then filter it via slicer.

  • @kageri4334
    @kageri4334 2 года назад

    Thank you so much! Exactly what I'm looking for.

  • @GreenTrogo
    @GreenTrogo Год назад

    Thanks! This is exactly what I was looking for!!

  • @Jubeiki
    @Jubeiki 3 года назад +1

    Exactly what I wanted, thank you !

  • @Quint2411
    @Quint2411 4 года назад +3

    I kinda get the same sort of error as LK Lai, just slightly different:
    An error occurred in the ‘fParameter’ query. Expression.Error: The key didn't match any rows in the table.
    Details:
    Key=
    Parameter=Folder
    Table=[Table]
    I did look for exact matches including case and tried it a few times from scratch but keep getting this error at the last step. Any idea what might cause it?

  • @Libertravis
    @Libertravis 2 года назад

    Very very helpful. Thanks a lot.

  • @philippeberard505
    @philippeberard505 4 года назад

    Very clear tutos. Many thanks!

  • @kimbilton4928
    @kimbilton4928 4 года назад +1

    Hi John
    Nice video. I switched the code around because I was using get folders. I worked great.
    My question is If am using folders in one query and single files in another query.
    How does that work with the table or does this only work once and I would have to have another table for a different query?

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      No, you can use the parameters in the table across any of the queries in your workbook.

  • @dobrinyanicitich7514
    @dobrinyanicitich7514 3 года назад

    Thank you for your work, very helpful

  • @renatovianello874
    @renatovianello874 3 года назад +2

    Good video John! I am one of your faithful followers from Italy. Unfortunately the link to download the example workbook doesn't work. I subscribed many times, but no download followed.

  • @enricomendiola9952
    @enricomendiola9952 2 года назад

    Hello Sir. Great Video tutorial. This will solve my problem. Is it possible Sir to create a video like this but with an additional parameter which allows you to put a start date and end date? Thank you

  • @jerrydellasala7643
    @jerrydellasala7643 Год назад

    I've used parameters in cells and tables before, but I love this technique! BTW, the download page isn't working. Keep up the good work!

  • @zequnchen6043
    @zequnchen6043 4 года назад +1

    Thanks a lot for sharing. I did the same steps but got an error "We cannot convert a value of type Table to type Function.
    ".. any idea about why?

  • @lklai9179
    @lklai9179 5 лет назад +5

    I was hit by this error:
    An error occurred in the ‘fParameter’ query. Expression.Error: The key didn't match any rows in the table.
    Details:
    Key=Record
    Table=Table
    How do I resolve it?

    • @HowToExcelBlog
      @HowToExcelBlog  5 лет назад

      Sounds like you have a spelling error between the function input and what's in the table. These need to be exact matches including case.

    • @UU-ry6gt
      @UU-ry6gt 4 года назад +1

      I had the same issue. Reason was the empty space in the column name. Try to use: #"Column Name"; value = Source{[#"Parameter "=ParameterLable]}[Value]

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Or avoid spaces in your column names 👍

    • @alexninorueda
      @alexninorueda 3 года назад

      i have the same error and cant find why is it

  • @samirlaidi4067
    @samirlaidi4067 2 года назад

    Thanks a lot

  • @BreyonnaMorgan18
    @BreyonnaMorgan18 4 года назад +1

    Bless you

  • @DhasseLOL
    @DhasseLOL 4 года назад

    I have my post api query up and running successfully thanks to your other video, now I just need to add parameters which brought me here! :)
    I need my parameter to be inside the Content of the API call. E.g. Content=Json.FromValue([parameter]). The parameter is locations={{1,1},{2,2}}. I have tried having it all as the parameter as written here, but it doesn't work. I also tried only having the list {{1,1},{2,2}} as a parameter, writing ([locations=parameter]) as the function argument. It did not work either. What's wrong?

  • @salleymartinez7927
    @salleymartinez7927 Год назад

    Hi there! What if we have a file that we need to Connect to only and not load to?

  • @WJA5
    @WJA5 4 года назад +1

    Great video.... I have a simple question: what if I have multiple files that are created and come to me on semi monthly that I need to use power querry to merge into one table. If the reports are similar month to month but they named differently (i.e. 1ReportJuly2020 vs. 1ReportAug2020), can I use this process? Thank you very much !

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад +1

      Are your files in a folder? Can combine them using the folder query.

    • @WJA5
      @WJA5 4 года назад +1

      @@HowToExcelBlog Giid Afternoon...Yes files will be placed in folder each time reports are created. Will this process work? Thank you again!!

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      It's the first tip here ruclips.net/video/Hj4PVFYhqhQ/видео.html

  • @stevennye5075
    @stevennye5075 4 года назад +1

    nice idea!

  • @rockstarfreddyworld2251
    @rockstarfreddyworld2251 4 года назад +1

    Sources are very easy to update. I came here to find out what parameters are used for but found nothing.

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Use them for anything you want to change in the query.

  • @anasir007
    @anasir007 5 лет назад +1

    Can we download this workbook?

  • @allabout1135
    @allabout1135 5 лет назад +3

    I am stucked in here. My source is folder. And I need to make exactly the same what is in video. If it is possible. Can You explain how it mus to be set up when the source is folder?

    • @HowToExcelBlog
      @HowToExcelBlog  5 лет назад +1

      Just set up a parameter in your table for the folder path. Then replace the source step with this parameter.
      Where did you go wrong?

    • @allabout1135
      @allabout1135 5 лет назад +1

      @@HowToExcelBlog Have no idea, when I am trying to do this trick woth folder path I got an error. Hawe no idea what I could do more, already tried all. :(

    • @allabout1135
      @allabout1135 5 лет назад +1

      All good. Find that, I did not name parameter table. So good lesson. Thanks!

    • @HowToExcelBlog
      @HowToExcelBlog  5 лет назад

      Good to hear you sorted it out!

  • @abbasmachinewala853
    @abbasmachinewala853 4 года назад +1

    What do you mean when you say ‘I have labelled this as parameter lable’

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Been a while since I made the video, but I probably meant I named the table ParameterTable. You can name any table in the table tools tab that appears when a table is selected.

  • @stevennye5075
    @stevennye5075 4 года назад

    useful!

  • @gauravchhajed832
    @gauravchhajed832 4 года назад +1

    Wow

  • @DinoAMAntunes
    @DinoAMAntunes 3 года назад

    Please i cant download the file from example

  • @olmedocop
    @olmedocop 4 года назад +1

    How this could be done in power BI?

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      You could use the enter data feature to create a table.

    • @olmedocop
      @olmedocop 4 года назад +1

      How To Excel what if it is published ? I’m looking a way for connecting a field in the dash board with the query something like a variable that can be used either in DAX or Lenguage M environment

    • @HowToExcelBlog
      @HowToExcelBlog  4 года назад

      Use enter data, then show in a slicer on the report, then use SELECTEDVALUE DAX function.

  • @taoli5497
    @taoli5497 3 года назад

    👍

  • @ahdianpuguh
    @ahdianpuguh 3 года назад

    How about you 'prepare' all of this and just upload the picture of power query logo instead. Lol.