Hello everyone.
This query returns three columns, two of them (IssueType and CountofIssueType) are listed on a listbox.
It works well, but I need it to do something else. I need a third column that is the percentage of the total. That is, I need to add all the "CountOfIssueType" to know what the total is and then divide each "CountofIssueType" by this total and have it on the third column.
Is this possible? Can it be done directly in the query?
Thanks
mafhobb
This query returns three columns, two of them (IssueType and CountofIssueType) are listed on a listbox.
Code:
SELECT Calls.SKU, [Issue Types].IssueType, Count(Calls.IssueTypeID) AS CountOfIssueTypeID
FROM Calls INNER JOIN [Issue Types] ON Calls.IssueTypeID = [Issue Types].IssueTypeID
GROUP BY Calls.SKU, [Issue Types].IssueType
HAVING (((Calls.SKU)=[forms]![FrmStatsSpecSKU]![SKU]));
It works well, but I need it to do something else. I need a third column that is the percentage of the total. That is, I need to add all the "CountOfIssueType" to know what the total is and then divide each "CountofIssueType" by this total and have it on the third column.
Is this possible? Can it be done directly in the query?
Thanks
mafhobb