Uploaded July 2022 | Updated November 2026, 2 days ago
Here is an interesting challenge. With a column of names, and a column of musical preferences and each person has multiple music preferences, how can the preferences be split such that you have TRUE if a person has that preference, and FALSE if a person does not?
One twist: what if there's a person added/removed or a music preference is added/removed?
This challenge came from Chandeep Chhabra at the Goodly YouTube channel.
My solution in Power Query includes:
Left Outer Join with 2 criteria
Cross Join
Conditional Column
Pivot Don't Aggregate
All handy features that can help you create dynamic solutions in Excel and Power Query.
See the challenge as described by Chandeep: youtu.be/7Vow1L8Mu9g
Wyn Hopkins' challenge: youtu.be/7A43scSbxCk
0:00 Intro
0:54 Explaining the challenge
2:15 Starting the solution
4:39 Cross Join
6:34 Merge queries with 2 criteria
8:29 Pivot Don't Aggregate
9:50 Add more data
10:49 Outro
#ExcelChallenge #FirstClass #PowerQuery
For a list of my Excel courses at Lynda/LinkedIn:
linkedin.com/learning/instructors/oz-du-soleil
There are courses on Power Query, Good spreadsheet habits, and a weekly Excel challenge that comes out every Friday.
Website: ozdusoleil.com
My book: Guerrilla Data Analysis 3rd Edition
mrexcel.com/products/guerrilla-data-analysis-3rd-edition
My old blog: datascopic.net/blog-2-2
Here is an interesting challenge. With a column of names, and a column of musical preferences and each person has multiple music preferences, how can the preferences be split such that you have TRUE if a person has that preference, and FALSE if a person does not?
One twist: what if there's a person added/removed or a music preference is added/removed?
This challenge came from Chandeep Chhabra at the Goodly YouTube channel.
My solution in Power Query includes:
Left Outer Join with 2 criteria
Cross Join
Conditional Column
Pivot Don't Aggregate
All handy features that can help you create dynamic solutions in Excel and Power Query.
See the challenge as described by Chandeep: youtu.be/7Vow1L8Mu9g
Wyn Hopkins' challenge: youtu.be/7A43scSbxCk
0:00 Intro
0:54 Explaining the challenge
2:15 Starting the solution
4:39 Cross Join
6:34 Merge queries with 2 criteria
8:29 Pivot Don't Aggregate
9:50 Add more data
10:49 Outro
#ExcelChallenge #FirstClass #PowerQuery
For a list of my Excel courses at Lynda/LinkedIn:
linkedin.com/learning/instructors/oz-du-soleil
There are courses on Power Query, Good spreadsheet habits, and a weekly Excel challenge that comes out every Friday.
Website: ozdusoleil.com
My book: Guerrilla Data Analysis 3rd Edition
mrexcel.com/products/guerrilla-data-analysis-3rd-edition
My old blog: datascopic.net/blog-2-2

![Try ... Otherwise: Power Querys version of Excels IFERROR
Thank to my friend Gráinne who showed me this in Power Query:
Try ... Otherwise
In native Excel we have the IFERROR function for when we anticipate errors and know what we want to do with them. In this case, we want to add the Shipped and Inventory amounts. But, if someone has put a note in the Inventory column instead of an error we want to return the Shipped amount. Pretty easy to do with Try ... Otherwise
Theres also a warning: Power Query does not treat 0, null and [blank] as the same things.
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: http://ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: http://datascopic.net/blog-2-2 Try ... Otherwise: Power Querys version of Excels IFERROR](https://i.ytimg.com/vi/UqqeNYR0UvE/mqdefault.jpg)








