Power pivot - DIVIDE error

bongielondy

New Member
Joined
Mar 4, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a table, Table 1 that has month, volume and number of working days columns.

Table1
cMonthVolumenDays
01.2021
12​
31​
02.2021
3​
28​
01.2021
7​
31​
02.2021
8​
28​
02.2021
14​
28​
nDays is a calculated (added column). Formula used to create nDays is =SWITCH('Table1'[cMonth],01.2021",31,"02.2021",28,"03.2021",31). If a user selects 01.2021 in the pivot chart, the total volume will be 12+7=19. The rate should be 19/31. Total volume for the month should be divided by the working days. For February, 02.2021, total volume will be 3, 8 and 14= 25. Rate = 25/28.

The rate formula is giving me an error. rate:=DIVIDE(SUM('Table1'[Volume]),'Table1'[nDays])
How should I calculate the rate
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try following

Divide( sum([Volume]), Sum([nDays])/Count([cMOnth]))
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,111
Members
452,544
Latest member
aush

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