how to set the pivotal table layout in java - apache-poi

is there any way to change the pivot table layout in APACHE poi lib?
we can choose the pivot table in excel, then click the any of pivot table cell
then will show a design tab in the top, we can change the layout in this table. but how can I do that in the java code?

Related

Pivot Charts - how to choose columns to show on the graph

so far when I want to choose columns which I want to show in the graph, I have to click on the pivot table and then choose columns fom pivot fields. Is there a faster way to do that? I would like to add some nice looking list under the graph from which I could choose columns to show.
You don't need to use the PivotTable, you can add columns directly to the PivotChart using the same interface as for PivotTables. Right click on the PivotChart and select "Show Field List" as the bottom. The control pane will appear on the right.
Building a custom user interface below the PivotChart would require a significant amount of VBA and would not perform as well.

Cilick on table visualization row and highlight Spotfire action control button

I have a table visualization in my Spotfire dashboard, which shows up all the required values. I have a Spotfire button in a text area, which picks the values from the selected row in my table.
I want to highlight the button whenever I click on the rows of my table visualization.
Any suggestions on how I can add any onclick function to my table visualization, to achieve the above?
Thanks in advance!
So you want to trigger an IronPython script on a click of a column in a table visualisation ?
I guess in the the graphical table there is an "Action" which can be configured to trigger the IP script.
And you could also mark the row and pass it as in input to the datafunction which in turn updates a Doc prop and triggers the IP script.

How to avoid conditional formatting change and pivot table columns disappearance when refreshing?

I have a pivot table which shows the relation of employees' names and FTEs per month, and I put conditional formatting according the range of the FTE:
0 - 0.85 = light orange
0.86 - 1.14 = solid green
greater than 1.14 = red
However, when I refresh the pivot table, some columns disappear, is there a way to solve this with a macro or why do I have this error?
I already have selected the field of keeping format when refreshing in pivot table options, but this is not working.
By default, the Pivot Table shows only the items for which there is data. To show all the data in a Pivot Field you have to make the following change for each field in which you want to see all the data:
Right-click an item in the pivot table field, and click Field Settings;
In the Field Settings dialog box, click the Layout & Print
tab;
Check the 'Show items with no data' check box;
Click OK.
You can also preserve cell formatting by the following simple actions:
Right-click the pivot table and choose PivotTable Options from the
resulting submenu;
Click the Layout & Format tab;
At the bottom of the options, check 'Preserve cell formatting on update' and 'Autofit column widths on update';
Click OK.

Excel pivot table formatting keeps changing

Suppose I have a pivot table:
Now if I add a column in it turns into this:
Clearly the formatting has messed up on the lighter blue cells at the top. I wish these to be the same dark blue as the original.
Even worse it does this when even just the values of the raw data behind the pivot changes, let alone adding columns etc.
Is there a fix for this to lock the formatting as I am having to update many such pivots and changing the colour each time I make a single change on the raw data or want to add a new column on every pivot is getting tedious.
I have looked online and looked into preserve cell width + formatting option bt messing with those has not helped.
Any ideas?
PS: Can anyone embed the images for me?
If you want to preserve the formatting, you need to add a new pivot table style. Within a pivot table, choose Design on the ribbon. You'll see swatches of the existing pivot table styles. Choose the down arrow and "New Pivot Table Style."
This dialog box will appear.
From here, you could specify the header, total row, and row styles you'd want. Once applied to a pivot table, new columns won't affect the style.

MS Excel pivot table for arranging and selecting attributes

I have raw data as shown in this image:
img 1- raw data
I want to know how the pivot table in the image below is created:
img 2 req pivot table
Currently, the fields that I select are appearing as rows below one another.
[img3][3]
Using Excel 2010: Go to the "Design" tab, click the "Report Layout" dropdown, select "Show in tabular form."

Resources