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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors