I have two expressions that I want to Subtract.
Code 1:
Abs(Sum([BDC Info Table].[Pre-Owned or New]="New" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) AS [CountNew]
And
Code 2:
Abs(Sum([BDC Info Table].[Status]="Sold Not Set" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) AS [CountSoldNotSet]
Both of them individually work without any problem. Does any have a good way to subtract [CountNew] - [CountSoldNotSet] ? Logically, would be:
Code:
Abs(Sum([BDC Info Table].[Pre-Owned or New]="New" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) - Abs(Sum([BDC Info Table].[Status]="Sold Not Set" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#)))AS [Total Sold]
But, It doesn’t work.
Any help would be greatly appreciated
Comp2008
Code 1:
Abs(Sum([BDC Info Table].[Pre-Owned or New]="New" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) AS [CountNew]
And
Code 2:
Abs(Sum([BDC Info Table].[Status]="Sold Not Set" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) AS [CountSoldNotSet]
Both of them individually work without any problem. Does any have a good way to subtract [CountNew] - [CountSoldNotSet] ? Logically, would be:
Code:
Abs(Sum([BDC Info Table].[Pre-Owned or New]="New" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#))) - Abs(Sum([BDC Info Table].[Status]="Sold Not Set" And ([BDC Info Table].[Sold Date]<=#12/1/2008#) And ([BDC Info Table].[Sold Date]>=#11/3/2008#)))AS [Total Sold]
But, It doesn’t work.
Any help would be greatly appreciated
Comp2008