Hello Ash,
First of all your requirement cannot be achieved straight away with the existing WebI functionality and secondly don't use If..Else Condition for calculating the Measure.
So, you have a Radio Button on [Select a Measure] object which has values Sales revenue and Extended price
Now in the Webi report create 4 Measure variables as mentioned below.
VAR 1 =[Sales revenue] WHERE (ReportFilter([Select a Measure]) = "[Sales revenue]")
VAR 2 =[Quantity] WHERE (ReportFilter([Select a Measure]) = "[Sales revenue]")
VAR 3 =[Extended price] WHERE (ReportFilter([Select a Measure]) = "[Extended price]")
VAR 4 =[Margin] WHERE (ReportFilter([Select a Measure]) = "[Extended price]")
Now create 2 tables in your report with your
Table 1 : Dim objects, VAR1 and VAR2
Table 2 : Dim objects, VAR3 and VAR4
Now create a Flag variable with If..Else Condition.
Flag =If ReportFilter([Select a Measure]) = "[Sales revenue]" Then "Y" ElseIf ReportFilter([Select a Measure]) = "[Extended price]" Then "N"
Select the Table 1 and set the Report Filter Flag =Y
Select the Table 2 and set the Report Filter Flag =N
Place Table 1 exactly on top of Table 2.
So, now when the user selects Sales revenue it will display Table 1 with Dim objects, Sales Revenue and Quantity and when the user selects Extended Price it will display Table 2 with Dim objects, Extended Price and Margin.
User will get what he wants but will be completely unaware of whats happening in the backend
Hope you understood the trick