I've created a pie chart and can see the data labels on rollover. On rollover, l can see the actual and percent values together, but after changing the data label display property from "on rollover" to "Always", It only shows me either the actual or the percent values.
How can I show both the actual and the percent values in the "Always on" data labels?
I've tried to adapt the xml, but I don't know the correct way to do so.
Here is a trick to show both...
But if you want a Legend, you must include the entity Names before the value and percent. The result will be that the pie values will have both the entity/grouping name, actual value (because now, for OBIEE, its part of the enitity name) and the percent.:
First, you must enter the graph properties of the Pie Chart:
xyz
icon at the top-right of the Graph view in the Results tab).Titles and Labels
> Data Markers
> Display
Show Data Labels
is set to Always
.Display
is set to Name and value
.Change Value
is set to Percentage of total
.OK
> OK
.
Now create a concatenated column and add it to the Pie chart (credit to Miky Schreiber's blog):
LOGICAL_TABLE.ENTITY_NAME || ' ' || cast(FACT_TABLE.MY_MEASURE as char)
Select the checkbox Treat as an attribute column
> Click OK
.
Now Edit the graph/pie view and in the Layout editor, drag the concat column under Slices
and drag the measure under Slice Size
. Optional: Select the checkbox Show in Legend
.