Power Query - Split Table Dynamically

🚀 Explore the power of Power Query with our latest tutorial! Learn how to dynamically split your dataset into two using the powerful Table.SplitAt function. 📊 Watch as we guide you through the process of reconstructing and pivoting your tables seamlessly using nested Let statements. 💡 Level up your data transformation game with this step-by-step tutorial! 🔧
#powerquery #dataanalytics #powerbi #powerbidesktop #mquery #DataTransformation #ExcelTips #TutorialTime 🎥
Follow along files
github.com/jbotes/powerbiTuto...
github.com/jbotes/powerbiTuto...
M-query functions used
Table.split to Split a table into many
learn.microsoft.com/en-us/pow...
List.transform to create a new list applying a transform to a list.
learn.microsoft.com/en-us/pow...
table.selectrows returns table that meets specific conditions
learn.microsoft.com/en-us/pow...
Table.removecolumns to remove columns from a table
learn.microsoft.com/en-us/pow...
Table.promoteheaders to promote the rows in a table to the header
learn.microsoft.com/en-us/pow...
Table.unpivotothercolumns to translate all other columns (other than specified) into attribuet value pairs.
learn.microsoft.com/en-us/pow...
Table.combine returns a table by merging a list of tables.
learn.microsoft.com/en-us/pow...
Highlighted Techniques
1 - Using a Nested Let Statement in a new column
2 - Using a variable in a query (as step) to feed a value in a function

Пікірлер: 17

  • @Maartenmarsje
    @Maartenmarsje6 ай бұрын

    I like how you maneged to learn the M language that well, that you can write the let statements within the steps to combine some logicals steps without throwing errors all the time. Due to your videos, I’m trying to use the ribbon less and less myself. It really works for me to get better at M and improve the endless possiblilities. Thank you for keep making these videos!

  • @basensei8699

    @basensei8699

    6 ай бұрын

    That's so awesome! thank you ! I find the more one uses m-query instead of the UI the more cool things you can start doing. Basically anything is possible if you know the language!

  • @tariqaziz4534

    @tariqaziz4534

    Ай бұрын

    @@basensei8699 whatt???/

  • @thebhaskarjoshi
    @thebhaskarjoshi6 ай бұрын

    Thank you for making these videos!

  • @jerryboettcher8406
    @jerryboettcher8406Ай бұрын

    Excellent.

  • @alexrosen8762
    @alexrosen87625 ай бұрын

    Great stuff 👌

  • @roywilson9580
    @roywilson95806 ай бұрын

    Nice video, clustered lets are so useful in Power Query

  • @basensei8699

    @basensei8699

    6 ай бұрын

    Thanks man! yes i think i'm gonna make a video on Clustered lets by itself.

  • @roywilson9580

    @roywilson9580

    6 ай бұрын

    @@basensei8699 Great idea!

  • @kebincui
    @kebincui6 ай бұрын

    hi James. Excellent video as always. I am wondering how you would deal if you have a raw table with more than 2 lines of break (blank) rows. Table.SplitAt function can only split in one location at a time. If you have a solution for such cases, please advise. Thank you🌹👍.

  • @basensei8699

    @basensei8699

    6 ай бұрын

    thats a great question. the table.splitat function can only split a table into 2. But to overcome this i would do a nested splits over the entire data set. Do the first split. then the second split with have a table that needs to be split more. Then i split that table. and the next one looping through until all ahs been split. This would be a great idea for a future video. I'll make note of this one.

  • @SamehRSameh
    @SamehRSameh6 ай бұрын

    Marvelous 🎉🎉 i want to use merge query if condition achieved how ?

  • @ProfWoW
    @ProfWoW4 ай бұрын

    I have a data set that comes in as a notepad single table. I want to dynamically split it into 10+ tables based on their single column titles. Can i repeat the steps in this video to dynamically split 1 table into many?

  • @ProfWoW
    @ProfWoW4 ай бұрын

    I have a large data set that is actually 10 tables that appear to excel as 1 table. Can i dynamically split that table into the 10 tables i need it to be by repeating the steps here 10 times or is there a better way?

  • @user-mc5rd1bp6h
    @user-mc5rd1bp6h5 ай бұрын

    Hi Bro, if i have a list {18,46,95} , and need to split table at these rows , how we do this? could you please assist?

  • @hyunjinlee7166
    @hyunjinlee7166Ай бұрын

    I am struggling with SplitAt formula. Everytime I enter the formula, I get an error message "Expression.Error: We cannot convert a value of type Table to type Number. Details: Value=[Table] Type=[Type]" What do I do now? Please help!