Beast Mode Help: Summary number to show % of transaction type
I have a dataset where there is a column name 'Ship Via Group' that contains three distinct values. One of which, "Counter / WC" I need to show in the summary number for the card - "What percentage of orders are Counter / WC?"
Sample data is attached, note that order number may appear multiple times because orders may have 1 or more items.
Here is the beast mode I tried, but am getting no value returned. I'm a noob... I admit it...
(CASE when `Ship Via Group`='%Counter%' then COUNT(DISTINCT `Order Number`) else 0
END) / COUNT(DISTINCT `Order Number`)
Any help would be greatly appreciated. Thank you in advance!