Column - chart function
Column() returns the value found in the column corresponding to ColumnNo in a straight table, disregarding dimensions. For example
Syntax:
Column(ColumnNo)
Return data type: dual
Arguments:
Argument | Description |
---|---|
|
Column number of a column in the table containing a measure. Note: The |
Limitations:
If
Recursive calls will return
Examples and results:
Example: Percentage total sales
Customer | Product | UnitPrice | UnitSales | Order Value | Total Sales Value | % Sales |
---|---|---|---|---|---|---|
A | AA | 15 | 10 | 150 | 505 | 29.70 |
A | AA | 16 | 4 | 64 | 505 | 12.67 |
A | BB | 9 | 9 | 81 | 505 | 16.04 |
B | BB | 10 | 5 | 50 | 505 | 9.90 |
B | CC | 20 | 2 | 40 | 505 | 7.92 |
B | DD | 25 | - | 0 | 505 | 0.00 |
C | AA | 15 | 8 | 120 | 505 | 23.76 |
C | CC | 19 | - | 0 | 505 | 0.00 |
Example: Percentage of sales for selected customer
Customer | Product | UnitPrice | UnitSales | Order Value | Total Sales Value | % Sales |
---|---|---|---|---|---|---|
A | AA | 15 | 10 | 150 | 295 | 50.85 |
A | AA | 16 | 4 | 64 | 295 | 21.69 |
A | BB | 9 | 9 | 81 | 295 | 27.46 |
Examples | Results |
---|---|
|
The result of The result of See the results in the column |
Make the selection |
The selection changes the |
Data used in examples:
ProductData:
LOAD * inline [
Customer|Product|UnitSales|UnitPrice
Astrida|AA|4|16
Astrida|AA|10|15
Astrida|BB|9|9
Betacab|BB|5|10
Betacab|CC|2|20
Betacab|DD||25
Canutility|AA|8|15
Canutility|CC||19
] (delimiter is '|');