मुख्य कंटेंट तक स्किप करें

Table.DuplicateColumn

निर्दिष्ट नाम के स्तंभ का डुप्लिकेट बनाता है. मान और प्रकार की स्रोत स्तंभ से प्रतिलिपि बना ली जाती है.

Syntax​

Table.DuplicateColumn(
table as table,
columnName as text,
newColumnName as text,
optional columnType as type
) as table

Remarks​

तालिका columnName में table नाम के स्तंभ का डुप्लिकेट बनाएं. स्तंभ newColumnName के लिए मान और प्रकार की स्तंभ columnName से प्रतिलिपि बनाई गई है.

Examples​

Example #1​

तालिका ({[a = 1, b = 2], [a = 3, b = 4]}) में स्तंभ "a" को "copied column" नाम के स्तंभ में डुप्लिकेट करें.

Table.DuplicateColumn(
Table.FromRecords({
[a = 1, b = 2],
[a = 3, b = 4]
}),
"a",
"copied column"
)

Result:

Table.FromRecords({
[a = 1, b = 2, #"copied column" = 1],
[a = 3, b = 4, #"copied column" = 3]
})

Category​

Table.Column operations