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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Rygar
Helper II
Helper II

Calculate simple Average of Column

Dear Community,

 

this should be simple, but I dont know how to do it in M Language. Value is given, the second Column (Average of Column Value + 10) should be calculated:

ValueAverage of Column Value + 10 
1030 
2030 
3030 

 

Thanks and regards, Michael

2 ACCEPTED SOLUTIONS
Vijay_A_Verma
Super User
Super User

Use below formula in a custom column where #"Previous Step" should be your previous step

= List.Average(#"Previous Step"[Value])+10

View solution in original post

AlexisOlson
Super User
Super User

It's generally better to do this sort of thing with a measure in DAX, but if you have to do it in the query editor, you can write a custom column like this:

AlexisOlson_0-1660319024454.png

You'll need to use whatever the previous step name was instead of #"Changed Type".

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

It's generally better to do this sort of thing with a measure in DAX, but if you have to do it in the query editor, you can write a custom column like this:

AlexisOlson_0-1660319024454.png

You'll need to use whatever the previous step name was instead of #"Changed Type".

This did it, thanks!

Vijay_A_Verma
Super User
Super User

Use below formula in a custom column where #"Previous Step" should be your previous step

= List.Average(#"Previous Step"[Value])+10

Very nice, thanks!

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.

Top Solution Authors