I've got a data base with products separated by ID, Status and Date. I'd like to create a function to count all the differents Id's that has the same status, although, as we use a accumulative Data, the older status of a same ID gets accumulated in the count of the provious
Not a good idea to insult those trying to help you...
I provided a count of IDs by status as I understood your ask. If that is not what you want, articulate with more information including expected results.
I think I 'Got it', for the sake of others who may need this; this is the count of IDs based on the last Fase (Phase) they were in (data altered from original to get ensure it works rather than getting 1 for each.
This information brought to you free of charge in hopes that it is payed forward.