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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Steffi1182
New Member

Calculation average of a property per year

Dear all,

I have a really easy data set including results from single samples, single properties but sometimes taken in the same year.

Now I want to calculate e.g. the yearly average, yearly min or yearly max of, let us say density or CFPP from all samples taken in 2015. How can I do that?

Thanks for your feedback

 

Steffi1182_1-1602139028524.png

 

 

4 REPLIES 4
amitchandak
Super User
Super User

@Steffi1182 , You can try like this . Better to have separate Year/date table

 

This Year = CALCULATE(Average('Table'[Col]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))

 

Diff = Max(Table[Col]) -[This Year])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey, it das not really work. Now I have a wrong syntax. Can you describe step by step? Should I create a date table first? I have no expierance on Power BI and have to learn. Thank you

Steffi1182_0-1602141217679.png

 

@Steffi1182 , seem like you do not have date table. Use the Data table in that place.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Of course, you have to have a Date table in your model. Please refer to this: https://docs.microsoft.com/en-us/power-bi/guidance/model-date-tables

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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