I have a cross-tab that looks like this:
emp1(org1) emp2(org1) emp3(org2) emp4(org3)
proj1 0 0 0 0
proj2 3 0 1 0
proj3 5 0 2 0
TOTAL 8 0 3 0
I want to show ALL employees in organization 1 regardless of whether or not they have time worked on one of the 3 projects. For all other organizations I want to show the employee ONLY if they have time worked on one of the 3 projects (in this case emp3), ie, if their grand total is greater than 0.
The report is grouped on employee then project. If I check the "suppress empty columns" box then I won't see emp2 who belongs to organization 1.
I have read the threads that mention creating empty values then using the "discard all others" option in the group format. I tried changing the employee group such that
This didn't work I assume because it needs to create the group before it can evaluate group summaries. I can't build the select into the query because I need all of the data elsewhere.
Does anyone have any innovative ideas to work around this or am I asking to move the earth?
Thank you!
Jen
emp1(org1) emp2(org1) emp3(org2) emp4(org3)
proj1 0 0 0 0
proj2 3 0 1 0
proj3 5 0 2 0
TOTAL 8 0 3 0
I want to show ALL employees in organization 1 regardless of whether or not they have time worked on one of the 3 projects. For all other organizations I want to show the employee ONLY if they have time worked on one of the 3 projects (in this case emp3), ie, if their grand total is greater than 0.
The report is grouped on employee then project. If I check the "suppress empty columns" box then I won't see emp2 who belongs to organization 1.
I have read the threads that mention creating empty values then using the "discard all others" option in the group format. I tried changing the employee group such that
Code:
if Sum({@hours_worked}, {USERS.LAST_NAME}) = 0 and
not({USERS.ORG} in ["org1","org2"])
then emp=""
else emp={USERS.LAST_NAME}
Does anyone have any innovative ideas to work around this or am I asking to move the earth?
Thank you!
Jen