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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
algoritmia_pbi
Regular Visitor

Average count rows per attribute (column)

Hi community

 

I have one question with my dataset, I need to calculate the average of rows (each row represents a task) that a team member has per week, for example:

 

Lisa's tasks

 

Week     Tasks (count of rows)     

1                      5                                

2                      8                                   

3                     11                                  

 

Total               24 tasks in 3 weeks = 8 tasks in Avg per week

 

I'd like to visual a table with each team member in one column and the avg tasks per week in values

 

I don't know how to get this done, so I appreciate your help, thanks!

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the source data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ichavarria
Solution Specialist
Solution Specialist

Hello @algoritmia_pbi,

 

You can use DAX to calculate the average number of tasks per week for each team member in a separate column of your dataset. Here's how you can do it:

 

  1. Create a calculated column in your dataset by clicking on "New Column" in the "Modeling" tab of the Power BI Desktop ribbon. Name the column "Tasks per Week" or something similar.

  2. Use the following DAX formula to calculate the average number of tasks per week for each team member:

    Tasks per Week = DIVIDE([Tasks], [Weeks])

    This formula divides the total number of tasks for each team member by the number of weeks they've been working.

  3. Add a table visualization to your report and drag the team member column and the "Tasks per Week" column onto it.

  4. You should now see a table with each team member in one column and their average number of tasks per week in another column.

I hope this helps! Let me know if you have any further questions.

Best regards, 

Isaac Chavarria

If this post helps, then please consider Accepting it as the solution and give Kudos to help the other members find it more quickly

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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