Hi,
I have created an app connected to a table with 4 columns (Employee, ProductType, Price, Sector), like represented in the print bellow.
When submiting the form, I want to send an email to myself with the information of the sales of each employee (example in the right side of the print bellow):
- I want to filter my table Sales based on the Sector I choose in my ComboBoxSector and for each employee I want to calculate their sales of the product X and their sales of all the other products (ProductType<>X)
I have tried to use ForAll function but I can't figure out how to make it work for calculating sums of both ProductType=X and ProductType<>X in the same Loop.
Please note that I have many employees and don't want to specify a condition for each one of them individually.
Can you help me find a solution?
Thank you

Report
All responses (
Answers (