Hey there,
This is complex, so I'll get there in steps:
This query:
Code:
SELECT St1.cWeekday, St1.EODAction, Count(St1.EODAction) AS NumActions
FROM StockTrades as St1
WHERE St1.EODAction<>""
GROUP BY St1.cWeekday, St1.EODAction
ORDER BY SWITCH(St1.cWeekday = 'Mon', 1,
St1.cWeekday = 'Tue', 2,
St1.cWeekday = 'Wed', 3,
St1.cWeekday = 'Thu', 4,
St1.cWeekday = 'Fri', 5), Count(St1.EODAction) DESC, St1.EODAction;
Generates a table of results with Weekday, category name, and count as you can see in attached screenshot.

My goal is to get the percentage of each category by weekday. So, if the Drop category has a count of 8 and Monday has a total of 32 EOD action counts, I should see an output of 25%. And each category would have its corresponding percentage.
In trying to get to the percentage, I created a query that does not work to simply output the total for each day in a separate column:
Code:
SELECT St1.cWeekday, St1.EODAction, Count(St1.EODAction) AS NumActions, (SELECT Count(St2.EODAction) FROM StockTrades WHERE St1.cWeekday = St2.cWeekday GROUP BY St2.cWeekday) as Total
FROM StockTrades as St1, StockTrades as St2
WHERE St1.EODAction<>"" AND St2.EODAction <> ""
GROUP BY St1.cWeekday, St1.EODAction
ORDER BY SWITCH(St1.cWeekday = 'Mon', 1,
St1.cWeekday = 'Tue', 2,
St1.cWeekday = 'Wed', 3,
St1.cWeekday = 'Thu', 4,
St1.cWeekday = 'Fri', 5), Count(St1.EODAction) DESC, St1.EODAction;
This query generates the error, Your query does not include the specified expression cWeekday as part of an aggregate function.
Appreciate any help on this.
Cheers,
Eric