XL 2013
This connection is made with Data > Connections > Microsoft Query.
(I can’t use the Power Query the connection fails.)
This formula returns the Count of Females with LaborCode begins with N during the specified Check Date.
SUMPRODUCT(--(Table_Query_from_XX[CheckDate]=RptCkDt),
--(LEFT(Table_Query_from_XX[LaborDistributionCode],1)="N"),
--(Table_Query_from_XX[***]="F")
)
The problem is an employee check may be cut, cancelled and recut, thereby counting that employee three times instead of once.
How can I count only once occurrence of each female employee (Table_Query_from_XX[EmployeeNumber] ) while maintaining the functionality of LaborCode begins with N?
(Can't seen to get it from a Pivot Table either.)
Bookmarks