Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using same connection in all worksheets?

Status
Not open for further replies.

supportsvc

Technical User
Jan 24, 2018
249
0
0
US
I have a workbook with 5 worksheets
of which 4 are pivot tables and charts

I can't seem to figure out UNPIVOT to a table format?
As I need the 5th worksheet to use the same connection, so when clicking Existing Connection to add to the 5th worksheet, this as a Table format (AKA: RawData)

It added another Connection

Connection in the 4 worksheets is: YearlyOrders
the 5th worksheet, even though selecting Existing Connection, created another: YearlyOrders1
when I try to edit and remove the 1, it says connection already exists.

How do I have all the worksheets using the one connection: YearlyOrders?
 
Hi,

“I can't seem to figure out UNPIVOT to a table format?”

Do you want the result to be a table that looks just like your PT, or do you want the result to be a normalized table that contains one column for each ROW area and two colums for the COLUMN area?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Hello,

Looking for the latter "normalized table that contains one column for each ROW area and two colums for the COLUMN area"

AKA: "RawData
 
Check out this...
faq68-7103

This process was designed to make a table from pivoted data, not from a PivotTable.

But it can be adapted by 1) selecting in your PT. then 2) drag the ROWS field(s) and COLUMNS field(s) out of the ROWS/COLUMNS area and up into the Choose Fields area.

Then double-click the TOTAL VALUE cell to generate the Normalized Table.

I have never used it this way before, but my testing seems to confirm that this is what happens.

GOOD LUCK! let me know how it turns out for you.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Not seeing
2) Step 1 of 3 - Select Option Button: Multiple Consolidation Ranges -- [Next]
 
Since you are working from a PivotTable rather than a pivoted table (ie pivoted by some other process that is not directly a PivotTable), I suggested that you start with the step in my process (for a pivoted table rather than a PivotTable), start with dragging the ROWS/COLUMNS fields FROM those areas respectively TO the Choose fields area.

FAQ said:
6) Drag the Row and Column buttons OFF the Layout

7) Mysteriously, you are on another sheet that has a 4-cell pivot table. Double click the BOTTOM RIGHT CELL

8) Again, on another sheet -- This is you data normalized, or at least closer to it. You'll need to change headings at least.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
I get an error message

We can't make this change for the selected cells because it will affect a PivotTable. Use the field list to change the report. If you are trying to insert or delete cells, move the PivotTable and try again.

I know that if you double-click on a column cell in the pivot, it'll open the details for that one item into another sheet. But won't do it if you select all of it.

However, that looses the connection.
 
Did you “Use the [PivotTable] field list to change the report“?

You should not be inserting or deleting cells in the PT.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
?

start with dragging the ROWS/COLUMNS fields FROM those areas respectively TO the Choose fields area.
 
My PT
2018-05-11_en8tay.png


Drag or REMOVE ROWS field(s)
2018-05-11_1_vnghgd.png


Drag or REMOVE COLUMNS field(s)
2018-05-11_2_qhwd4q.png


Double-Click Total
2018-05-11_3_np3nai.png


Result is my external source data table on new sheet...
2018-05-11_4_vwlqzw.png


Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top