It is a monthly scrap cost for vendor. Problem is when there is no scrap
cost in the month for a CCID, it comes up null and I have a hole in my
chart.
Thankx ya'll
TRANSFORM Sum([DMRDB SL].ExtCOST) AS SumOfExtCOST SELECT
Format([Date],"mmm"" '""yy") AS Expr1 FROM [DMRDB SL] GROUP BY
(Year([Date])*12+Month([Date])-1), (Format([Date],"mmm"" '""yy")) PIVOT
[DMRDB SL].CCID;
-JS
Rick Brandt said:
I am familiar with NZ. If the vendor code is the Group By Column Heading,
and the query comes up with no data, how would you invoke the NZ
function?
TIA
Assuming that you are plotting data "per month" or similar you need to
create a table that has all months represented and then outer join to that
in your query so that all months are represented even when the other tables
have no data.
A caveat here is that you need to consider the type of data you are
charting before you do this. If you are just charting deliveries or
delivery amounts, then it should be harmless. However; if this were a QA
database and you were charting rejects or late deliveries, then you
wouldn't want months with no activity to be plotted the same as months with
activity, but zero instances. A vendor's performance should not be
bolstered up merely by having months where he has done nothing.