PQ Challenge Splits and Lists

Тәжірибелік нұсқаулар және стиль

In this challenge we need to use Power Query to split data, pair lists, avoid hard coding header references and more...
00:00 Intro
00:42 The Challenge
03:18 Avoid renaming a column directly via adding a conditional column step
05:48 Avoid renaming a column directly via a fancy formula trick
09:46 Extract data from 4th character using Extract From Range
10:50 Extract data from 4th character using Split by Position
11:36 Splitting Text into Lists and Recombining using Table.FromColumns
Link to Gil's Blog Post datachant.com/2017/01/26/power-bi-pitfall-6/
Link to Oz's video kzread.info/dash/bejne/fIGD0NRsdLLXqc4.html
If you'd like to have a go before (or after) watching my approach then you can download the file from our blog here...
accessanalytic.com.au/new-year-power-query-challenge/
Feel free to send us your approach and we'll add it to the blog page (unless you would prefer us not to).
Connect with me
wyn.bio.link/
Sign up for our newsletter to get advance notice of the future challenges...
accessanalytic.com.au/free-excel-stuff/newsletter/

Пікірлер: 75

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

    Exactly what I needed! Thank you so much for sharing!

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    You're very welcome

  • @JaimeHaddad
    @JaimeHaddad2 жыл бұрын

    Great video Wyn! Looks simple but has a lot of tricks that we need to consider to solve it. Thanks also to the people that contribute. I like that you mention them!!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Jaime, I appreciate the kind feedback

  • @MrWish332
    @MrWish3322 жыл бұрын

    Great Video, I always find something new in your Videos. Best Wishes

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Vishal

  • @shirleymoreman6725
    @shirleymoreman67252 жыл бұрын

    I've only just discovered your challenges Wyn but loving them. Lots of great tips and tricks to improve my Power Query skills - every day's a school day!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    That’s great Shirley, we’re all learning from these 😀

  • @Franklinvaz
    @Franklinvaz2 жыл бұрын

    Never seen any such scenario oriented videos. Love your works. Thanks. Totally useful for beginners like me to understand the possibilities of transforming data using Power Query.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Great, glad it’s useful, thanks for taking the time to let me know

  • @vacilando86
    @vacilando862 жыл бұрын

    With every new video you make our life easier. Respect!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Glad to help, thanks Alpay

  • @khawarmalik5239
    @khawarmalik52392 жыл бұрын

    So many new trick I have learned in one single video. Thank you very much for creating this content.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    You’re welcome Khawar, thanks for leaving a comment

  • @johannlotter4984
    @johannlotter49842 жыл бұрын

    Really great video. A bunch of cool tips in there.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Johann

  • @Howlandta
    @Howlandta2 жыл бұрын

    I love these challenge videos, so many cool tricks to learn!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    That’s great to hear Tyrone

  • @antonysovy5887
    @antonysovy58872 жыл бұрын

    Hi, this is another great video.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thank you Antony

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel2 жыл бұрын

    I love learning how to tweak the M code to get exactly what we need. Thanks Wyn for sharing multiple techniques to solve the problems.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries Grainne, I think these sorts of challenges help us push ourselves into learning new techniques. I’m enjoying them.

  • @OzduSoleilDATA
    @OzduSoleilDATA2 жыл бұрын

    GOOOOOD Stuff! And thanks for the shoutout. 🚀

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Always a pleasure Oz

  • @iankr
    @iankr2 жыл бұрын

    Great techniques. Thanks to you and everyone else, Wyn.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Yeah I picked up a few pointers here

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

    Awesome 👍👍👍 Keep update us please 😘😘😘 lots of love from India

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Thanks, will do

  • @arbazahmad7177
    @arbazahmad71772 жыл бұрын

    Great.. Looks easy but bunch of tricks.. thanks

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    You’re welcome Arbaz

  • @wayneedmondson1065
    @wayneedmondson10652 жыл бұрын

    Awesome Wyn!! Just emailed you my solution. Thanks for the challenge! Looking forward to more in 2022 :)) Thumbs up!!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers Wayne

  • @adrianoschwenkberg6773
    @adrianoschwenkberg677311 ай бұрын

    note: on the powerquery options you can de-select the automatic type and automatic promote Header steps

  • @AccessAnalytic

    @AccessAnalytic

    11 ай бұрын

    Yep, that’s a good one to call out

  • @martyc5674
    @martyc56742 жыл бұрын

    Thanks Wyn- Some great tips in this one 👍

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers Martin

  • @excelemployeeleavetracker1274
    @excelemployeeleavetracker12742 жыл бұрын

    Great video... for the last task regarding the color column...I would pivot column and use the number column as the value. This would save you multiple steps and will match up the numbers to each individual color.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks, I’d love to see your approach. I can’t quite picture it. Send in your solution ( details are in the description section ) Cheers

  • @gopichand5717
    @gopichand57172 жыл бұрын

    Awesome , your videos are helpful

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Glad you think so Gopi, thanks

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

    Thanks to you, I'm learning power query like an impressionist builds his canvas, with fine touches, for example I thought that in the query steps we could only refer to the before step and not to any step before; thoughts to people who shared their kwnoledge with you

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Glad to help and thanks for taking the time to leave a kind comment letting me know the content is useful

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

    Great practical example WYN well done!

  • @AccessAnalytic

    @AccessAnalytic

    Жыл бұрын

    Cheers John

  • @MrKamranhaider0
    @MrKamranhaider02 жыл бұрын

    No doubt a great tip which will be used in many different situations

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Kamran

  • @EricaDyson
    @EricaDyson2 жыл бұрын

    Excelllent. That was a great session!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Erica

  • @rameshkandi
    @rameshkandi2 жыл бұрын

    Brilliant 👍 Learned few tricks. Thq.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    That’s great Ramesh

  • @ziggle314
    @ziggle3142 жыл бұрын

    This video includes a wonderful set of techniques for optimizing my use of PQ. Thanks a bunch Wyn!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries! Thanks for the feedback

  • @Ratnakumarwrites
    @Ratnakumarwrites2 жыл бұрын

    Brilliant sir.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thank you Ratna

  • @ImranHussain-xv4se
    @ImranHussain-xv4se2 жыл бұрын

    Great video,

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thank you Imran

  • @Luciano_mp
    @Luciano_mp2 жыл бұрын

    Great. Thanks!

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    No worries Luciano

  • @priyankchhajed1407
    @priyankchhajed14073 ай бұрын

    Awesome 🙇‍♀️

  • @AccessAnalytic

    @AccessAnalytic

    3 ай бұрын

    Thank you! Cheers!

  • @BillSzysz1
    @BillSzysz12 жыл бұрын

    I have just discovered your PQ challenge - great 👍 Of course, this can be done in many ways..... but now we have many new functions in excel so i think we can do this in one cell as well with LAMBDA, LET, TEXT.SPLIT, VSTACK etc. Maybe it's not bad idea for a new "Do the same thing in one cell with excel formulas" challenge? (but i think, it would be for "insider preview" members only) Thanks for video

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Cheers Bill, I really want to focus this on Power Query as I spend most of my time in Power BI theses days so the awesome new Excel functionality is not so relevant to me

  • @NilayMukhopadhyay
    @NilayMukhopadhyay2 жыл бұрын

    My steps; 1. Split columns (Colours & Values) 2. Renamed (Colour1, Colour2, Colour3 & Value1, Value2, Value3) 3. Unpivoted. 4. Duplicated the query. 5. Filtered both queries attribute column by colour & values. 6. Added index column. 7. Merge queries.

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Thanks Nilay, if you go down the splitting route then best to split to rows since the number of colours / values could increase with future data.

  • @NilayMukhopadhyay

    @NilayMukhopadhyay

    2 жыл бұрын

    @@AccessAnalytic Yes! Exactly. That's why you guys are experts.

  • @jayantsharma3031
    @jayantsharma30312 жыл бұрын

    The code is for Line Feed and not Carriage return

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Good call - I’m always using those terms to mean the same thing but I should be more precise

  • @florincopaci6821
    @florincopaci68212 жыл бұрын

    Hello sir! Thanks again for this clip from which I learned again. Every day is a school day. I ask a question - I use sql and usually when I want to get something I have more than one condition in join - the last case - customers who repeat, who come back and how many times it is repeated etc. I put 2 conditions - one as customer_id = customer_id but the other condition was that order_date> = order_date. It was a self join I tried in Power Query but I don't know how to do the same that the condition 2 to include the operator> = and not only =.Is this possible in Power Query?To join merged 2 tables not only using = operator but also ?I know is a silly question.Thank you

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Hi Florin, I can’t quite picture the scenario without seeing some data. Initial thought is it sounds more like something DAX would be used for rather than Power Query but I might be misunderstanding. However there seems to be away to do just about anything with M so while I don’t know the answer that doesn’t mean it can’t be done.

  • @florincopaci6821

    @florincopaci6821

    2 жыл бұрын

    @@AccessAnalytic Thank you so much for the answer!All the best

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    @@florincopaci6821 Posting to the Excel Tech Community with some screenshots / basic sample file will likely get you a quick response techcommunity.microsoft.com/t5/excel/ct-p/Excel_Cat

  • @florincopaci6821

    @florincopaci6821

    2 жыл бұрын

    @@AccessAnalytic Thank you

  • @MrWish332
    @MrWish3322 жыл бұрын

    Hi Wyn, Is there any way to Replace the Column values with the List Items or Replace Entire Column with List, if Yes then please suggest

  • @AccessAnalytic

    @AccessAnalytic

    2 жыл бұрын

    Not sure which part you’re referring to but there is a Table.ColumnNames function to create a list of column names

  • @MrWish332

    @MrWish332

    2 жыл бұрын

    we already have a list, can we replace the list with values in any particular column (Not the column header) or simply replace the entire column with List