Controlled Document (Document Library) screenshot as below.
Company_x0020_Code, Departmental and Discipline are Managed Metadata column.
I want to generate the running no based on Company_x0020_Code and Departmental.
Eg. I upload QC 4.docx and need to check which are having same [Company Code] and [Departmental], then total up and generate the running no. The generated running no will be updated in [Total_By_Company_Code].
What kind of condition is required to set after get items and filtered?