ComputerGaga challenge: Convert Columns into Normalized Rows

Alam Murray at ComputerGaga postd a challenge that someone had asked him to help with. https://www.linkedin.com/posts/alanmurray-computergaga_excel-powerquery-activity-6621158742408867840-lhby

Data containing meal selections came in looking like rosters, and weren’t helpful to anyone. So, the data needed to be converted 2 ways.
– A count of requests for each offered meal
– Each person on a row with the 3 meals they selected
This was a fun challenge. My solution is in Power Query. 2 Things were key for my solutuon:
– Transpose in Excel. This made it so much easier to work with the data in rows instaed of columns.
– Keep Rows. WOW! This let me easily pull the data apart, then put it back together with left outer joins.

Ultimately, this solution may be considered to have a lot of moving parts and could be simplified. But … it works.

#ComputerGaga
#ExcelChallenge
#KeepRows

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

Reconciling Christmas Payments 2: Merging a Table with Itself

In the previous video I showed how to reconcile Christmas payments between 3 siblings. It seemed that classic Excel using SUMIFS was a better solution that Power Query. However, after posting the video, Miguel Escobar offered a simple Power Query solution. But it’s tricky. It involves merging a table with itself and criss-crossing the fields.

The benefit is this solution can include other people.

There’s also a warning in this video because, in Power Query, null is not treated the same as 0.

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

Reconciling Christmas Spending with SUMIFS, IF and Good Spreadsheet Layout

This video revisits a challenge from a few years ago. 3 siblings needed a simple way to reconcile who owed what to whom after all the Christmas gits had been purchased. For example:

If Bo agreed to chip in $200 on gifts that Jay bought, and Jay agreed to chip in $90 on gifts purchased by Bo, what’s an easy way to see that Bo owes Jay $110? But there’s a 3rd sibling, Tanya who needs to be considered.

I solved this a few years ago when Power Query wasn’t available. I decided to revisit this and us Power Query but it proved to complicated. I had multiple queries, joins, custom and conditional columns … the Power Query solution was overkill.

This showed that it’s important to look at what’s at stake and use what’s appropriate. For this challenge, I did use Power Query’s unpivot, but the real work was done by SUMIFS, IF, and good layout.

Here is the 26 Best Microsoft Excel Tips of 2019 podcast
https://www.myexcelonline.com/podcast/026-the-best-microsoft-excel-tips-tricks-in-2019/
#SUMIFS
#UNPIVOT
#PowerQuery

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

ExcelHash 2019: Snakes & Regs – XOR, Dynamic Arrays, Linked Picture, Icon

Excel Hash is back! 4 ingredients, 5 contestants and we all had to create a solution that integrates all 4 ingredients.

The Contestants:
Mr. Excel, Bill Jelen
Mynda Treacy
Jon Acampora
Leila Gharani
Oz du Soleil

The Ingredients:
XOR, a Linked Picture, a Dynamic Array function, an Icon

Here is the link to the playlist to see all videos

URL for voting:
https://forms.office.com/Pages/ResponsePage.aspx?id=QXR5-MbycU6IQ9aFc_tUvFg-bImtIN1EqJE5kvHXqKxURUw4RlIxUFFRT1FSWTkxR0g0MzBHVUdNQi4u
#ExcelHash
#XOR
#ExcelonFire

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

XLOOKUP v3.0; Power Query Import from Web; Intellisense, Text.Length

We put a lot together in this superbly delicious Excel tutorial. We start with the revised XLOOKUP version 3.0 which has the “if not found” component moved to the 4th position instead of the 6th.

Then we move to import data from a webpage and clean the data using Power Query’s FILL Down, Text.Length and other feature. Then, the final component in this deliciousness is a Left Outer Join. It’s all here for your delight.

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

#XLOOKUP
#PowerQuery
#MSExcel

The Majesty of DUPLICATE QUERY in Power Query

Duplicate Query in Power Query is underused and under-discussed. This video shows one way to use Duplicate Query to save from doing a lot of work over and over again.

This video also shows split column; split column non-digit to digit; a little M-code. There’s great stuff to keep you from having to work so hard to get cooperation from your data.

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

Creating Fake Data in Excel: random dollar amounts & dates using RANDARRAY & TEXT

To do training we need fake data (dummy data) to work with. In this video I show how to use RANDARRAY and the TEXT function to create a list of dummy transactions. This solution also takes advantage of Dynamic Arrays and the new calculation engine behind Excel. We also generate a list of fake dates.

Power Query Tips & Techniques Course
https://www.linkedin.com/learning/excel-power-query-tips-and-techniques-office-365/what-you-should-know?u=2125562
For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
#DynamicArrays
#RANDARRAY
#FakeDataGenerator

Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

Full Anti-Join and the New XLOOKUP with “if not found”

This video is a 2-for-1. You get the new XLOOKUP and a Full Anti Join in Power Query (Get & Transform).

What is a full anti-join? If there was a class held on Monday and Wednesday and you’d like to know who attended one session or the other BUT NOT BOTH, you would need a full anti-join. One way to do this would be to do a left anti-join and then a right anti-join, then append the results.

Another way, as I show in this video, is to append the 2 datasets, create an inner join, then use an anti-join to isolate the people who are in one group or the other but not both.

XLOOKUP!
WOW! This was revised within the last 24 hours to include a 6th argument for: “if not found.”

This is exciting because a lot of times we’ll do a lookup and anticipate results where the lookup value isn’t found. The fix is to wrap a lookup formula in the IFNA function. No more!

The 6th argument, “if not found” is a valuable feature because we no longer need the extra step of wrapping IFNA around the formula. And the 6th argument is optional.

#FullAntiJoin
#PowerQuery
#InnerJoin
For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2

Use Power Query to Get Top X Scores and Tie Scores

What if you need the top 5 scores but there’s a 4-way tie for 5th? Well, we need to get all 8 people not just the top 5.

There are lots of videos showing how to extract the top X values in a list. But what about tie? This video shows how to use Power Query and consider tie scores.

You’ll see Power Query, drill down, duplicate query, and a little a little M-coding in order to get this done.

For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: https://ozdusoleil.com

My book: Guerrilla Data Analysis 2nd Edition

My old blog: http://datascopic.net/blog-2-2