Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys i need help with some set analysis
I want to =SUM(FUEL_MILES) where DRIVER is NULL
Fields:
FUEL_MILES
DRIVER
Thankyou guys
For the help
Originaly it was Null in text
I made a change in the script so it would be easier in the future= IF(DRIVER>0,1,0) AS JO_DRIVER,
SUM( { < JO_HasDriver={0} > } FUEL_MILES)
Hi, Try with this
sum({<Driver={''}>}FUEL_MILES)
Try this:
= SUM({< DRIVER = {"= Len(Trim(DRIVER)) = 0 "} >} FUEL_MILES)
try
sum({$-<DRIVER={"*"}>} [FUEL_MILES9])
SUM( { < DRIVER -={'*'} > } FUEL_MILES)
-= : mean NOT
'*' : mean All values
I want this set analysis to calculate FUEL_MILES when there is no driver. (NULL)
I think that won't work. You'll get the empty set.
is your "NULL" null() or 'null' ?
Hi Aaron,
Maybe:
=sum(FUEL_MILES)-sum({$<Driver={"*"}>}FUEL_MILES)
Cheers
Andrew
Edit : Robin has written his expression in a far better way than mine. I think my formulation is easy to understand but once you do understand what's going on Robin's expression should be used.
Did you try any of the expressions suggested? How is your null represented? Like actual word Null or '-' hyphen?