Forum Discussion
zlottt
5 days agoNew Member
Calculating Average question
Hi everyone, I am new to power bi and I am starting a report where the source file is a basic excel file. I have created a matrix and added the data I needed it, please see the attached. My chal...
danextian
Super User
4 days agoYou can straight use AVERAGEX to iterate through the value of each year before getting the average
Units Sold Yearly Avg =
AVERAGEX ( -- Calculate the average across the years
VALUES ( 'Date'[Year] ), -- Get each selected year
[Units Sold] -- Calculate Units Sold for each year
)
Note: AVERAGEX exclude blank rows. In the example below, although there are 16 years from 1999 to 2014, 1999 is blank so the average is 118500/15 = 7900