Skip to content

Instantly share code, notes, and snippets.

@wynhopkins
wynhopkins / UNPIVOT_LAMBDA.txt
Last active May 4, 2025 08:38
UNPIVOT_LAMBDA
/*Courtesy of Access Analytic
Website: https://accessanalytic.com.au/
YouTube: https://www.youtube.com/@accessanalytic
Gist: https://gist.github.com/wynhopkins/2efdf218ed78be03a0a082ff6a99dad1
------------------------------------------------------------------
------------------------------------------------------------------
*/
/*-----------------------------------------------
let
//courtesy of AccessAnalytic.com.au
Today = Date.From(DateTime.LocalNow() ),
// Change start date to begining of year
StartDate= #date(2019, 1, 1),
//see advanced editor for note on alternative hardcoding EndDate method
//ListOfTextMatches------------------
// Select a word to look for and a column to look in
//outputs filtered list containing that text
ListOfTextMatches=
LAMBDA(
SelectTextToLookFor,
SelectRangeToLookIn,
LET(
FlagMatch,
ISNUMBER(