Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Average of Previous Fiscal Year

Hey Guys,

So i am stuck here calculating average of previous fiscal year for a measure.

So i have a column called "FY" which has values as "FY17","FY18".Also i have a measure which calculates average of 4 columns :

Average Index=(Average (COl1)+Average(Col2)+Average(Col3)+Average(Col4))/4

Now i need to caluclated "Average Index" for previous Fiscal Year .

Please help me out guys this thing is really getting up my nerves now.

1 REPLY 1
technolog
Super User
Super User

Step 1: Create the Average Index Measure
First, create the measure for the "Average Index":

AverageIndex =
(Average(Table[Col1]) + Average(Table[Col2]) + Average(Table[Col3]) + Average(Table[Col4])) / 4
Step 2: Create a Measure for the Previous Fiscal Year
Next, create a measure to calculate the "Average Index" for the previous fiscal year. Here’s how you can achieve that:

Measure to Get Previous Fiscal Year
Assuming your fiscal year format is "FY17", "FY18", etc., you can create a measure to identify the previous fiscal year:

PreviousFiscalYear =
VAR CurrentFY = MAX(Table[FY])
VAR PrevFY = "FY" & VALUE(RIGHT(CurrentFY, 2)) - 1
RETURN
PrevFY
Step 3: Calculate the Average Index for the Previous Fiscal Year
Now, create a measure to calculate the "Average Index" for the previous fiscal year:

AverageIndexPreviousFY =
CALCULATE(
[AverageIndex],
Table[FY] = [PreviousFiscalYear]
)
Step 4: Put It All Together
Ensure the measures are working together. The AverageIndexPreviousFY measure should now give you the average index for the previous fiscal year based on the "Average Index" measure.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.