Hi All,
I have (or maybe now had) a problem with custom metrics. I am subtracting a field from another (eg. NPS - target). The targets are setup for each period for the whole year. As it's only September, the targets display for October, November and December but NPS is blank (it appears as a hyphen '-'), which is fine. the problem is that the custom metric that subtracts NPS from target still calculates so it's treating the blank '-' like a zero. I wondered how I could hide a custom metric if NPS was blank. Perhaps by some clever maths? My only slight thought is what if NPS is zero but let's not worry about that just yet!
I managed to get this working by using this formula in the custom metric
=(nps-target)-(nps/nps*0)
This seems to work but as mentioned what if the NPS calulates to be 0. Putting in a fiddle factor (eg.+ 0.0000000000001) might work but I guess I'll have to wait for a zero NPS.
Does anyone have any thoughts?
Thanks
Rod Pestell
Custom metric issue, eg. A-B when A dosn't exist it returns a value of -B
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


You can see that the 'NPS target' populated for P05, P06, P07 and P08 but in the data I imported does not contain targets for these periods. I can only assume that the it's something to do with the use of 'max' in the metric. The only other option I have is possible create a duplicate field in the dataset for this target field and tell it to be a text set rather than a number and then see if that stops it displaying but I don't think it will make any difference.