OBIEE Pie graph - How to always display both actual and percent values? - obiee

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:
Graph Properties (Click the xyz icon at the top-right of the Graph view in the Results tab).
Click Titles and Labels > Data Markers > Display
Ensure that Show Data Labels is set to Always.
Ensure that Display is set to Name and value.
Ensure that Change Value is set to Percentage of total.
Click OK > OK.
Now create a concatenated column and add it to the Pie chart (credit to Miky Schreiber's blog):
Add a new column (call it "concat").
Edit the new column's formula to be the concatenation of the entity--that the pie chart groups/slices by--and its measure value.
This is a string column, so you’ll need to convert the measure into string.
It will look something like this:
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.
Save your changes.

Related

Can I make a circle/table graphic in SSRS and divide it by a passed number

I was asked to create a report (in SSRS visual studio 2019).
The report has the following table number, numeric. How many people per table (generally 4-12), names, etc and the order in which the people will sit. From this I'm being asked to create is a graphic visualization of a circle (broken out evenly by number of guests per table) in the order of which they are seated.
For example here is my data set:
I need to create a seprate page with the lists below so it would like like this
Page 1 would have this:
Table 1 - 8 Guests
Page 2 would have this:
Table 2 - 4 Guests
we can also use embedded images -- the team has an image for each table size but we still have to obtain the locations of each spot (which means we'd have to know how to divide a circle)
You can do this easily.
Add a list or single column table and the set Dataset property to your dataset name.
Change the row group (probably called "details") by adding a group that groups by table.
Now insert a pie chart into the table cell. We should now get 1 pie chart per table.
Click the pie chart and add a value entry, set the value expression to =1/countrows(), this bit will just split the chart up evenly based on the number of guests.
Set the category group to the guest field.
Right-click the chart and "Show data labels", then right-click the label and set the value to this expression =Fields!id.Value & " - " & Fields!guest.Value. Set the data label position property to "outside".
Finally click the chart and expand the "custom attributes" section, set the PieStartAngle property to 270, this will make sure the first person is immediately after the 12 o'clock position.
Oh,. and set the chart title to something like `="Table " & Fields!table.Value"
The final output looks like this...

Add notes & footnotes to table

I have a report where I need to add a note/number where a record has data in a particular column. I then need to add a reference to that to the bottom of the table, much like a footnotes section you would see in a book.
I've tried adding the rownumber but it pulls in the actual rownumber and not the record count. I'm using oracle for my db.
In my report, if the record has a value for the column RETURN_NOTE (not shown), then concatenate an int tot he end of the TASK_NAME column. Then underneath the table, add the int from above with the RETURN_NOTE value.
You can see the red numbers and their description in the image below.
Thanks
The best way to go here is when you add a calculated field to your dataset where you put your footnotes into the expression. Lets assume your footnotes depend on the Fields!Task.Value and lets call this calculated field Footnotes:
'Name: Footnotes
=Switch(Fields!Task.Value = "Prepare for Coordinator", 1, Fields!Task.Value = "Ready for Closeout", 2)
Now add another column to your tablix and put the field Fields!Footnotes.Value in this column.
Then add a rectangle or another tablix somewhere in your report (put in the values which explains the footnotes). Then go to the properties of this tablix/rectangle (pane on the right) and under Other > Bookmark write in a bookmark code (for example: FootnotesExplained).
Go back to your textbox with the Fields!Footnotes.Value in it and right click on this textbox and go to Text Box Properties > Action and check the Go to bookmark option and write below your bookmark code from before FootnotesExplained.
When you click now on one of the value in the column where the footnotes are the report will jump to the tablix/rectangle where your footnotes descriptions are.

Data validation on the result of a formula

I'm looking for a way to default a cell value with data validation applied, but allow the user to overwrite the value to one of the valid values allowed.
I have a demo spreadsheet here.
And visually:
I have data validation on column D that provides a list of possible markup percentages from column G, however, I want a default value in there so I have written a formula to work this out (based on there being a value in an adjacent cost cell).
I enter the item, I enter a cost and the markup defaults. All good.
But, when I click the dropdown I don't get any values popup. the formula is shown instead.
I have tried conditional formatting based on making the cell text and background white, but this is sub-optimal for my real world (significantly more complex) scenario.
How can I achieve what I am after - a default value of 50% if there is a cost value, but selectable from the drop-down.
The only way to add a "default" value based on a condition is to use on edit (simple or installable) script.
Example:
The following is an simple on edit trigger. If a cell from column C below the first row is edited, then the cell to the right will be 50% (assuming that the cell format is set to display %)
function onEdit(e){
if(e.range.columnStart === 3 && e.range.rowStart > 1){
e.range.offset(0,1).setValue(0.5);
}
}
Resources
https://developers.google.com/apps-script/guides/sheets
https://developers.google.com/apps-script/guides/triggers

How can the row and column labels of a Microsoft Reporting matrix be set?

I have a simple matrix control on my report, and the data shows up like I expect, except without labels.
How can I get the labels to appear with the values I want (not necessarily the name of the data element)?
I found that by highlighting the cell where the data is accumulated, it is possible to right click and select 'Insert Static Row' or 'Insert Static Column'.
Once the static row or column is created, it can be used as a label.

Telerik Report : Starch line in Detail band or Add Empty rows

I am trying generate one sale bill format format in telerik report design.
I Need Output like detail band is grow to fit page size. like adding blank row.
i have used table inside details band.
Is there any property in detail band or in table to fit page size?
or i have to manually add blank rows?
You can set the Docking property by selecting the table and then using the property window to set the value.
Set it to Fill by clicking in the value box and selecting Fill.
Alternatively you can just type Fill.

Resources