The Magic of working with Records in Power Query

Ғылым және технология

Check out our newly launched M Language course ↗️ - goodly.co.in/learn-m-powerquery/
In this video, you will learn about
- What is a Record in Power Query
- Extracting Records from a Table
- Creating Records from Scratch
also, there are two practical examples of using Records that might be helpful in creating dynamic solutions.
===== ONLINE COURSES =====
✔️ Mastering DAX in Power BI -
goodly.co.in/learn-dax-powerbi/
✔️ Power Query Course-
goodly.co.in/learn-power-query/
✔️ Master Excel Step by Step-
goodly.co.in/learn-excel/
✔️ Business Intelligence Dashboards-
goodly.co.in/learn-excel-dash...
===== LINKS 🔗 =====
Blog 📰 - www.goodly.co.in/blog/
Corporate Training 👨‍🏫 - www.goodly.co.in/training/
Need my help on a Project 💻- www.goodly.co.in/consulting/
Download File - goodly.co.in/the-magic-workin...
===== CONTACT 🌐 =====
Twitter - / chandeep2786
LinkedIn - / chandeepchhabra
Email - goodly.wordpress@gmail.com
===== CHAPTERS =====
0:00 Intro
0:43 Understanding Records in Power Query
1:51 Extracting a Record from a Table
3:01 Creating a Record from Scratch
4:19 Example 1 - Summing existing columns to Create a New Column
6:54 Example 2 - Extract Steps from Power Query
9:37 My Courses
===== WHO AM I? =====
A lot of people think that my name is Goodly, it's NOT ;)
My name is Chandeep. Goodly is my full-time venture where I share what I learn about Excel and Power BI.
Please browse around, you'd find a ton of interesting videos that I have created :) Cheers!
- - - - -
Music By: "After The Fall"
Track Name: "Tears Of Gaia"
Published by: Chill Out Records
- Source: goo.gl/fh3rEJ​
Official After The Fall KZread Channel Below
kzread.info/dron/GQE.html...
License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
Full license here: creativecommons.org/licenses

Пікірлер: 115

  • @curtismusson2760
    @curtismusson2760 Жыл бұрын

    I appreciate the way you write custom column formulas piece by piece. The first example in this video demonstrates what the underscore really does. It was a lightbulb moment for me.

  • @raimundojs9547
    @raimundojs9547 Жыл бұрын

    Perfect!!! That way of extracting a particular step from a query is more than awesome! I can't thank you enough!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you liked it!

  • @ThepExcel
    @ThepExcel Жыл бұрын

    Technique to extract steps as field of record is super cool!!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thank You!

  • @andrejkrecker5639
    @andrejkrecker5639 Жыл бұрын

    Especially the last one is sooo useful. Conbine this with your "advanced group by tricks" Video and your mastering a lot of data analytics, while reducing queries immensly. Thanks for sharing this!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy to hear that!

  • @scottcha03
    @scottcha03 Жыл бұрын

    You were not wrong: the last method did blow my mind. Great stuff! Thank you!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Great to hear!

  • @larmondoflairallen4705
    @larmondoflairallen4705 Жыл бұрын

    I had no idea you could sum up columns using records. This video, the one about lists, and the one about the "each" keyword really fill in some knowledge gaps for me. Awesome content!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks! Glad you like these contents !

  • @NancyPickering
    @NancyPickering Жыл бұрын

    A mind blowing start to 2023! Thanks so much for this video.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!

  • @Sumanth1601
    @Sumanth1601 Жыл бұрын

    Hey Chandeep! Just wanted to reach out and say thanks for the great video on records in Power Query. It was super helpful and informative, and I really appreciated how clear and concise the explanations were. The examples were easy to follow and I feel much more confident in using records now. Thanks for sharing such a valuable resource!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks! Glad you like this!

  • @IvanCortinas_ES
    @IvanCortinas_ES Жыл бұрын

    Simple concepts, very valuable information. Thanks for this video.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Most welcome!

  • @debbie6085
    @debbie6085 Жыл бұрын

    Wow. That's impressive. Thank you for all your great videos.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you like them!

  • @naveenmedishetty5993
    @naveenmedishetty59936 ай бұрын

    It is blow my mind and thank you chandeep for your great work

  • @paulgallagher2987
    @paulgallagher2987 Жыл бұрын

    This is awesome! Thanks so much Chandeep. That last example of being able to reference a particular interim step is so useful. So much better than my existing workaround.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you liked it!

  • @ajayv304
    @ajayv304 Жыл бұрын

    Thanks for sharing the basic idea of what actually a RECORD is...

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad it was helpful! Ajay!

  • @williamarthur4801
    @williamarthur4801 Жыл бұрын

    Happy New Year, These videos on theory are very important when starting as so often you can see a term used but if no ones explained what it means it can be so confusing especially when starting, examples and exercises are great, but as A.F and M.R insist we have to understand the theory.

  • @paulgallagher2987
    @paulgallagher2987 Жыл бұрын

    I've just revisited this video and my initial thought for example 1 was why didn't you just hard code the column names so the add column code is a simple and readable List.Sum({[Jan],[Feb],[Mar],[Apr]}) Then your genius struck me! I realised that your method will still work when the source data has columns in for May, June, etc. I should know never to question you Chandeep! :D

  • @arunkumarkesavan6077
    @arunkumarkesavan6077 Жыл бұрын

    Happy new year Goodly!!! As always rocked !!!!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!!

  • @vishnupp5944
    @vishnupp59443 ай бұрын

    Great video

  • @elbadlis
    @elbadlis Жыл бұрын

    Awesome, Chandeep. Thanks!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you liked it!

  • @EricaDyson
    @EricaDyson Жыл бұрын

    Amazing!

  • @abhijeetshetye3764
    @abhijeetshetye3764 Жыл бұрын

    Again helpful video. Tysm Happy new year

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!

  • @abhishek12865a
    @abhishek12865a Жыл бұрын

    chandeep bhaaii guruji chaa gaye

  • @kreshunram
    @kreshunram Жыл бұрын

    Awesome content!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you enjoyed it, kreshunram!

  • @aynino
    @aynino Жыл бұрын

    Master piece !! 👌👏🏾

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you like this, Alain!

  • @karimallahwala7022
    @karimallahwala7022 Жыл бұрын

    Happy News year and the ew year starts with your great content and amazing Knowledge.Thank you very much

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!

  • @mirrrvelll5164
    @mirrrvelll5164 Жыл бұрын

    HNY!! And this is indeed mind blowing! Great one!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!

  • @yahyalouizi2695
    @yahyalouizi2695 Жыл бұрын

    thinks for your effort , it so helpful

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad it was helpful!

  • @JJ_TheGreat
    @JJ_TheGreat Жыл бұрын

    That's awesome! I didn't know you could do this kind of thing.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @prasadk5082
    @prasadk5082 Жыл бұрын

    Superb

  • @rajkumarrajan8059
    @rajkumarrajan8059 Жыл бұрын

    Excellent!!!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you like it!

  • @ndrtimdauti4173
    @ndrtimdauti4173 Жыл бұрын

    You are a genius ✨

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you think so Ndrtim!

  • @ChristianMartinez-rv5or
    @ChristianMartinez-rv5or10 ай бұрын

    minute 8:40 just blowed mi mind

  • @kennethstephani692
    @kennethstephani692 Жыл бұрын

    Great video!!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @modernboutique1389
    @modernboutique1389 Жыл бұрын

    Another master piece

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @FRANKWHITE1996
    @FRANKWHITE1996 Жыл бұрын

    Thanks for sharing ❤

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you like it !

  • @jeromeastier462
    @jeromeastier462 Жыл бұрын

    Awesome!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @nelson_k_d
    @nelson_k_d6 ай бұрын

    Thanks a ton for the awesome videos & the great explanation you do, I've learnt a lot from your videos. I tried the steps you shared for converting the steps in a query to records, but unfortunately, an error was returned: Formula.Firewall: Query 'QueryName' references other queries or steps, so it may not directly access a data source. Please rebuild this data combination. No clue on how to proceed..The files are picked from SharePoint

  • @venkat8071
    @venkat8071 Жыл бұрын

    Hi Chandeep!, Happy New Year to you and all of your subscribers😀. Thank you very much for sharing Great stuff!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy new year!

  • @GosCee
    @GosCee Жыл бұрын

    Happy New Year, Chandeep! Nicely explained. I am saving this one in my playlist because I am sure I will have use for it later. Thanks

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Sure, Happy New Year!

  • @KlausTrapp
    @KlausTrapp Жыл бұрын

    Great Idea 🤩🥇🚀

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @gurjar5708
    @gurjar5708 Жыл бұрын

    Bhai moj ker de apne ❤ first time pta chla ki power query me be sum ho jata hai Wow bhai ji ❤

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Glad you liked it!

  • @cg24356
    @cg24356 Жыл бұрын

    Genius!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thank You!

  • @user-hk1uu7nc9h
    @user-hk1uu7nc9h5 ай бұрын

    Thanks

  • @GoodlyChandeep

    @GoodlyChandeep

    5 ай бұрын

    Thanks a lot :)

  • @ajayv304
    @ajayv304 Жыл бұрын

    Marvelous

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thank You!

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi Жыл бұрын

    You are marvelous 😘

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thank you so much 😀

  • @jerrydellasala7643
    @jerrydellasala7643 Жыл бұрын

    Chandeep, I've looked but haven't found anything like this, and I think it's something right up your alley. Imagine you have 3 tables with many rows of around 12 items, and 12 to 20 columns in each table. What you're looking to do is to Append the data of the 3 tables, then group them by the 12 items, and then get the sum of the values in the other 11-19 columns. Now this can be done through the UI, but that means having to manually aggregate the SUM of each of the 12 columns. I suspect there's a way to use the column headers as well as the items in the first column to get the total for each item by each column. What would that be? Thanks.

  • @hlntuan
    @hlntuan Жыл бұрын

    Thank you bro :D

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Happy to help!

  • @wendelsilva7055
    @wendelsilva7055 Жыл бұрын

    Awesome!!! : O ( 09:23 )

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thank You!

  • @khalidmajeed2886
    @khalidmajeed2886 Жыл бұрын

    sir urdu maay bhi stuff banaaay it is a great job for urduu liistner

  • @robertlevak
    @robertlevak4 ай бұрын

    That's impressive! In example2 can you remove some of the steps of records in the end, let's say I only want some of the data. For example, I want to remove steps from records for better visibility, i just want Source, Renamed colums and grouped rows. I don't want to lose those steps, I just don't want to see them.

  • @robertlevak

    @robertlevak

    4 ай бұрын

    Got it, man this is magic, thank you so much.

  • @robertlevak

    @robertlevak

    4 ай бұрын

    I opened a new blank query, then with Record.ToTable I got data that I can filter. I opened another help query, with one row, called Number_Path, it's help to get the row number from the sheet. List with row number. let Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content], Number_Path1 = Source{0}[Number_Path] in Number_Path1 Now start the Goodly Magic! = #"Filtered rows"{Number_Path}[Value] From sheet with drop down list I choose which table I want, I have 9 tables and only one query to refresh. In one sheet :) And when a value changes in a cell, the VBA code performs a refresh :) Very cool and dynamic for presenting data. Thanks Mr. Goodly!

  • @surjaa.c
    @surjaa.c Жыл бұрын

    Just a few days ago I was wondering how to extract an intermediate step from a query. I finally gave up on it and duplicated the query instead (which was obviously not as efficient). I wish I had seen this video earlier!

  • @paulgallagher2987

    @paulgallagher2987

    Жыл бұрын

    Yep. I'm exactly the same. It was frustrating duplicating it because I knew I was making my life more difficult in the future when it came to maintaining the code.

  • @surjaa.c

    @surjaa.c

    Жыл бұрын

    @@paulgallagher2987 Yes, exactly!

  • @randolfojolongutierrez5311
    @randolfojolongutierrez5311 Жыл бұрын

    M[ aravilloso]...

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks! 😄

  • @ujwalreddyd
    @ujwalreddyd Жыл бұрын

    Hi Sandeep, first of all, Kudos to your channel and your efforts. There are many thing to appreciate about your content. The content is crisp, web page with the content, your speech clarity, quality of the video itself (background etc.). This is the first video I was few days back and I have watched many of your videos. I have one question regarding Excel/PowerQuery from many days. Can we generate a file (let's say a text file) from Excel/PowerQuery. Thank you very much in advance.

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    I don't thing you can. However you can use the ToCsv dax function to generate a csv file.

  • @ujwalreddyd

    @ujwalreddyd

    Жыл бұрын

    @@GoodlyChandeep Thank you very much for your reply. I really appreciate it.

  • @surender665
    @surender665 Жыл бұрын

    Hi Bro, Please help me to resolve my query. how can i apply hash function based on current logged in user in m query.

  • @fe_nicks
    @fe_nicks3 ай бұрын

    Hello, Chandeep! Why do you put "1" in List.Skip function (6:29) to skip first element if indexing in PQ starts from zero?! However, the function works like it supposed to.. Little confused. Thank you!..

  • @GoodlyChandeep

    @GoodlyChandeep

    3 ай бұрын

    List.Skip starts the counting from 1 Otherwise generally the indexing starts from 0

  • @1yyymmmddd
    @1yyymmmddd17 күн бұрын

    To reference any previous step in Power Query you just use that step name. No need to go through building the records table. Just don't forget to use #" " if you have blanks or special characters in the step name.

  • @azizahmedkhan669
    @azizahmedkhan669 Жыл бұрын

    please make 1 video on how to use SWITCH case for STRING DATA, i dont want to create a column, rather i want to create a measure with switch case on string data, for Example if Country column value is INDIA i want to show IND value

  • @InformationWoWiase
    @InformationWoWiase Жыл бұрын

    👏

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @QuantumIdeas
    @QuantumIdeas8 ай бұрын

    Couldn't smash the like button enough, unfortunately 🙂

  • @KawanExcel
    @KawanExcel Жыл бұрын

    this guy is M God

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

  • @pirugarden1129
    @pirugarden1129 Жыл бұрын

    how to expand record? please help

  • @Drew-y3f
    @Drew-y3f4 күн бұрын

    Let’s say you want to replace one of the records how would you do that? Let’s say the fourth record you want to replace the values.

  • @weav8060
    @weav8060 Жыл бұрын

    Ok, deleting the let and in statement is not power query. It's a manual thing. So not sure what youre suggesting about using power query to extract steps; just copy the text of any as needed.. Ie why code the extraction process? It's interesting and informative, but what I thought you were going to say was that there was a two way process, to start a query as a set of records and then translated into query somehow by adding let and in with PQ commands ...

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    I'm sorry but I haven't understood your question here.

  • @ulyssesdanosos642
    @ulyssesdanosos642 Жыл бұрын

    So your a PQ/BI developer huh? That means you follow Chandeep “Goodly” tutorials and use his tricks… Guilty as charged!

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    haha.. did someone really say that? I'd be surprised! thanks a lot!

  • @parmarrahul2680
    @parmarrahul26803 ай бұрын

    Khas Hindi me sikhate 😢

  • @SamehRSameh
    @SamehRSameh Жыл бұрын

    Marvelous

  • @GoodlyChandeep

    @GoodlyChandeep

    Жыл бұрын

    Thanks!

Келесі