How and why to Unpivot data with Power Query

  Рет қаралды 42,553

Access Analytic

Access Analytic

Күн бұрын

This video showcases 2 examples of when you need to unpivot your data.
The first scenario is a simple unpivotting exercise using just Excel
In the second scenario I use Power BI and work around one of the issues that unpivotting may cause.
00:00 Intro
00:26 Basic Example
04:39 More Complex Example requiring Table split and Dimension Table creation
Link to video on the Calendar Table
• What is a Date Table /...
Connect with me
wyn.bio.link/
Access Analytic blog: accessanalytic.com.au/blog/

Пікірлер: 91
@anaballesteros-sosa4007
@anaballesteros-sosa4007 2 жыл бұрын
This is great! No surprise as you explain everything very clear and easy to follow. Thank you very much
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thank you for taking the time to leave a kind comment Ana. Greatly appreciated 😀
@saucytortoise
@saucytortoise 13 күн бұрын
Excellent video, thanks so much! I did a Power BI course 2 weeks ago, feel like I've already forgotten nearly everything, plus the data I'm working with is a lot more complex than what we used in the training. Your clear concise video is a lifesaver.
@AccessAnalytic
@AccessAnalytic 13 күн бұрын
Glad to help, I’ve a full playlist here that may help kzfaq.info/sun/PLlHDyf8d156VDobBIk13o4mZLk19DbV81&si=JNcNN5QfUBBgvTYm
@Trutchie
@Trutchie Жыл бұрын
Breakthrough! I have been trying to understand pivoting all afternoon! Your video has nailed it
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Glad to help 😀
@zakharlukash5115
@zakharlukash5115 5 ай бұрын
You absolutely nailed it, one of the best overall videos about PowerQuery! I like your articulation and the instructions are sophisticated, yet easy to follow. Great content!
@AccessAnalytic
@AccessAnalytic 5 ай бұрын
Thanks Zakhar, it’s greatly appreciated.
@nandra8053
@nandra8053 2 жыл бұрын
This is the powerhouse of knowledge. Amazing work. Thank you!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thank you
@VaneyRio
@VaneyRio 9 ай бұрын
Apart from being very informative and clear, your voice and accent make it super enjoyable. Thanks!
@AccessAnalytic
@AccessAnalytic 9 ай бұрын
Thank you ☺️
@Freemarkets1236
@Freemarkets1236 Жыл бұрын
Unpivot is an amazing tool. I like how you’re like “it’s beautiful” because it truly is. Especially the unpivot other columns which gives your source data the ability to expand in columns without messing up your query.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Absolutely!
@notesfromleisa-land
@notesfromleisa-land Жыл бұрын
I had a thorny data problem with some credit card file downloads where I needed different information for different purposes: sales sheet tie out, bank tie out (each neededing horizontal layout with different data filtered) and journal entry (needing no filtering but some cajoling and a vertical layout for entry upload). The unpivot was key. This technique needs to be in everyone's toolkit. As always your explanations are clear and highlights the benefits (and ease) of the technique.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Glad to help
@sf5028
@sf5028 Жыл бұрын
Super helpful, thank you. Very clear, concise, well-explained, and a new user I appreciate the little side tips and best practice notes thrown in as you went through the steps.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You’re welcome, thanks for taking the time to leave a comment letting me know
@mnowako
@mnowako 2 жыл бұрын
Good lesson, from basic to more complex solution. Thank you! 👏
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks Mariusz
@garethwoodall577
@garethwoodall577 2 жыл бұрын
Excellent tutorial, thank you Wyn!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
You’re welcome Gareth
@mandypaulissen
@mandypaulissen Жыл бұрын
Mind blowing!!!! Brilliant way to break data into rows!!!!❤️🔥❤️🔥
@AccessAnalytic
@AccessAnalytic Жыл бұрын
It’s a brilliantly useful feature 😀
@anaballesteros-sosa4007
@anaballesteros-sosa4007 2 жыл бұрын
Great tutorial. Thanks so much.
@SuperChrisDub
@SuperChrisDub Жыл бұрын
I live that you add the tbl at the start of the table name. Methinks you have a programming background. I do that, too. At first glance, it is seems unnecessary but in complicated vba code it makes perfect sense.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
I’ve an accounting background but logical naming just feels right 😀
@learnpowerbi
@learnpowerbi 2 жыл бұрын
Thanks Wyn, excellent lesson.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Iwan
@nidhipandya7132
@nidhipandya7132 2 жыл бұрын
Great Explaination! Thank you so much.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thank you Nidhi
@CelesteAlvarado93
@CelesteAlvarado93 9 ай бұрын
Awesome explanation, so helpful! Thank you!
@AccessAnalytic
@AccessAnalytic 9 ай бұрын
You're welcome 😃
@angelaisland4036
@angelaisland4036 2 жыл бұрын
Thank you so much! Great explanation!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Thanks for taking the time to let me know Angela
@abeerattia4523
@abeerattia4523 Жыл бұрын
Excellent video , thanks for sharing your knowledge
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You're welcome Abeer, thanks for taking the time to leave a kind comment
@Shhheye1
@Shhheye1 Жыл бұрын
❤❤❤ Thank you so so much. I’m having do many emotions right now.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Glad to help
@zrnosoli
@zrnosoli 8 ай бұрын
Your tutorials are very useful and straight forward. I just wish you added links to download the tables you are using in your videos so one could practice while watching :)
@AccessAnalytic
@AccessAnalytic 8 ай бұрын
Thanks. These days I try to add links to files.
@sofemme3924
@sofemme3924 6 ай бұрын
I’m enjoying your videos so much and happy to keep learning. Thanks for creating great content!🙏 I’m curious to know why use a separate date table as a reference table. Is it essential, or can one go without it? Additionally, for those without Power BI access, is there a way to achieve this in Power Query?
@AccessAnalytic
@AccessAnalytic 6 ай бұрын
Hi, thanks for the kind comment. They Calendar table allows you to slice and dice one or more Data tables by year month day, financial year, month etc. You can also do this in Excel using Power Pivot ( the pre cursor to Power BI ) kzfaq.info/get/bejne/iLxkatyJnJayfmw.htmlsi=cKLP0tBdKKJNW0mr And kzfaq.info/get/bejne/iLxkatyJnJayfmw.htmlsi=cKLP0tBdKKJNW0mr
@user-qh6yu1ri5n
@user-qh6yu1ri5n 11 ай бұрын
More videos please, you're the best
@AccessAnalytic
@AccessAnalytic 11 ай бұрын
Thank you 😀
@mohammadsujon124
@mohammadsujon124 2 ай бұрын
Tis tutorial is very nice. I have learnt the easy way. If gave the source file , it would be easy to practice.
@AccessAnalytic
@AccessAnalytic 2 ай бұрын
Than you. I’ve started to include files in more recent video.
@JJ_TheGreat
@JJ_TheGreat Жыл бұрын
7:52 How do you do that? I know how to merge queries with common fields, but splitting a table? The best approach which I can think of is: 1) Duplicate the query; 2) In each respective query, delete the columns which are unneeded. Then you will have two (2) tables, each with the respective columns you need.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
I’d reference the queries , remove other columns, and append if more than one source. And remove duplicates.
@user-ws6yl3rv3n
@user-ws6yl3rv3n 9 ай бұрын
Thank you very much sir.
@AccessAnalytic
@AccessAnalytic 9 ай бұрын
You’re welcome
@zaheerahmad3896
@zaheerahmad3896 9 ай бұрын
Good one
@timolff9239
@timolff9239 2 жыл бұрын
Very nice, thank you.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Tim
@user-tn3iy6qw6n
@user-tn3iy6qw6n 10 ай бұрын
Great !!1 God bless you.
@AccessAnalytic
@AccessAnalytic 10 ай бұрын
Thank you
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
Great Wyn! The second example was tricky! Thanks for walking through the process. Just curious, I noticed in your Fields list that the My Measures table shows at the top of the list. My field list sorts automatically alphabetically. So, I must name my measures table as something like --myMeasures or 1-myMeasures for it to sort to the top. How did you position yours at the top before the Auditor Table and Calendar table, etc. that would all naturally sort before the M of MyMeaures? I rooted around for a setting and couldn't find one. Curious how you do that. Thanks again for all the tips. Thumbs up!!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers Wayne, remove any columns from your measures table and it moves to the top. See the 1:15 mark here kzfaq.info/get/bejne/e8-Hl9140bHLpn0.html
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
@@AccessAnalytic Thanks Wyn. I think I was trying to sort it to the top of the list before removing the empty column. Also, good to know that a disconnected measures table won't allow for drill-down from a Pivot Table. Thanks again for all the great tips! Thumbs up!!
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Cheers @@wayneedmondson1065
@tijanameduric
@tijanameduric Жыл бұрын
The tutorial is nice. Calling tidy data in pivot horrible is just 🤣🤣🤣 Tidy data and unpivot data are both perfectly fine, it only depends on what you need it for.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Yep, matrix layout good for reading, horrible for flexible analysis
@tijanameduric
@tijanameduric Жыл бұрын
in queries yea, in python pivot format, was what we were required to make to analyze. It all depends on what you need, but I agree for a pivot in excel unpivot format is much more useful.
@kebincui
@kebincui 2 жыл бұрын
Thanks Wyn, excellent video 👍. Just a small query, around 12:29 in the clip, you said that 3 fact tables. I am not sure but feel they are dimension table. Myabe slip of the tongue? Just curious。 Thanks
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Excellent pick-up Kebin. Yep those are 3 dimension tables.
@cristianchelu1563
@cristianchelu1563 Жыл бұрын
Great tutor!
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Thanks for the kind comment
@picksmile5010
@picksmile5010 Жыл бұрын
Great! thanks
@AccessAnalytic
@AccessAnalytic Жыл бұрын
No worries!
@WisamMSaeed
@WisamMSaeed Жыл бұрын
Thank you
@AccessAnalytic
@AccessAnalytic Жыл бұрын
You’re welcome
@MrDhunpagla
@MrDhunpagla 2 жыл бұрын
Thanks Sir 🙏
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
You’re welcome
@mon_rich5366
@mon_rich5366 Жыл бұрын
best
@adelhamzah5695
@adelhamzah5695 Жыл бұрын
SUPEEER
@MD-lk4qr
@MD-lk4qr Жыл бұрын
Hi Thanks for the video. I have 3 columns of values and at the very before the column header it is written the date in which identifies the value in the column belongs to a certain date something like this: 202201|202202|202203 how can I fix this issue in power Q to read in Power BI? will it make sense to create 3 different columns of dates relative to the date of the column and then povit them and then povit the 3 columns also? im kindda confuse. your help would be great :)
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Hi, that’s a bit too tricky to answer here. I’d post your question with some screenshots here community.powerbi.com/t5/Desktop/bd-p/power-bi-designer
@user-cz4rp3tt7i
@user-cz4rp3tt7i 11 ай бұрын
Do we have to create tables for all dimensions? What if we have many dimensions?
@AccessAnalytic
@AccessAnalytic 11 ай бұрын
Yes, pretty much. Certainly all those that have multiple common repeated factors. E.g. date has Year Month Day etc, Product has name, supplier, colour, Customer has address, phone, contact Etc
@Aussiepeoplestats
@Aussiepeoplestats Жыл бұрын
great video. btw, where are the downloadable files?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Thanks, not for this one sorry
@JJ_TheGreat
@JJ_TheGreat Жыл бұрын
7:09 What about SUMIFS distinct values?
@AccessAnalytic
@AccessAnalytic Жыл бұрын
Is there such a thing? Ideally use Power Query to make your formulas simpler in your data model
@salahuddin502
@salahuddin502 2 жыл бұрын
Sir, How can I revert the unpivot excel value. Please it would help me a lot.
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Could you explain more please
@tijanameduric
@tijanameduric Жыл бұрын
I am wondering the same thing. How to pivote data back? From unpivot format back to pivoted format.
@AccessAnalytic
@AccessAnalytic Жыл бұрын
There’s a pivot option in Power Query
@hazemali382
@hazemali382 9 ай бұрын
unfortunately one Episode from 4 have workbook to practice 😔
@AccessAnalytic
@AccessAnalytic 8 ай бұрын
In the last year or two I started to include a link to download the files I use. This older video does not have a downloadable file.
@nicollealfaro5568
@nicollealfaro5568 2 жыл бұрын
Please get back to me ..I would like to pay for a private class
@AccessAnalytic
@AccessAnalytic 2 жыл бұрын
Hi, please contact info@accessanalytic.com.au
3 Essential Excel skills for the data analyst
18:02
Access Analytic
Рет қаралды 1,5 МЛН
Power Query Unpivot - fix 4 common data layouts (incl. workbook)
19:24
MyOnlineTrainingHub
Рет қаралды 223 М.
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 13 МЛН
Convert Multiple Column Groups to Rows in Power Query
17:18
PQ Challenge Splits and Lists
17:56
Access Analytic
Рет қаралды 12 М.
Power Query Multi Column Data  - Best In Class Challenge
17:03
Access Analytic
Рет қаралды 12 М.
How to easily automate boring Excel tasks with Power Query!
17:10
MyOnlineTrainingHub
Рет қаралды 1,5 МЛН
XLOOKUP v Power Query v Power Pivot in Excel
10:49
Access Analytic
Рет қаралды 19 М.
3 Methods to unpivot in Excel using Power Query | Excel Off The Grid
11:38
Очень ждал свою маму 💔
0:56
Awesome Cuts
Рет қаралды 7 МЛН
Ném bóng coca-cola😂😂😂
0:35
Tippi Kids TV
Рет қаралды 33 МЛН
#kidsong
0:11
J House jr.
Рет қаралды 18 МЛН
He wasn’t ready … birthday celebrations continue!
0:17
The CrunchBros
Рет қаралды 20 МЛН
Шашлык вкусный
0:57
Тони
Рет қаралды 5 МЛН
Шашлык вкусный
0:57
Тони
Рет қаралды 5 МЛН