cancel
Showing results for 
Search instead for 
Did you mean: 

Context Error in Webi

Hi Team,

i am able to validate below formula however it is throwing CONTEXT error, Am i missing anything?

=(If (Sum([Value]) >0) Then( Sum([Value] ))Else If (Sum([Value])<0) Then (Sum([Value])) Else 0 ) Where ([Test]="EU")

Value is measure and Test is dimension coming from same query. Report based on Free hand SQL.


-Kedar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198519
Active Contributor
0 Kudos

Modify the formula:

=Sum(If (Sum([Value]) >0 and [Test]="EU") Then Sum(Sum([Value])) Else If (Sum([Value])<0 and [Test]="EU") Then Sum(Sum([Value])) Else 0 )