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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alevandenes
Helper IV
Helper IV

Use Average in a column

Hi community,

I have this table below.

I would like to be able to fill in the costs column also for future months, by multiplying the units (that i already have) with the average of the avg cost per unit until now (independent of timeperiod).

I managed to calculate that in a measure 

avg = CALCULATE(AVERAGE('AVG cost per unit'[avg cost per unit]), REMOVEFILTERS('AVG cost per unit'[Month Year]))

but i cant get it into the column. can someone help?

alevandenes_0-1696413994388.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @alevandenes ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1696576043768.png

(2) We can create a calculated column.

Forecasted costs = [units] * AVERAGEX(FILTER('Table','Table'[Month Year]<=EARLIER('Table'[Month Year])),[avg cost per unit])

(3) Then the result is as follows.

vtangjiemsft_1-1696576120508.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @alevandenes ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1696576043768.png

(2) We can create a calculated column.

Forecasted costs = [units] * AVERAGEX(FILTER('Table','Table'[Month Year]<=EARLIER('Table'[Month Year])),[avg cost per unit])

(3) Then the result is as follows.

vtangjiemsft_1-1696576120508.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

sergej_og
Super User
Super User

Hey @alevandenes ,
what is your target result you want to see? Provide a screenshot pls.
A calculated column?
Or a measure which you can use for further calculations?

Regard

Hi, basically i want to use the actual costs for past months (as you can see in the screenshot that column is filled in until August 2023) and i want to use forecasted costs per future months.

 

Forecasted costs= units * (average of the cost per unit from all the previous months)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors