Hi @MargauxCella ,
In your Generic Inquiry, create a new formula field that will be used to determine whether the color matches the criteria (e.g., green). The formula should evaluate to 1 if the color matches and 0 otherwise.
- Expression:
IIf([ColorField] = 'Green', 1, 0)
- Data Type: Integer
Group the inquiry results by the fields that uniquely identify each line (e.g., Line ID).
Utilize the SUM() function on the formula field within each group. This aggregates the formula field values, effectively counting the occurrences of the color per line.
Regards,
Sweta