on 08-06-2012 6:09 AM
while creating a report in Webi , i am using a cross table and i want to calculate total for some dimension values.
For this i have created a dimension using the IF function.
Like: If([Dimension]="10" Or [Dimension]="30" )Then "10/30" Else "15/20" . This is working fine.
But when i include total also in it , it does not give the value of total
like : If([Dimension]="10" Or [Dimension]="30")Then "10/30"
ElseIf ([Dimension]="15" Or [Dimension]="20") Then "15/20"
ElseIf([Dimension]="10" Or [Dimension]="30" Or [Dimension]="15" Or [Dimension]="20") Then "Total"
10/30, 15/20 are comming but Total is not comming,
Any idea or any other alternative.
Thanks in advance..
Dear Rahul,
The condition got satisfied in first & second if block itself and so its not going to last ElseIF loop.
Hope this clears. Let me know if i misse dout something
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rahul,
This can be handled by creating a varaible .
Variable A
If([Dimension]="10" Or [Dimension]="30" Or [Dimension]="15" Or [Dimension]="20")
Then [variableA]="TOTAL"
Variable B
If([Dimension]="10" Or [Dimension]="30")Then [variableB]="10/30"
ElseIf ([Dimension]="15" Or [Dimension]="20") Then [variableB]="15/20"
U can use [variableA] and [variableB] where ever u require.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.