Quote:
The Question:
I have many rows in my fact table that have a NULL value for Date2.
What does DateDiff return in this situation? 0? I've read that
Analysis Services uses 0 in place of NULL in several places and
I'm concerned that if DateDiff returns a 0 in this situation,
that it will skew my averages down for all the records where there
is a NULL/Empty value in Date2. |
I'm honing in on my answer, but I have a new problem now.
effectively what I did is equivalent to returning a O for
a datediff where one of the dates is null, as I was using
the line count as my denominator in my calculation. Therefore
the results were skewing due to the fact that *all* line items
were being counted regardless of whether there was a date
or not.
S0, what I need now is a line count for lines that don't have
a NULL for Date2.
I've tried creating a new Measure calculated as such:
iif(IsEmpty("dbo"."tbl_Line_Item"."Date2"),0,1)
I would then have this measure Sum, to give me the number
of rows that are not null for Date2...
however I'm getting a "The Column is not valid" error...