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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Fantmas
Helper III
Helper III

List.average by quarter and year

Hi Everyone,

I would like to create a new column with the average by quarter & year and I struggling to apply the average function in power query,

Can you help me

Thanks

2 ACCEPTED SOLUTIONS
ppm1
Solution Sage
Solution Sage

You can just Group By your year and month and choose average for the aggregation for your column. However, if you want to keep all your rows, you should just calculate your average with a DAX measure.

 

Pat

 

Microsoft Employee

View solution in original post

v-stephen-msft
Community Support
Community Support

Hi @Fantmas ,

 

Is that your problem solved?

If not, I made a simple sample for reference.

Sample data:

vstephenmsft_1-1676363995953.png

1.Hold Ctrl and both select Year and Quarter columns and right-click to choose "Group By...".

vstephenmsft_0-1676363977749.png

2.The Average column is grouped based on year and quarter, and the All Rows column is for keeping original rows.

vstephenmsft_2-1676364246605.png

vstephenmsft_3-1676364265298.png

3.Expand it.

vstephenmsft_4-1676364373778.png

vstephenmsft_5-1676364384472.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Fantmas ,

 

Is that your problem solved?

If not, I made a simple sample for reference.

Sample data:

vstephenmsft_1-1676363995953.png

1.Hold Ctrl and both select Year and Quarter columns and right-click to choose "Group By...".

vstephenmsft_0-1676363977749.png

2.The Average column is grouped based on year and quarter, and the All Rows column is for keeping original rows.

vstephenmsft_2-1676364246605.png

vstephenmsft_3-1676364265298.png

3.Expand it.

vstephenmsft_4-1676364373778.png

vstephenmsft_5-1676364384472.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

ppm1
Solution Sage
Solution Sage

You can just Group By your year and month and choose average for the aggregation for your column. However, if you want to keep all your rows, you should just calculate your average with a DAX measure.

 

Pat

 

Microsoft Employee

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors