Apmācība
Modulis
Create formulas that use tables, records, and collections in a canvas app in Power Apps - Training
Do you have need for complex formulas in your app? This module can help you write those formulas.
Šī pārlūkprogramma vairs netiek atbalstīta.
Jauniniet uz Microsoft Edge, lai izmantotu jaunāko līdzekļu, drošības atjauninājumu un tehniskā atbalsta sniegtās priekšrocības.
Table.FirstN(table as table, countOrCondition as any) as table
Returns the first row(s) of the table table
, depending on the value of countOrCondition
:
countOrCondition
is a number, that many rows (starting at the top) will be returned.countOrCondition
is a condition, the rows that meet the condition will be returned until a row does not meet the condition.Find the first two rows of the table.
Usage
Table.FirstN(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
}),
2
)
Output
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"]
})
Find the first rows where [a] > 0 in the table.
Usage
Table.FirstN(
Table.FromRecords({
[a = 1, b = 2],
[a = 3, b = 4],
[a = -5, b = -6]
}),
each [a] > 0
)
Output
Table.FromRecords({
[a = 1, b = 2],
[a = 3, b = 4]
})
Apmācība
Modulis
Create formulas that use tables, records, and collections in a canvas app in Power Apps - Training
Do you have need for complex formulas in your app? This module can help you write those formulas.