You may need to be more specific about what you want to measure. I presume coffee, but are you talking gm for dosage per serving or gm/kilo for bags & bulk coffee. There are quite a range of cheap electronic scales for measuring gm for dosage checking if you search Evil Bay for instance.
Grahamk