Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Raw data: Machine | Date | Unit | Week
Calcaulations (What i need help with):
Average = 53 = 2565/ 48
2565 = sum of units
48 = sum # of active weeks.
Sum (Active week for each machine) = last week is nonblank - first week is nonblank
Questions: How do i get to the overall level of #active week? (i can do Max(date) - Min(date) for individual machines, but for overall level, it will always be 6 weeks.. Average = 53 is what i need to get to.
Thank you!
@amitchandak It wont work that way, because its counting the week that has positive number.
So if week 2 and 4 has non 0, that will be counted as 2 week, but I need to count 2, 3, and 4. for 3 weeks. for each machines,
then sum that result for each individual machine. like the following.
@v-lionel-msft That's not what I am looking for.
By the example in your file, the average will be 1010/26 weeks = 39/weeks
| #Week Counts | |
| Machine1 | 5 |
| Machine2 | 5 |
| Machine3 | 3 |
| Machine4 | 2 |
| Machine5 | 4 |
| Machine6 | 3 |
| Machine8 | 2 |
| Machine9 | 2 |
| 26 | |
| 38.84615 |
@Anonymous
The data you posted is in picture, just pate your data from Excel so I can solve and share the solution.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!