The task is to display a fixed level hierarchy together with totals for each level. This can be done using breaks. The most straightforward implementation might look like this:
If there are many levels and the level names are long, the table will be very wide, with a lot of empty space. It would be better to have more compact layout, for example:
Steps
Lets prepare a test query from the Island Resorts Marketing universe:
Clear the break headers. Then copy the expression from the table body to the header (for the break columns) as below:
Hide the text for the body cells by setting its color to white. You should not clear the content of the cells because these columns are used for the breaks.
Images
Upload necessary images to the BO server in the folder [Business Objects]\BusinessObjects Enterprise 12.0\images In this example images green_arrow.gif and red_arrow.gif were used.
Preparation
Create new Webi document based on Island Resort Marketing universe, Pull object Resort, Year, Revenue into the query. Create the variable Revenue 2004 with the following expression: =Sum(If [Year]=FY2004 Then [Revenue]) and Revenue 2005 =Sum(If [Year]=FY2005 Then [Revenue])
Defining Alert
Click the alerter button on the tool bar.
Create new alerter, and in the created alerter add two sub-alerters: one for green arrow when Revenue for 2004 is less then Revenue for 2oo5, and one for red arrow in the opposite situation.
For the first sub-alerter, select Image from URL, and enter boimg://greet_arrow.gif in the URL field. Boimg refers to the folder [Business Objects]\BusinessObjects Enterprise 12.0\images. Do the same for the second sub-alerter.
So: = ToDate(UserResponse("Date:");"INPUT_DATE_TIME")