minVal
Returns the minimum value in a set of numbers.
Empty or null values are ignored.
Parameters
X (number, list, or table region)
A number, list, or table region.
X (number, list, or table region)
Optional. Additional numbers, lists, or regions.
Examples
These examples cover the basic functionality:
ATL in Script | Result | Notes |
---|---|---|
| 10 | The input set is four numbers. |
| 10 | The input set is a list of numbers. |
| 15 | The input set is one number and one list. |
| 20 | The input set is two lists. |
More typically, the input is a table region or LIST variable.
Using minVal with table data
Assume a "Describe the Table" project with this data:
Branch | Orders | salesRev | COGS | otherRev | otherExp | netProfit | |
---|---|---|---|---|---|---|---|
Row 1 | Aberdeen | 15 | 14,000 | 8,000 | 2,000 | 1,500 | 6,500 |
Row 2 | Edinburgh | 35 | 33,000 | 19,000 | 2,000 | 3,500 | 12,500 |
Row 3 | Inverness | 18 | 16,000 | 8,250 | 1,200 | 1,500 | 7,450 |
Row 4 | Glasgow | 35 | 32,500 | 17,750 | 1,250 | 1,700 | 14,300 |
You can search a single column.
ATL in Script | Result |
---|---|
| 15 |
| 14,000 |
Note
In a "Describe Row in Context" project, the column variables are OrdersColumn
and SalesRevColumn
.
You can also search a multi-column region.
ATL in Script | Result |
---|---|
| 1,200 |
| 1,500 |
Use minVal
with rows to interrogate specific rows.
ATL in Script | Result |
---|---|
| 35 |
| 18 |