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

Table.AggregateTableColumn

तालिकाओं के स्तंभ को तालिकाओं के एकाधिक स्तंभों में एग्रीगेट करता है.

Syntax​

Table.AggregateTableColumn(
table as table,
column as text,
aggregations as list
) as table

Remarks​

table[column] की तालिकाओं को तालिकाओं के लिए एग्रीगेट मानों वाले एकाधिक स्तंभों में एग्रीगेट करता है. aggregations का उपयोग उन स्तंभों को निर्दिष्ट करने के लिए किया जाता है जिनमें एग्रीगेट करने के लिए तालिकाएँ, अपने मान जनरेट करने के लिए तालिकाओं पर लागू करने के लिए एग्रीगेट फ़ंक्शन और बनाने के लिए एग्रीगेट स्तंभों का नाम होता है.

Examples​

Example #1​

तालिका {[t = {[a=1, b=2, c=3], [a=2,b=4,c=6]}, b = 2]} में [t] के तालिका स्तंभों को [t.a] के योग, [t.b] के अधिकतम तथा न्यूनतम और [t.a] की संख्याओं की गणना को एग्रीगेट करें.

Table.AggregateTableColumn(
Table.FromRecords(
{
[
t = Table.FromRecords({
[a = 1, b = 2, c = 3],
[a = 2, b = 4, c = 6]
}),
b = 2
]
},
type table [t = table [a = number, b = number, c = number], b = number]
),
"t",
{
{"a", List.Sum, "sum of t.a"},
{"b", List.Min, "min of t.b"},
{"b", List.Max, "max of t.b"},
{"a", List.Count, "count of t.a"}
}
)

Result:

Table.FromRecords({[#"sum of t.a" = 3, #"min of t.b" = 2, #"max of t.b" = 4, #"count of t.a" = 2, b = 2]})

Category​

Table.Transformation