It's a Spanish idiomatic expression used to imply that someone is not very bright or lacking in intelligence. Literally translates to 'missing grams for a kilo'.
Examples
- Spanish: No entiende las instrucciones más sencillas, le faltan gramos para el kilo.
- English: He doesn't understand the simplest instructions, he's missing grams for a kilo (he's not very bright).