Dynamic Measures in Webi (On Any Data Source) : I'm Using
Dynamic Measures in Webi (On Any Data Source) : I'm Using
Imagine that you have database that contains a number of different measures, and the reporting requirements
call for many identical reports where the only difference is the measure. For example, the one report layout may
be required to show either Revenue, Gross Margin, Net Margin, Volume, Average Sale, etc.
Rather than duplicate the reports that are shown, you can let the user decide which measure to show, and design
only one report. Previously Id written a post showing how to do this using a derived table in the universe. This
post shows you how to get the same results without a universe (for example if your source is BEx or MSAS or
you simply dont have access to edit your universe).
Im Using
BI Launch Pad/Webi
Im Assuming
1.
Create a new Webi Intelligence report, or open an existing one. For the instructions to make sense,
youll need at least two measures and one dimension.
2.
On your report canvas, create a new block that contains a dimension and all of the measures that you
want your users to be able to chose between.
3.
Add a variable called Select A Measure, of type Dimension, with the value of Revenue ($).
4.
Click OK
5.
On the left side of the screen, click the Input Controls icon.
6.
Add a new Input Control, and base it on the dimension called Select a Measure.
7.
Make it a single-select input control, either radio buttons or a drop-down will do.
8.
9.
In the box in the top left, type Revenue ($) (or the name of any of your measures).
11. Repeat for any other measures that you want your users to select from. Since there's no way to reorder
them once added, add them in the order that you want them to appear to your users.
14. Now you need to add a measure variable that will return the appropriate measure, based on what the
user has selected from the input control. So, add a variable measure called Selected Measure, and
enter in the formula below.
18. But the format of the selected measure won't always be right. For this we will use Formatting
Rules (formally known as Alerters). So, click on the Analysis tab, then the Conditional tab.