Hello.. Pretty simple problem here.
I have a report that shows how much we've paid one of our employees for work they've done in different departments. For accounting purposes, I need to know how much of their pay to allocate to each different department.
I have grouped the data by department and have the total for each group in the group footer.
But now I need to isolate those totals and use them in text boxes at the bottom of my report so that I can use their values in other calculations.
Usually an employee doesn't work in more than 3 or 4 departments so I only need 4 text boxes at the bottom, one for each department.
I have the text boxes in the report footer. I need to put an expression in each text box that results in the total for one department.
At first, I tried using the DSUM function, where it would sum the amount paid if the department matched some department-specific criteria.
Well that didn't work because we have 50 different departments so now I'm at the mercy of the experts.... any help is greatly appreciated!