Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi to all qv helpers ,
can anyone tell me why the result of the 2 expressions is not the same :
sum ( {$<Subject={1},[s_code]={3},[z_code]={1}>} val_a - val_b )
sum ( {$<Subject={1},[s_code]={3},[z_code]={1}>} val_a ) –
sum ( {$<Subject={1},[s_code]={3},[z_code]={1}>} val_b )
thanks !
Your first expression will be evaluated on record-level and if for example val_a or val_b isn't numeric or NULL the result for this record will be NULL. Your second expression will subtract the aggregation from two columns. And therefore you could get different results.
- Marcus
Not really sure why it would do that, do you have a sample to show the issue?
Your first expression will be evaluated on record-level and if for example val_a or val_b isn't numeric or NULL the result for this record will be NULL. Your second expression will subtract the aggregation from two columns. And therefore you could get different results.
- Marcus
thanks Marcus - yea this is it.