Embedded Tables in Collections

A Short post playing around with embedded tables in collections

Contents

Create an Single Column Embedded Table within a Collection

ClearCollect(
colA,
{
Month: [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun"
]
}
)
Formula creating a single-column embedded table within a collection

Extract the Contents of the Table and place in a new Collection

Clear(colB);
ForAll(
    colA,
    Collect(
        colB,
        Month
    )
)
Formula extracting the embedded table contents into a new collection

Give the Extracted Table Column a Name

ClearCollect(
    colC,
    RenameColumns(
        colB,
        "Value",
        "Name"
    )
)
Formula renaming the extracted table column

Return the Contents back to an Embedded Table

ClearCollect(colD,{Month:colC})ClearCollect(
    colD,
    {Month: colC}
)
Formula returning the contents back to an embedded table

Search posts

Get in touch

Fill out the form and I’ll be in touch.