Get sum from today even if empty

Hi.

Using Flux
Can’t get value from today from database with produced pcs.
I want to get pcs produced today and if nothing is produced i want it to say 0.
Telegraf only writes to database when something has been produced
Tried grouping on day and showing last value.
Is there maybe a way to set startvalue to 00:00 today?

/Peter