Uploaded March 2024 | Updated September 2026, 2 weeks ago
⚡⚡ This is a tutorial in Dynamic Array Excel, LET and LAMBDA ⚡⚡
The team and I at Access Analytic develop Power BI and Excel solutions for clients in Australia and deliver training around the World. https://accessanalytic.com.au/
00:00 Introduction
00:46 The Basic formulas in separate columns
03:17 Bringing it together in a single formula using LET
07:36 Naming the formula using LAMBDA
11:05 Storing your LAMBDAS in a GIST
🔢The Formula ( I realised I could AVOID the HSTACK by using SORTBY )
=LET(
SelectedList,B3:B12,
NumberOfItemsToReturn,4,
TAKE(
SORTBY(
SelectedList, RANDARRAY(ROWS(SelectedList))
),
NumberOfItemsToReturn,1
)
🖥️ My GIST
gist.github.com/wynhopkins/2efdf218ed78be03a0a082ff6a99dad1
⏬Download my file
aasolutions.sharepoint.com/:x:/s/PubliclyAvailableContent/EeB1ik417QhPok8LG0jLm3ABoHoMKkLfTJO02v-shcUkKQ?e=70BdqH
📕 BOOK
Did you know I've written a book "Power BI for the Excel Analyst"?
https://pbi.guide/book/
Connect with me
wyn.bio.link
( apologies to Tahlia for accidentally missing her name out 😩 )
⚡⚡ This is a tutorial in Dynamic Array Excel, LET and LAMBDA ⚡⚡
The team and I at Access Analytic develop Power BI and Excel solutions for clients in Australia and deliver training around the World. https://accessanalytic.com.au/
00:00 Introduction
00:46 The Basic formulas in separate columns
03:17 Bringing it together in a single formula using LET
07:36 Naming the formula using LAMBDA
11:05 Storing your LAMBDAS in a GIST
🔢The Formula ( I realised I could AVOID the HSTACK by using SORTBY )
=LET(
SelectedList,B3:B12,
NumberOfItemsToReturn,4,
TAKE(
SORTBY(
SelectedList, RANDARRAY(ROWS(SelectedList))
),
NumberOfItemsToReturn,1
)
🖥️ My GIST
gist.github.com/wynhopkins/2efdf218ed78be03a0a082ff6a99dad1
⏬Download my file
aasolutions.sharepoint.com/:x:/s/PubliclyAvailableContent/EeB1ik417QhPok8LG0jLm3ABoHoMKkLfTJO02v-shcUkKQ?e=70BdqH
📕 BOOK
Did you know I've written a book "Power BI for the Excel Analyst"?
https://pbi.guide/book/
Connect with me
wyn.bio.link
( apologies to Tahlia for accidentally missing her name out 😩 )



![Practical use case for Power Query metadata
How to extract the number of records at each filter step in a query.
Thanks to these 2 resources:
🧑🏻💻Chandeep:
https://youtu.be/weafpG2yG1w?si=oM2s_VaIElTD-7Cu&t=361
🧑🏻💻Abhay Gadiya
https://youtu.be/JkNYvFoJ6HQ?si=tBoxdtc9xHVz955e
🔢Code:
Code also inside the Excel file
let
//MyQuerySteps = [
Your Code
//] in MyQuerySteps[YourLastStep] meta [MetaReference = MyQuerySteps]
in YourLastStep
📂Copy of File
https://aasolutions.sharepoint.com/:f:/s/PubliclyAvailableContent/EiabCrVyIUVMqLfN9OldAroBDa6bzdvzqXjaeRgJ1zlChw?e=9m7dqM
Access Analytic
The team and I at Access Analytic develop Power BI and Excel solutions for clients in Australia and deliver training around the World. https://accessanalytic.com.au/
Did you know Ive written a book Power BI for the Excel Analyst?
https://pbi.guide/book/
Connect with me
https://wyn.bio.link/ Practical use case for Power Query metadata](https://i.ytimg.com/vi/IgQ-u9R3j8U/mqdefault.jpg)






