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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Thorgal45
New Member

Comparison of years average with baseline

Hello,

 

I'm a Power BI beginner and need help for a report I'm trying to build.

 

I have a dataset with multiple years (2019-2022), manufacturing plants and CO2 emissions.

 

I'd like to show in a table for each year the CO2 emissions average variance compared to the baseline (2019 Co2 emissions average).

 

I tried some formulas but got the following result:

Thorgal45_0-1666280009743.png

Formulas I used:

Baseline = CALCULATE(AVERAGEX(FILTER(Sheet1,Sheet1[Month - Year].[Year]=2019),Sheet1[kgCO2e per Earned Hour (kgCO2e/EH)]))
Current = CALCULATE(AVERAGE(Sheet1[kgCO2e per Earned Hour (kgCO2e/EH)]))
Variance = [Current]-[Baseline]
 
Dataset from Excel looks like that for each plant:
Thorgal45_1-1666280322683.png

 

I'd like to have sometging like this instead:

Thorgal45_2-1666280654112.png

 

Thank you for your help!

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Thorgal45 

is this what you want?

1.PNG

 

Measure = CALCULATE(AVERAGE('Table'[value]),'Table'[year]=2019)

2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Thorgal45
New Member

It works and that's exactly what I need.

 

Thanks ryan_mayu!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Thorgal45 

is this what you want?

1.PNG

 

Measure = CALCULATE(AVERAGE('Table'[value]),'Table'[year]=2019)

2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.