The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Solved! Go to Solution.
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
Hi @Fantmas ,
Is that your problem solved?
If not, I made a simple sample for reference.
Sample data:
1.Hold Ctrl and both select Year and Quarter columns and right-click to choose "Group By...".
2.The Average column is grouped based on year and quarter, and the All Rows column is for keeping original rows.
3.Expand it.
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.
Hi @Fantmas ,
Is that your problem solved?
If not, I made a simple sample for reference.
Sample data:
1.Hold Ctrl and both select Year and Quarter columns and right-click to choose "Group By...".
2.The Average column is grouped based on year and quarter, and the All Rows column is for keeping original rows.
3.Expand it.
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.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
34 | |
20 | |
19 | |
17 | |
13 |