Pivot table using 2 data ranges - excel

is it possible to have a single pivot table that combines 2 worksheets as the data?
For example, first data table will be made up of the following columns:
ID/Details/Category
The second data table will be made up of the following columns:
ID/Customer name
The reason why the 2 tables are not combined is because there may be many customer names to the same customer name.
I want a pivot table that will show me the following things:
1) Be able to sort by ID and see for each ID the details linked to that ID sorted by category
2) Be able to sort by customer name and see the details linked to that customer sort by category.
Thank you for your help.

Press Alt+D+P. Select multiple consolidation ranges, choose your two ranges of data, and you've got it.

Related

Creating Pivot Table with data having multiple variables

This is how my raw data looks:
I want to create a Pivot Table that summarises this (currently made using COUNTIF):
This is my progress with the Pivot Table:
The data gets cluttered if I add all 5 subjects/courses to the "Rows" in the Pivot Table. If I keep only one of the five subjects in the "Rows" of the Pivot Table, the count is correctly displayed for only that particular subject.
How do I make it possible?
You must define a custom sorting list:
You can then select this list to sort your pivot table.
Good luck!

SSRS Cells auto-merge

I'm having trouble unmerging cells on the report.
3 Suppliers for the query
I have a SQL query that shows 3 instances of a supplier (left joined to contact) as shown below. However, when running the report for the query the 3 instance of the supplier is merged into one. This is not desirable in my case because when exporting the report to excel, I'd like to be able to sort columns based on other properties, however, this would not be possible due the the merging of the rows. How can I get results to show individually?
Cells are Merged on the report
Within the properties of each Row Group you can specify which columns to group on. You generally don't need a separate group for each field, but that's OK. In your last group, the one called "(Details)", if it is not grouped by anything, it will show one row per line of results from the query. So take a look at what it's grouped by. As long as the rows are in your dataset, the report will group or show them based on how you configure the grouping here. Grouping on nothing means it will show all rows.
Another tip is to align the end of your header textbox with the line of one of your columns. This will prevent it from creating an extra column in Excel for the "City" field.
Your report does not need all of those groupings - the SSRS grouping is not like SQL. You should only group when you want to aggregate data on that field. Normally you might have a company with its address in various fields in one group but you only need to group once on the Company Name or (preferably) ID - not on each field and not a separate group for each. You could then show details of various invoices in other columns that aren't grouped.
But since you want to display the company data on each row, you would not want ANY grouping on the company.
To fix your issues, remove all the groupings (but not the rows) and just leave the detail group (which doesn't have a Grouping).
You can check out MS Docs: Understanding Groups for a better explanation.

Stop rows with name label names merging in Excel pivot table

I have 2 rows in my pivot table, with the same label "Josh Kennedy". When the pivot table is created, it combines them and makes all the stats distorted, as it combines their stats. Is there a way to fix this?
That's what PivotTables do: They aggregate things. If the issue is that you have two people called Josh Kennedy, then you'll need to bring in another field into the PivotTable that will separate the data, such as a unique CustomerID field, or an address field, or similar.

Excel table relationship manager

I have two tables in Excel that I'm trying to create a relationship between and I can't seem to understand why it is not working.
Table1: Consists of a Region and Health Board field. (Health Board values consists of text, hidden as they're for my project)
Table 2: Consists of unique region codes and again text which i've hidden.
I've tried to create a relationship between the two fields: (1 to many relationship) but I'm getting a warning saying that both entries should be unique. Why is this the case?
Now when i go to make a pivot table to display a summary based on the two... it cannot find the relationship.
In the pivot options, I am attempting to put region column from table 2 as the rows and health board (text) values as the values. Can someone tell me what i'm doing wrong?

Excel Pivot Table Count of Sub-Rows

I have a Pivot Table structure as follows:
ROWS:
+-State
+---Customer
+-----Brand
Columns:
+-Cost
I would like to have another column that contains the number of Customers in each state. The issue being that my data contains every order that the customers had placed, so when I try to get the count of Customers it is returning every instance of said customer in the column. Another issue is that my data is 40,000 rows, so I want to try and avoid having to edit the raw data.
I can easily do this with brute force, but I was wondering if there is anyway to do this with standard pivot tables and no add-ons. The pivot table already does a nice job of consolidating the unique values for customers, now I just need a count of those unique values.

Resources