If you are using traffic metrics like Visits, you will get Undefined line item because evar value is not set on every visit. If you are using Custom events as metrics and seeing Undefined, that means, evar value was not set (or expired) when the event was fired.