Power BI: Calculate average number of occurrences per month

yits05

Board Regular
Joined
Jul 17, 2020
Messages
56
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I know this is probably very simple but I am still getting to know Power BI, and was hoping to get some help.

I have a dataset with the following sample data

TypeDate
Cookie1/1/2021
Muffin1/1/2021
Cookie2/1/2021
Muffin2/1/2021
Cookie5/1/2021
Cookie5/1/2021

I have created a matrix visualization which tells me the number of purchases of each Type Month-To-Date, as per below. What I would like to add is a new measurement column (the column to the right) which tells me the average number of purchases per month throughout the entire data set:

TypeCount month to date (May)Average per month (total divided by number of months in data set, not including current month)
Cookie2.4 (2/5)
Muffin0.4 (2/5)


Much appreciated!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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