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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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