34
Note:
Theformulainthisexampledoesnotbeginwithanaggregatefunction(Min,
Max,etc.).Ifyouomitthefunctioninthisway,DesktopIntelligencecalculates
asumbydefault.However,ifyouhadspecifySumoranotheraggregatefunction
intheformulaabove,forexample
=Sum(<Revenue>) In <Year>
DesktopIntelligencereturns#COMPUTATION.
IftheYeardimensionisavailableinthedocument,youcan,usingextended
syntax,calculaterevenueperyearwithoutdisplayingYearinthetable.To
dothis,youmustdefineaformulawithaninputandanoutputcontext,like
this:
=Sum(<Revenue> In (<Region>,<City>,<Year>) In <Year>)
Solutionfor#MULTIVALUEinanaggregation
Toavoid#MULTIVALUEinanaggregation,theoutputcontextmustbe
includedinthelocalcontext,whichmeansthatthedimension(s)specified
ontherightoftheformulaafterInorForEachmustbepresent.
Tofixyourformula:
1. DisplaytheFormulaBar(FormulaBarcommand,Viewmenu),thenclick
thecellcontainingtheformula.
2. Lookforthefollowing:
• Doestheoutputcontextcontaindimensionsthatarenotintheblock
orsectioninwhichtheformulaisinserted?Forexample,ifthefollowing
formulaappearsinablockthatdoesnotcontainYear,you'llgeta
#MULTIVALUE:
=Min(<Revenue>)In(<Year>)
• Doestheoutputcontextcontainmoredimensionsthanthelocal
context?
• Forexample
=Min(<Revenue>) In(<Region>,<City>)
DesktopIntelligenceAccessandAnalysisGuide
273
17
CalculationTroubleshooting
#MULTIVALUE