Pivot Table shows blank value labels - excel

I have a pivot table which ideally I would like to exclude any row labels that have empty values. The pivot table can be seen below:
As can be seen in the image, there is no values for the row label Type 2.
For some reason the option to display these items is checked and grayed out in the pivot table options under the display tab as can be seen here:
I found a number of resources online that said to check the "show items with no data" field under the Layout & print tab in field settings, but still to no avail.
Basically I want to have the above pivot table to display Type 1 and Type 3 values but not Type 2 as it has no values.
I am using Excel 2010.
Any help on this matter would be greatly appreciated!

Related

How to select an item from slicer to show on the chart

I'd like to show in the chart below as title the selection from the slicer. I see two possbile options:
Select the unique row from the table below where the data is from. I've tried Unique function, but it gives me all the unique items from the table, rather than only the selected item
Possible vba code to save the value from the slicer and save in a speficic cell?

Chart only a subsection of data in my table

I have a table and I want to show only a part of that data as a chart.
This is my data
pets age
coco 3
rover 3
clifford 8
rugrat 7
doug 1
I want to make a chart that shows pets on the x-axis and age on the y-axis.
Importantly, I want to show data for pets that are at least four years old (clifford and rugrat).
In my use case, I cannot delete those rows from my table because it would adversely affect other tables in my worksheet. I would also rather avoid pivot tables. My band-aid fix is to select the data and manually select, in this example, clifford and rugrat.
You mentioned you prefer to avoid pivot tables. This solution utilizes pivot charts, NOT pivot tables.
Click anywhere in the table and go to insert->pivot chart
(Optional) In the Create PivotChart menu, select the check box to Add this data to the Data Model. This will prevent a Pivot Table from being created in the workbook.
Drag Age into the values section and Pets into the Axis (Categories) section.
Click the dropdown button on the Pets field and add a value filter. In this case you want the sum of age to be greater than 4. (Alternatively, you can use the Pets button on the pivot chart.)
Below is the final product. You may wish to adjust the y-axis, add titles, etc. from here.
In Case you have Office 365, Try this:
Let assume that the following:
"pets" is on column A
"age" is on column B
You are Working in "Sheet5"
File Name is Book2
From the name Manager, create a named range called "Titles" and with value as:
=FILTER(INDIRECT("Sheet5!$A$2:"&"$A$"&COUNTA(Sheet5!$A:$A)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
From the name Manager, create another named range called "Values" and with value as:
=FILTER(INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
For Chart do the below:
Insert the chart type you need not based on the data in Column A & B and then
Click on the chart
From the Chart Design Tab click on "Select Data"
Under "Legend Entries (Series)" click "Add"
In The "Series Value" Box type Book2!Values (Values is the named range created before)
Under "Horizontal (Category) Axis Labels" click "Edit"
In The "Axis label range" Box type Book2!Titles (Titles is the named range created before)

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.

Removing PivotTable label that appears when 2 items in "Value" area

I am trying to create a PivotTable.
However I am getting an extra row appearing above my titles with the word "Values" in one of the cells. This naturally comes from the "COLUMNS" area, as a field is automatically appearing in it.
This only appears when I have 2 or more fields in the "VALUES" area. With 1 it is not present.
I don't want it and cant see a way of getting rid of it. Deleting it also removes the two fields in the "VALUES" area.
If you right click the pivot table and select "Pivot Table Options...", then in "Display" tab of the new window there is checker for "Show the Values row". Uncheck it and is should disappear.

Excel PivotTable from Cube: How to get a flat table?

I'm importing data from a SQL Cube and have several row labels I'd like to show. Is there a way to NOT have the hierarchical view? (aka no plus signs for the first row values, and instead show the second row label's value next to the first row labels, etc.) I'd like to see ALL data without it being hidden or aggregated together.
Figured it out...
It's under PivotTable Tools > Design > Report Layout > Show in Tabular Form

Resources