Calculate the number of entities collected per day on qfield

Hello everyone,

I would like to know if there is a possibility of calculating the number of entities collected over a day on qfield without having to go through the computer and Qgis and without having to count everything manually.

I thank you in advance


Imported from GitHub discussion by @Jipforester on 2025-02-19T08:01:39Z

Do you have one or multiple layer ?

A one layer solution can be :

  • Create a field called creation_date with a default value using the expression: : format_date(now(),'ddMMyyyy')
  • Create another field called ‘count_today’ with default value : count("creation_date", filter:="creation_date" = format_date(now(),'ddMMyyyy'))
  • Setting fields properties (non editable, not null, auto update, …)
  • Add count_today to the form

Each time you add a feature, number of feature added today is printed.


Imported from GitHub comment by @paul-carteron on 2025-02-20T09:51:36Z

Good evening,

I have one layer with the field information.
I tried your solution and it works perfectly, thank you very much !


Imported from GitHub comment by @Jipforester on 2025-02-20T18:38:34Z