ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Grouping dates in pivot table (https://www.excelbanter.com/excel-discussion-misc-queries/248739-grouping-dates-pivot-table.html)

Marc[_6_]

Grouping dates in pivot table
 
I am pulling data from a SQL Server database to create a pivot table.
Excel (07) is not recognizing the field as a date. This is a field I
would like to group by in the pivottable. I am aware of all the
techniques to convert this to a date field, but I am searching for an
answer as to why XL pivot tables cannot consume the dates directly
from a sql query.

I have played with bringing the dates back in a number of differenent
formats with no success.

Any insights into this would be appreciated.

Bob Umlas, Excel MVP

Grouping dates in pivot table
 
Probably coming in as text and yuo may only need to copy an unused cell and
paste special values + "Add" to convert them to all real dates that yuo can
then group

"Marc" wrote:

I am pulling data from a SQL Server database to create a pivot table.
Excel (07) is not recognizing the field as a date. This is a field I
would like to group by in the pivottable. I am aware of all the
techniques to convert this to a date field, but I am searching for an
answer as to why XL pivot tables cannot consume the dates directly
from a sql query.

I have played with bringing the dates back in a number of differenent
formats with no success.

Any insights into this would be appreciated.
.


Herbert Seidenberg

Grouping dates in pivot table
 
Search criteria:
OLAP Pivot Table date 2007
Advanced Search microsoft.public.excel.*

Marc[_6_]

Grouping dates in pivot table
 
On Nov 18, 11:23*am, Bob Umlas, Excel MVP
wrote:
Probably coming in as text and yuo may only need to copy an unused cell and
paste special values + "Add" to convert them to all real dates that yuo can
then group



"Marc" wrote:
I am pulling data from a SQL Server database to create a pivot table.
Excel (07) is not recognizing the field as a date. *This is a field I
would like to group by in the pivottable. *I am aware of all the
techniques to convert this to a date field, but I am searching for an
answer as to why XL pivot tables cannot consume the dates directly
from a sql query.


I have played with bringing the dates back in a number of differenent
formats with no success.


Any insights into this would be appreciated.
.- Hide quoted text -


- Show quoted text -


This is true. The trick is consuming the data directly from the query
which should be possible.


All times are GMT +1. The time now is 04:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com