Reuse Power Query steps to clean multiple excel sheets - Power BI Tips & Tricks #39

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 68

  • @hapalaj
    @hapalaj 4 роки тому +9

    A nice tutorial. Actual function creation starts at 20:00.

  • @nicoymartina
    @nicoymartina 5 років тому +6

    you just saved me hours of extra work! Thanks!

    • @CurbalEN
      @CurbalEN  5 років тому

      🎉🎉🎉🎉
      /Ruth

  • @markdawson8876
    @markdawson8876 7 років тому +2

    I am new to power query and Powerpivot hope to use BI soon , love your DAX Fridays you are a star

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Mark Dawson Hi Mark! Thanks 😊
      /Ruth

  • @JohnSullivan1
    @JohnSullivan1 7 років тому +3

    Ruth - This video solved so man problems I was having bring in some data. Thanks! How about a video getting this data from a folder with multiple workbooks containing multiple sheets.

    • @CurbalEN
      @CurbalEN  7 років тому +2

      +John Sullivan Hi John, in this video:
      m.ua-cam.com/video/PlSKlFGg-JQ/v-deo.html
      I show how to do that. Check it out (around min 26). I will make a separate tutorial so it is easier to find.
      Thanks for the feedback!
      /Ruth

    • @JohnSullivan1
      @JohnSullivan1 7 років тому +2

      I had watched that video but I forgot it included those steps. Perfect! Keep up the good work!

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +John Sullivan I will do a separate video when I am back from my vacation!
      /Ruth

  • @Bzlatar
    @Bzlatar 2 роки тому

    Thanks! Hi Alfredo!

  • @nbadvg
    @nbadvg 6 років тому +2

    Hello Hope you are doing well, this video it solved my purpose. I really thank you for posting this one.

    • @CurbalEN
      @CurbalEN  6 років тому

      Yey!!!! ...and thanks for the feedback :)
      /Ruth

  • @KawanExcel
    @KawanExcel 7 років тому +1

    Awesome tutorial Ruth , than you very much

    • @CurbalEN
      @CurbalEN  7 років тому

      +Heru Monas You welcome Heru!
      /Ruth

  • @sedarathnadcd
    @sedarathnadcd 2 роки тому

    Very nice cool explanation. Thanks a lot

  • @gxsoft
    @gxsoft 4 роки тому +1

    Very Well Done!
    A very and complex work, simplyfied!
    Thanks a lot!
    gab

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      You welcome Gab!
      /Ruth

    • @gxsoft
      @gxsoft 4 роки тому +1

      @@CurbalEN / Ruth, I 'm seeing that you answer each one of comment, that's great Too!

    • @CurbalEN
      @CurbalEN  4 роки тому

      @@gxsoft UA-cam does not show me all the comments, but the ones I get, I answer! My favorite part of doing UA-cam :)
      /Ruth

  • @jennifergies3203
    @jennifergies3203 6 років тому +3

    Thank you for this.

    • @CurbalEN
      @CurbalEN  6 років тому

      Thanks for the feedback Jennifer :)
      /Ruth

  • @mirzaali2786
    @mirzaali2786 6 років тому +3

    Superb tutorial. Could you please guide us with the similar situation but every sheets may have different number of columns. Then how would you combine the worksheet after finishing the data cleansing. For example Sheet 1 may have 20 columns and Sheet 2 may have 25 columns and Sheet 3 may have 20 columns and so on. Appreciate your guidance in this

    • @CurbalEN
      @CurbalEN  6 років тому +1

      Hi Mirza,
      How to do it would vary depending on how your data looks like.
      To get specific help, please post in the power bi community.
      Have a great Friday!
      /Ruth

    • @mirzaali2786
      @mirzaali2786 6 років тому +2

      Done posting in Power Bi Community

    • @CurbalEN
      @CurbalEN  6 років тому +1

      Perfect! Have a great weekend!
      /Ruth

  • @ThanhNguyen-px5ql
    @ThanhNguyen-px5ql 5 років тому

    Thank you. that's help me a lot!

    • @CurbalEN
      @CurbalEN  5 років тому +2

      Wonderful to hear :)
      /Ruth

  • @leandrogalvao1132
    @leandrogalvao1132 5 років тому +1

    helped wonders!

    • @CurbalEN
      @CurbalEN  5 років тому +1

      Glad to hear :)
      /Ruth

  • @saurabhbadhe5655
    @saurabhbadhe5655 3 роки тому

    Useful video

  • @edierperea5213
    @edierperea5213 3 роки тому

    You are the best!

  • @elarbidhia2015
    @elarbidhia2015 Рік тому

    Hello,
    What if I Had similar CSV files instead of one xlsx , how should I do it and will it work ? is it even possible ?

  • @joycebrereton1758
    @joycebrereton1758 4 роки тому +1

    Hi Ruth, I get the error message below. Can you help me please?
    An error occurred in the ‘’ query. Expression.Error: The key didn't match any rows in the table.
    Details:
    Key=
    Item=01/02/2018
    Kind=Sheet
    Table=[Table]

  • @purepenworld2081
    @purepenworld2081 11 місяців тому

    Like this

  • @junsuklee7147
    @junsuklee7147 7 років тому +1

    I recorded the query using File 1 and tried to apply this function to File 2. File 1 and File 2 have the exactly same format and I also changed the path in the M code, but the results were all "null." Can you think of any reason for this and how to fix it?

    • @CurbalEN
      @CurbalEN  7 років тому

      +Junsuk Lee So, file 1 is working but when you add file 2 it returns nothing?
      /Ruth

    • @junsuklee7147
      @junsuklee7147 7 років тому

      Curbal yes, when I used the original code with the file 1 name and path, it worked, but when I edited the code to file 2 and path of the file 2, the results were all "null". File 1 and 2 have the exact same format only with different data..

    • @CurbalEN
      @CurbalEN  7 років тому

      +Junsuk Lee Ok, so code works for file 1 but not file 2. It sounds like you are filtering out your data in the steps.
      Can you try to step-by-step redo the code from file 1 to file 2? That way you will see where your data "goes missing" in file 2.
      Sometimes a blank or a mistake in the data can wipe your dataset if you are filtering things out.
      /Ruth

    • @junsuklee7147
      @junsuklee7147 7 років тому +1

      Curbal Thanks Ruth, I will try the re-do to the file 2 and see the difference in the code.

    • @CurbalEN
      @CurbalEN  7 років тому

      +Junsuk Lee Hope it worked!
      /Ruth

  • @EvanKane
    @EvanKane 3 роки тому

    Hi Ruth,
    Changes in my source files are not making it over to the tables created with the custom import function. Have I done something wrong or is this a limitation of invoking a custom function in a query?

    • @CurbalEN
      @CurbalEN  3 роки тому

      Something wrong I am afraid...

    • @EvanKane
      @EvanKane 3 роки тому

      @@CurbalEN Okay. Not sure what since the initial query worked just fine. I am using Power Query in Excel if that makes a difference?

    • @EvanKane
      @EvanKane 3 роки тому

      This is my function:
      (Installation)=>
      let
      Source = Excel.Workbook(File.Contents("***************************************.xlsx"), null, true),
      APG_Sheet = Source{[Item=Installation,Kind="Sheet"]}[Data],
      #"Removed Top Rows" = Table.Skip(APG_Sheet,3),
      #"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
      #"Removed Other Columns" = Table.SelectColumns(#"Promoted Headers",{"Installation", "Site/Subdivision", "House Number", "Unit Number", "Direction (N/S/E/W)", "Street Name", "Street Type (Rd/BLVD/ST/Lane)", "City", "County", "State", "ZipCode", "Year Built", "Transfer Date", "Official Historic Home (Y/N)", "Major Reno", "Medium Reno", "Minor Reno"})
      in
      #"Removed Other Columns"

    • @EvanKane
      @EvanKane 3 роки тому

      The solution, although I don't understand why it worked, was to create a new custom function using the same steps. Copying the m-code from the advance editor didn't work. I suspect the function caches the data somehow?

  • @EminUzunN
    @EminUzunN 7 років тому +1

    Did you write a function or :)) I will watch it when I get home but I am curious :))

    • @CurbalEN
      @CurbalEN  7 років тому +2

      +Emin Uzun Hi Emin, yes I did ;)
      /Ruth

    • @EminUzunN
      @EminUzunN 7 років тому +1

      You have recorded it before a month :))

    • @CurbalEN
      @CurbalEN  7 років тому +2

      +Emin Uzun Yes, I took it out from the beginners video as I think it is a great trick that can be missed by those that dontt want to watch a long video ;)
      /Ruth

    • @EminUzunN
      @EminUzunN 7 років тому +2

      Curbal I saw that video, and said, nope this one is not for me :))

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Emin Uzun I understand ;)
      /Ruth

  • @reniervangelooven7839
    @reniervangelooven7839 7 років тому +2

    Challenging .... i will try it on our own workbooks

    • @CurbalEN
      @CurbalEN  7 років тому +1

      +Renier van Gelooven Really useful trick, hope it works for you too!
      /Ruth

  • @juskonig
    @juskonig 4 роки тому

    I don't understand why the variable "city" was used when applying the modified code? Does City = Sheet Name? HALPPP!

    • @CurbalEN
      @CurbalEN  4 роки тому

      Yes :)

    • @KrisVik16
      @KrisVik16 Рік тому

      Can you explain the city variable? It’s not equal to the actual sheet name right? Is just the dummy name?

  • @khalidmajeed2886
    @khalidmajeed2886 3 роки тому

    sir voice is too low.

  • @hiteshagarwal804
    @hiteshagarwal804 2 роки тому

    Your voice is too low

    • @CurbalEN
      @CurbalEN  2 роки тому

      Sometimes technical glitches happen :(