cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Collect column as 'ColumnName' with multiple tables

Hello,

I have a Collection that is made up of 3 tables (soon to be 4),
They all have similar columns: a description, a date, a name.

I would like to save them in my collection under the same column.

My formula is currently something like:

ClearCollect(
    Nudges,
    ShowColumns(
        'Data',
        "ddnudgedescription",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "Related_Report",
        "source",
        "ddnudgetemplateid",
        "CurrentDate",
        "SpecificDate"
    )
);
Collect(
    Nudges,
    ShowColumns(
        'Data2',
        "nudgedescription",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "deliverydate"
    )
);
Collect(
    Nudges,
    ShowColumns(
        'Data3',
        "Question_Description",
        "Question_text",
        "Date",
        "Enabled_flag",
        "Engagement"
    )
)

So I would like to - for example - save "Date" from 'Data3', "deliverydate" from 'Data2' and "SpecificDate" from 'Data' into one column named 'Date' in my collection.

Is this possible?
they are of the same data types

Thanks for any help

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Collect column as 'ColumnName' with multiple tables

Figured it out

had to use rename columns in this order

ClearCollect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data',"SpecificDate","Date","ddnudgedescription","Description"),
        "Description",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "Related_Report",
        "source",
        "ddnudgetemplateid",
        "CurrentDate",
        "Date",
        "ddnudgeid"

    )
);
Collect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data2',"deliverydate","Date","nudgedescription","Description"),
        "Description",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "Date"
        ,"nudgeid"
    )
);

Collect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data3'
        ,"Question_text", "message","Question_Description","Description"),
        "Description",
        "message",
        "Date",
        "Enabled_flag",
        "Engagement",
        "Question_ID"
    )
)

View solution in original post

1 REPLY 1
Highlighted
Resolver I
Resolver I

Re: Collect column as 'ColumnName' with multiple tables

Figured it out

had to use rename columns in this order

ClearCollect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data',"SpecificDate","Date","ddnudgedescription","Description"),
        "Description",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "Related_Report",
        "source",
        "ddnudgetemplateid",
        "CurrentDate",
        "Date",
        "ddnudgeid"

    )
);
Collect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data2',"deliverydate","Date","nudgedescription","Description"),
        "Description",
        "message",
        "programmecode",
        "Engagement",
        "enabledflag",
        "Date"
        ,"nudgeid"
    )
);

Collect(
    Nudges,
    ShowColumns(
        RenameColumns(
        'Data3'
        ,"Question_text", "message","Question_Description","Description"),
        "Description",
        "message",
        "Date",
        "Enabled_flag",
        "Engagement",
        "Question_ID"
    )
)

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,933)