We are attempting to design a card that displays the order rate (Qty Sold/100 Guests) for different categories of menu item. My issue is that the traffic measure is duplicated for each item sold so the calculation works at the detail level but not always at the summary level (Category totals). We tried a sum(distinct) function but sometimes the traffic measure across dates is the same so this fails.
And here is a card I built to illustrate the issue:
https://pappas.domo.com/page/287596754/kpis/details/962548900
You can see that over the two days, traffic is the same so the actual Qty/HC should be 12.78 (79/618*100).