P
philip.au
I have a table suppliers that have the following fields
Suppliers
Organisation ID
Contract ID
Purchasable
Date Purchasable.
I want to put in row headings for date between [end date]- 7, previous
week, year, and cumulative.
I have tried to run a query something like below but is not working.
Could someone give me suggestions? I have been using the partition
function.
TRANSFORM Count([Contract and Supplier].Date_Supplier_Purchasable) AS
CountOfDate_Supplier_Purchasable
SELECT [Contract and Supplier].Supplier_Purchasable, Count([Contract
and Supplier].Date_Supplier_Purchasable) AS [Total Of
Date_Supplier_Purchasable], (Count([Contract and
Supplier].[Organisation ID]) AS [CountOfOrganisation ID]
Partition(Date_Supplier_Purchasable,
DateDiff(mm/dd/yyyy,02/06/2005,02/13/2005))
FROM [Contract and Supplier]
GROUP BY [Contract and Supplier].Supplier_Purchasable
PIVOT [Contract and Supplier].Date_Supplier_Purchasable;
Suppliers
Organisation ID
Contract ID
Purchasable
Date Purchasable.
I want to put in row headings for date between [end date]- 7, previous
week, year, and cumulative.
I have tried to run a query something like below but is not working.
Could someone give me suggestions? I have been using the partition
function.
TRANSFORM Count([Contract and Supplier].Date_Supplier_Purchasable) AS
CountOfDate_Supplier_Purchasable
SELECT [Contract and Supplier].Supplier_Purchasable, Count([Contract
and Supplier].Date_Supplier_Purchasable) AS [Total Of
Date_Supplier_Purchasable], (Count([Contract and
Supplier].[Organisation ID]) AS [CountOfOrganisation ID]
Partition(Date_Supplier_Purchasable,
DateDiff(mm/dd/yyyy,02/06/2005,02/13/2005))
FROM [Contract and Supplier]
GROUP BY [Contract and Supplier].Supplier_Purchasable
PIVOT [Contract and Supplier].Date_Supplier_Purchasable;