Difference between revisions of "Excel to Analytica Mappings/Database Functions"
Line 6: | Line 6: | ||
[[Mean]]( table[FieldIndex=field], RowIndex'', w:criteria'' ) | [[Mean]]( table[FieldIndex=field], RowIndex'', w:criteria'' ) | ||
− | = DCOUNT(table,field,criteria) = | + | = DCOUNT(table,field,criteria) = |
− | Analytica | + | Analytica equivalent: |
− | [[Sum]]( | + | <pre> [[Sum]](criteria, RowIndex )</pre> |
− | + | where criteria is a Boolean comparison involving the table[fieldIndex = field] that evaluates to 0 or 1. | |
− | |||
− | where criteria is a | ||
= DGET(table,field,criteria) = | = DGET(table,field,criteria) = |
Revision as of 03:55, 26 January 2011
This page shows how selected database functions in Excel map to Analytica equivalents.
DAVERAGE(table,field,criteria)
Analytica equivalent:
Mean( table[FieldIndex=field], RowIndex, w:criteria )
DCOUNT(table,field,criteria)
Analytica equivalent:
[[Sum]](criteria, RowIndex )
where criteria is a Boolean comparison involving the table[fieldIndex = field] that evaluates to 0 or 1.
DGET(table,field,criteria)
Analytica equivalent:
table[FieldIndex=field,RowIndex=SubIndex(criteria,1,RowIndex)]
DMAX(table,field,criteria)
Analytica equivalent:
CondMax(table[fieldIndex=field],criteria,RowIndex)
DMIN
Analytica equivalent:
CondMin(table[fieldIndex=field],criteria,RowIndex)
DPRODUCT(table,field,criteria)
Analytica equivalent:
Product( If criteria Then table[FieldIndex=field] Else 1, RowIndex )
DSTDEV(table,field,criteria)
Analytica equivalent:
SDeviation( table[FieldIndex=field], RowIndex, w:criteria )
DSUM(table,field,criteria)
Analytica equivalent:
Sum( If criteria Then table[FieldIndex=field] Else 0, RowIndex )
DVAR
Analytica equivalent:
Variance( table[FieldIndex=field], RowIndex, w:criteria )
Comments
Enable comment auto-refresher