Help Power Pivot Percentage

laudrupin9

New Member
Joined
Nov 8, 2016
Messages
4
Hello,

I’m looking for some help regarding my excel file.

I have one powerpivot table with this information.


GREEN
RED
YELLOW
GREY
TOTAL
DateTime
DisplayName
16
0
7
1
24
01/10/2016
A
21
2
0
1
24
02/10/2016
A
21
2
0
1
24
03/10/2016
A
21
2
0
1
24
04/10/2016
A
21
2
0
1
24
05/10/2016
A

<tbody>
</tbody>


Total column is calculated doing = Green + red + yellow + Grey. The result is always 24, because we have 24 hours by day.

Now I would like to show the percentage of this columns.

For example if I take the first line:

GREEN
RED
YELLOW
GREY
TOTAL
DateTime
DisplayName
66,66
0
29,16
4,16
100
01/10/2016 00:00
A


<tbody>
</tbody>

How I can do that, who can help me?

Thanks in advance.

Best regards.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You should unpivot your data so it looks like this

dateTime, Display Name, colour, value

You can use Power Query for this.

Then put colour on a pivot table column and dateTime and display name on rows

measures
total = sum(table[value])

% of line = divide([total],calculate([total],all(table[colour]))
 
Last edited:
Upvote 0
You should unpivot your data so it looks like this

dateTime, Display Name, colour, value

You can use Power Query for this.

Then put colour on a pivot table column and dateTime and display name on rows

measures
total = sum(table[value])

% of line = divide([total],calculate([total],all(table[colour]))


Thanks for you help. The topic can be closed ;)
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top