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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.