How to transpose Excel Pivot table - excel

I have source table where I have every number category in separate column (something like already pivoted).
I would like to create pivot table, where division are in columns and number category in rows.
I need to transpose columns with rows from this layout:
to something like this:
Is it possible within standard pivot without Power query and unpivoting my data? (I guess with PQ it would be bigger and took longer to refresh).

In the pivot field pane, drag Values from the Columns box to the Rows box, and drag Divisions from the Rows box to the Columns box.

Related

Pivot Table sorting - category instead of "Values"

Below is the extract of a table i want to sort
I'd like to create two Pivot Table in two separate sheets so that I only have the start and end Dates corresponding to only one of the two categories, i.e AC156 or AC157
Extract of the result tables
Since the source list keeps getting updated, I'd really like to do this using Pivot Tables so that I can keep refreshing it.
It seems simple enough but I'm admittedly quite new to Pivot Tables. Any help would be appreciated.
Highlight your data table;
Insert a pivot table;
Put all three columns into Rows field;
Right click somewhere within the pivot table, go to PivotTable Options, go to Display, select Classic PivotTable layout (enables dragging of fields in the grid);
If your pivot table has grouped the dates by month, un-check Months2 in the data fields but leave Months if you want to sort by Start date;
If you pivot table has shown the subtotal for start date, right click the subtotal row and deselect Subtotal 'Start'.
You can make a copy of the pivot table, filter the Cat, sort the Months and then Start, then you should have:

Combining Column Values in an Excel Pivot Table

In order to simplify a stacked bar chart, I am looking to sum up the counts of multiple columns I have in my pivot table. For example, in this sample table, I would like to combine Fruits and Vegetables into one column, so that each bar will comprised of three colors: one for Meats, one for Grains, and one for Fruits+Vegetables.
Pivot Table and Stacked Chart
For reference, this is the data source:
Data Source table
I tried adding a Calculated Field, but I'm not sure if I can use specific values from a column in the Formulas field. Is there a way to create something like this from a pivot table, or should I be taking a different approach to this all together?
I'm using Excel 2016, -- pretty sure it's the same with older versions, but the premise is the same.
In your pivot table, Select the Pivot Table Tools> Analyze tab, then "Fields, Items",then pull down to"Calculated fields". Enter a name for the generated field, and the formula you want to use:
In my example, I added the fields Fruit and Vegi's from my available pivot table fields (which is based on my data table).
Then select the calculated field as you would any other..
and create the chart as usual.
Hope this helps.

Why pivot table does not show identical rows from the initial table?

Why pivot table does not show identical rows from the initial table? My expectation is that the pivot table could show these in separate rows.
The initial table has 100 rows and my pivot table (while taking 4 columns) showing less.
To be more specific: All cells in 3 columns out of 4 are formatted as text, 1 column as number. If there are two rows which are identical in all 4 columns why only one of these is shown in the end pivot table? The number column is not summarized.
Identical values in the rows of a pivot table will be rolled up into one row. If the number is in the values area of the pivot table, it will be summarized.
See this data example:
If the number column is in the Values of the pivot table, then the data gets summarised and only three rows of text are showing. It is entirely possible to rename the column title from "Sum of ..." to something else, so it may not be apparent that the data is summarised.
If you want to show all data, then put the number column into the rows area. You can then format the pivot table to repeat all item labels if you want to see the text for all rows.
Edit: If all values in the Rows area identical, then the data will be rolled up, too. A pivot table is about summarizing data. You'd typically have something in the values area that calculates something about this unique combination of four values.
If you want to show all duplicates, you need to enter a unique 5th column in the row area.

Excel Slicers for Measures

I have a cube with two measure(count of patients) and (distinct count of visits) , and various dimension(date,program,region,etc), when I browse the cube data from excel, I can choose all the dimensions in the slicer, but my question is is there anyway i can choose the measures in the slicer? From what I see, when I insert a slicer I only get to pick the dimesnions
Any help would be appreciated
I'm not sure of a way around using PowerPivot to do this, short of complicated VBA scripts.
To do it with PowerPivot:
Create a new table with two columns. Column 1 contains the name of your measures and column 2 contains an index for each. e.g.
and add this to the Data Model (but don't create any relationships to any other tables).
Create a new measure with a SWITCH function that has the same relationship between the measures and their values in the Index column, e.g.
[Chosen Measure]:=SWITCH(TRUE, MIN(MeasureTable[Index])=1, [DistinctPatients], MIN(MeasureTable[Index])=2,[DistinctDates])
Add the new measure to the values section of the pivot table and add the
Measure column from your new table to BOTH a slicer AND the column headings in the pivot table and remove the row and column totals.

How to remove duplicate entries and condsolidate data Excel 2013

What is the easiest way to convert this data set,
into this data set?
Basically, I want to get rid of the duplicate Equipment numbers and consolidate the data for each into a single row.
Select the data range, click Insert - Pivot table.
Drag Equipment Number to the Rows area, the rest fields to the Data area.
Change aggregation function on all data area fields from Count to Sum.
In the table settings, untick grand totals for rows and columns.

Resources