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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
devally86
Frequent Visitor

help with DAX to calculate # of widgets per employee (sample data included)

New to DAX and need to calculate the average number of widgets produced per employee for each day, week, and month  - at several levels including Operator, Division, and Location.   I've tried a few variations of AVERAGEX and am getting strange or blank results.  Any help would be much appreciated.    Thanks in advance.   Mocked up data with expected results.

 

Year MonthWidget CountEmployeesOperatorDivisionLocationexpected resultsWidgets per Employee per month
202201916A1COall locations101
2022021296A1COoperator b118
2022031096A1COoperator a54
2022014528B3FLdivision 270
2022024458B3FLcolorado63
2022034908B3FLflorida173
2022011189B2CO  
2022022149B2CO  
2022032959B2CO  

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@devally86 , if Widget Count and employee are measures , then a new measures

 

divide([Widget Count], [Employee])

 

if they are columns create new measure like

divide(Sum(Table[Widget Count]), Sum(Table[Employee]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@devally86 , if Widget Count and employee are measures , then a new measures

 

divide([Widget Count], [Employee])

 

if they are columns create new measure like

divide(Sum(Table[Widget Count]), Sum(Table[Employee]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That was my issue - measure vs a calculated column, and I was overthinking...   Thanks for your help

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.