[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# PowerPivot in Excel 2013 - Combine vertical total with horizontal average

Posted on 2015-02-07
Medium Priority
202 Views
Hello Experts,

I have a PowerPivot Table in Excel 2013 for reporting TV audience data.

I’m kind of stuck on one report that shows the viewership levels by Channel by hour by Day of Week.

The problem is that I want to show the total of viewership of all hours (Vertical Total) per day, and then have an average of viewership across days.

Please refer to the attached Excel sheet for an exact explanation of what I’m trying to do.

Hani
Sample-Pvt-Table.xlsx
0
Question by:Mehawitchi
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 5
• 3

LVL 24

Expert Comment

ID: 40597877
Unfortunately, you are trying to combine two things in one PowerPivot Table:

1. You are adding (SUM) together all of the viewers per hour into a heading in the rows.
2. You are then wanting to AVERAGE all the daily figures into a total going across.

I don't think you can do both in the same table. You should do the SUM in the table, and then have a separate column and AVERAGE them in a separate column.
0

Author Comment

ID: 40597897

I will give it a try later tonight and get back to you with my comments.

Cheers,
Hani
0

LVL 85

Expert Comment

ID: 40597905
Could you post a sample of your actual data - I suspect it is entirely possible with Power Pivot. You need a measure that sums your values (called say HourSum), then you need another measure that uses a formula like:
=AVERAGEX(Values([dayfield]),HourSum)
0

Author Comment

ID: 40598048
Very interesting Rory...
I'm preparing the sample data file and will post in a few minutes...

Thank you,
Hani
0

Author Comment

ID: 40598076
There you go Rory - Thanks again for giving this a shot
Sample-Marketing-Reports.xlsx
0

LVL 85

Accepted Solution

Rory Archibald earned 2000 total points
ID: 40598087
Unfortunately I only have 2010 here so I can't manipulate your model but as I said earlier you want a measure that is simply:
=SUM([TRPs])

then the data field you add to the pivot would be a new measure using:

=AVERAGEX(VALUES(dCalendar[day_name_short]),[sum measure name])
0

Author Comment

ID: 40598300
No worries Rory - I'll give it a try tonight and will get back to you with my comments by tomorrow morning at the latest.

Best,
0

Author Closing Comment

ID: 40598554
Thanks Rory - It worked like CHARM!!

Thanks Philip for attempting to help
0

LVL 85

Expert Comment

ID: 40598607
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month14 days, 16 hours left to enroll