This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Module Contains 5g Compliant LAMBDAs that deal with dates */ | |
/* FUNCTION NAME: Aboutλ | |
DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
/* REVISIONS: Date Developer Description | |
Mar 17 2023 Craig Hatmaker Original Development | |
Mar 22 2023 Craig Hatmaker Added About | |
Apr 06 2023 Craig Hatmaker Added Help to LAMBDAs | |
Aug 28 2023 Craig Hatmaker Conformed to new template | |
Jan 02 2024 Craig Hatmaker See CountDOWλ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FUNCTION NAME: Aboutλ | |
DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
/* REVISIONS: Date Developer Description | |
Mar 02 2023 Craig Hatmaker Original Development | |
Jun 08 2023 Craig Hatmaker CBSE Compliant | |
Jan 17 2024 Craig Hatmaker See DynamicArrayλ | |
*/ | |
Aboutλ =TEXTSPLIT( | |
"About: →BXL's Dynamic Array module. Suggested module name: BDR¶" & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FUNCTION NAME: Aboutλ | |
DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
/* REVISIONS: Date Developer Description | |
Feb 27 2024 Craig Hatmaker Copyright | |
Jun 05 2024 Craig Hatmaker Code Simplification | |
Sep 05 2024 Craig Hatmaker Added RunTotColsλ and RunTotRowsλ | |
*/ | |
Aboutλ = TRIM(TEXTSPLIT( | |
"About: →Basic functions for working with dynamic arrays. Suggested module name: BXE¶" & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FUNCTION NAME: Aboutλ | |
DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
/* REVISIONS: Date Developer Description | |
Dec 14 2023 Craig Hatmaker Original Development | |
*/ | |
Aboutλ = TRIM(TEXTSPLIT( | |
"About: →BXL's Workbook Information module. Suggested module name: BXW¶" & | |
"Version: →Jun 12 2023¶" & | |
"Gist URL: →https://gist.github.com/CHatmaker/3ff1b5ce97344c2dfc3f1623a656676a ¶" & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Name: Unpivot Table (UNPIVOT) | |
Description: Given a table range with headers and array of header names, unpivots the | |
specified columns in place, optionally removing any blank entries. | |
Written By: Excel Robot (@ExcelRobot) | |
Category: Array | |
*/ | |
UNPIVOT=LAMBDA(table,[columns_to_unpivot],[attribute_name],[value_name],[remove_blanks], LET( | |
_ColumnsToUnpivot, IF( | |
ISOMITTED(columns_to_unpivot), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FUNCTION NAME: Aboutλ | |
DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
/* REVISIONS: Date Developer Description | |
Mar 17 2023 Craig Hatmaker Copyright | |
Apr 17 2023 Craig Hatmaker Reorganizing and adding help | |
Jul 03 2023 Craig Hatmaker See nFoldCartProdλ and PriorDimProdλ | |
Jul 11 2023 Craig Hatmaker See UnPivotDetailλ | |
Feb 11 2024 Craig Hatmaker See UnPivotDetailλ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let func = | |
(SelectionList as list, ListOfPositions as list, optional StartWithOne as number, optional FillWithNulls as number) => | |
let | |
selectionList = List.Buffer(SelectionList), | |
listOfPositions = ListOfPositions, | |
StartPosition = if StartWithOne = 1 then -1 else 0, | |
Result = {List.Transform(listOfPositions, each selectionList{_ + StartPosition}), // null | |
List.Transform(listOfPositions, each selectionList{_+StartPosition}?), // 0 |