You can write a measure that checks the number of "rows" in a particular filter context and nest it in IF () to determine which one to use.
If you are using PowerPivot V2, then this:
=IF(HASONEVALUE(Calendar[Day]), SUM(AMOUNT), AVERAGE(AMOUNT))
When using PowerPivot V1, this is:
=IF(COUNTROWS(Calendar[Day])=1, SUM(AMOUNT), AVERAGE(AMOUNT))
Both do the same in that they estimate the number of rows in the table in this context, and when the meat type is βBeef,β then the temporarily filtered table has one row. If it does not have one line, then it goes along the path to AVERAGE ()
This assumes that your column headings are in the Calendar table (if you do not use a separate calendar table, then you are missing the most powerful PowerPivot IMO features). Jacob
source share