Difference between revisions of "XL3Lookup"
m (Capitalised the parameter names) |
|||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
− | {{Code|XL3Lookup( | + | {{Code|XL3Lookup( Connection, [Hierarchy1], [Member1],…, [Hierarchy14], [Member14] )}} |
==Parameters== | ==Parameters== | ||
Line 12: | Line 12: | ||
! Description | ! Description | ||
|- | |- | ||
− | | {{Code| | + | | {{Code|Connection}} |
| Connection number to use | | Connection number to use | ||
|- | |- | ||
− | | {{Code| | + | | {{Code|Hierarchy1,…, HierarchyN}} |
| Name of the hierarchy that the member applies to e.g. {{Code|"Measures"}} or {{Code|"[Customer].[Customer Geography]"}} | | Name of the hierarchy that the member applies to e.g. {{Code|"Measures"}} or {{Code|"[Customer].[Customer Geography]"}} | ||
|- | |- | ||
− | | {{Code| | + | | {{Code|Member1,…, MemberN}} |
| Comma-delimited list of members to use for the cross section | | Comma-delimited list of members to use for the cross section | ||
|} | |} |
Revision as of 13:58, 6 October 2010
Returns a cube cell value for a given cross section of the cube.
Use the Insert Formula > Value menu or ribbon item to insert the formula using a wizard.
Contents
[hide]Syntax
XL3Lookup( Connection, [Hierarchy1], [Member1],…, [Hierarchy14], [Member14] )
Parameters
Parameter | Description |
---|---|
Connection | Connection number to use |
Hierarchy1,…, HierarchyN | Name of the hierarchy that the member applies to e.g. "Measures" or "[Customer].[Customer Geography]" |
Member1,…, MemberN | Comma-delimited list of members to use for the cross section |
Examples (based on the Bicycle Sales cube)
Revenue 2004.
=XL3Lookup( 1, "[Time]", "[Time].[2004]", "[KeyFigures]", "[KeyFigures].[Revenue]" )
Sum of Revenue 2003 and 2004.
=XL3Lookup( 1, "Time", "2003,2004", "KeyFigures", "Revenue" )
XL3Lookup using MDX
You can specify an MDX calculation for members using the MDX: syntax.
Variance %.
=XL3Lookup( 1, "Channel", "Direct Sales", "KeyFigures", "Revenue", "Scenario", "MDX:(Budget-Actual)/Budget", "Time", "January 2003" )
% of Previous Year.
=XL3Lookup( 1, "Time", "2003", "Measures", "MDX:((Measures.Revenue,ParallelPeriod(Time.Year))-(Measures.Revenue))/(Measures.Revenue,ParallelPeriod(Time.Year))" )