Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default No grouping in pivot table (?ungroup?)

I've created an OLE DB Query that returns data from a SQL Server. I'd like
the data to appear in a pivot table the same way it appears when I run the
SQL query from Management Studio.

For example the data isn't grouped in SQL Query which is how I want it.
Project_ID | Resource | Hours
ProjectA | Bob | 8
ProjectA | Bob | 3
ProjectA | John | 5
ProjectB | John | 4

In excel I can't get my results to show like that. Instead I get the
following:
ProjectA | Bob | 8
| |3
| John | 5
ProjectB | John | 4

It groups the data for the columns. I'd like the data for the columns to
appear in every row so I can use this table in vlookups. Instead I get blank
cells because the data has been grouped together and is collapsible. How can
I get my SQL query to show properly in excel?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default No grouping in pivot table (?ungroup?)

But that is what pivot tables do. The group and aggregate data together. Why
not just return the data directly to a sheet instead of to a pivot table.
Baring that here is a link to a page to help you manipulate the pivot inot
what you need (by making it not a pivot table any more)

http://www.contextures.com/xlfaqPivot.html#Repeat
--
HTH...

Jim Thomlinson


"Colin" wrote:

I've created an OLE DB Query that returns data from a SQL Server. I'd like
the data to appear in a pivot table the same way it appears when I run the
SQL query from Management Studio.

For example the data isn't grouped in SQL Query which is how I want it.
Project_ID | Resource | Hours
ProjectA | Bob | 8
ProjectA | Bob | 3
ProjectA | John | 5
ProjectB | John | 4

In excel I can't get my results to show like that. Instead I get the
following:
ProjectA | Bob | 8
| |3
| John | 5
ProjectB | John | 4

It groups the data for the columns. I'd like the data for the columns to
appear in every row so I can use this table in vlookups. Instead I get blank
cells because the data has been grouped together and is collapsible. How can
I get my SQL query to show properly in excel?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default No grouping in pivot table (?ungroup?)

Sounds logical. How do I return a query directly to a sheet? I only know how
to grab external data using a pivot table.

"Jim Thomlinson" wrote:

But that is what pivot tables do. The group and aggregate data together. Why
not just return the data directly to a sheet instead of to a pivot table.
Baring that here is a link to a page to help you manipulate the pivot inot
what you need (by making it not a pivot table any more)

http://www.contextures.com/xlfaqPivot.html#Repeat
--
HTH...

Jim Thomlinson


"Colin" wrote:

I've created an OLE DB Query that returns data from a SQL Server. I'd like
the data to appear in a pivot table the same way it appears when I run the
SQL query from Management Studio.

For example the data isn't grouped in SQL Query which is how I want it.
Project_ID | Resource | Hours
ProjectA | Bob | 8
ProjectA | Bob | 3
ProjectA | John | 5
ProjectB | John | 4

In excel I can't get my results to show like that. Instead I get the
following:
ProjectA | Bob | 8
| |3
| John | 5
ProjectB | John | 4

It groups the data for the columns. I'd like the data for the columns to
appear in every row so I can use this table in vlookups. Instead I get blank
cells because the data has been grouped together and is collapsible. How can
I get my SQL query to show properly in excel?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default No grouping in pivot table (?ungroup?)

Forget it. How simple. Guess I really am a Newbie with excel.

For all other newbs:
Click Data tab
Click Existing Connections and choose table

"Colin" wrote:

Sounds logical. How do I return a query directly to a sheet? I only know how
to grab external data using a pivot table.

"Jim Thomlinson" wrote:

But that is what pivot tables do. The group and aggregate data together. Why
not just return the data directly to a sheet instead of to a pivot table.
Baring that here is a link to a page to help you manipulate the pivot inot
what you need (by making it not a pivot table any more)

http://www.contextures.com/xlfaqPivot.html#Repeat
--
HTH...

Jim Thomlinson


"Colin" wrote:

I've created an OLE DB Query that returns data from a SQL Server. I'd like
the data to appear in a pivot table the same way it appears when I run the
SQL query from Management Studio.

For example the data isn't grouped in SQL Query which is how I want it.
Project_ID | Resource | Hours
ProjectA | Bob | 8
ProjectA | Bob | 3
ProjectA | John | 5
ProjectB | John | 4

In excel I can't get my results to show like that. Instead I get the
following:
ProjectA | Bob | 8
| |3
| John | 5
ProjectB | John | 4

It groups the data for the columns. I'd like the data for the columns to
appear in every row so I can use this table in vlookups. Instead I get blank
cells because the data has been grouped together and is collapsible. How can
I get my SQL query to show properly in excel?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table grouping J. Sperry[_2_] Excel Discussion (Misc queries) 0 November 10th 07 12:38 AM
Pivot Table Grouping Markos Hunter Excel Discussion (Misc queries) 2 April 23rd 07 01:38 AM
Can't ungroup in Pivot Table Results - or how do I get what i want Dave Excel Worksheet Functions 3 January 31st 07 02:24 AM
Grouping in Pivot Table Minerva Excel Worksheet Functions 2 January 11th 06 10:30 AM
Pivot table grouping nc Excel Discussion (Misc queries) 3 January 19th 05 10:15 AM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"