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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Daily Average per person per month using # of days worked in the month not days in the month.

I am looking to get an average # of units sold per person by the # of days they worked in the month.  I had added a calendar and was able to get a daily average in the month based on number of days in the month but am stuck here.   I added a days worked table but don't know what it needs to join and get the correct results.  Any help would be greatly appreciated - a sample of my detail is below. 

Thanks!! 

 

 

Capture.JPG

 

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

Welcome to Power BI. There is a lot to learn.


The units table and days worked tables are data/fact tables.  They are at different levels of granularity (one is day, one is month).  If the data is small, a simple solution would be.

 

1. create an employee lookup/dim table with all unique employee names

2. create a month level calendar table (Read more here)  https://exceleratorbi.com.au/power-pivot-calendar-tables/  Yours should be month level, not day level.

3. add a new calculated column in the units table to convert the date to the month.

4. join both data tables to both lookup tables on the relevant columns.

5. add employee and month from the lookup tables to a matrix

6. write measures for number of days worked, sum of units sold and [units]/[days]



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

1 REPLY 1
MattAllington
Community Champion
Community Champion

Welcome to Power BI. There is a lot to learn.


The units table and days worked tables are data/fact tables.  They are at different levels of granularity (one is day, one is month).  If the data is small, a simple solution would be.

 

1. create an employee lookup/dim table with all unique employee names

2. create a month level calendar table (Read more here)  https://exceleratorbi.com.au/power-pivot-calendar-tables/  Yours should be month level, not day level.

3. add a new calculated column in the units table to convert the date to the month.

4. join both data tables to both lookup tables on the relevant columns.

5. add employee and month from the lookup tables to a matrix

6. write measures for number of days worked, sum of units sold and [units]/[days]



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.