Forum Discussion

MIreille64923's avatar
MIreille64923
Copper Contributor
Sep 09, 2022

Power Pivot - calculation using Max value

Hello, I have the report and need to calculate the average attendees per day.  I have needed to apply the MAX function to No Weekdays to reflect the correct vale.  Sounds so simple! But the results are bizarre.

The measure I used is =[Sum of Attendees]/[Max of No Weekdays].

 

help correcting this gratefully received

 

MonthWeekday SUM AttendeesMAX No WeekdaysAvg
MayMon6121165.4761905
 Tue20021165.4761905
 Wed12521165.4761905
 Thu11821165.4761905
 Fri9221165.4761905
  • mathetes's avatar
    mathetes
    Silver Contributor

    MIreille64923 

     

    You say "the results are bizarre," which certainly would appear to be the case. What you don't say, however, is exactly which results are bizarre. Now, clearly the repeated number under the heading "Avg" needs to be questioned.

    But how about the repeated number 21 under "MAX No Weekdays"? First of all, what is it (supposed to be) the maximum OF? Maximum of attendees on a Monday, Tuesday, ...etc? Maximum number of weekdays in the month? It seems equally bizarre that the same MAX number would appear in each row, as that the average would be the same in each row.

     

    You know what your raw data contains. We don't. I realize you're the one asking for help, but it'd be easier to diagnose what's going on if we had a more complete picture of what the raw data are, what results might  be reasonable in those last two columns. 

     

    Is it possible for you to post the actual spreadsheet on OneDrive or GoogleDrive (or some comparable cloud service), and then post a link and grant access to it?

Resources